patch-2.1.79 linux/net/wanrouter/wanmain.c

Next file: linux/net/wanrouter/wanproc.c
Previous file: linux/net/sunrpc/sysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/net/wanrouter/wanmain.c linux/net/wanrouter/wanmain.c
@@ -18,6 +18,7 @@
 *		as published by the Free Software Foundation; either version
 *		2 of the License, or (at your option) any later version.
 * ============================================================================
+* Oct 15, 1997  Farhan Thawar   changed wan_encapsulate to add a pad byte of 0
 * Jun 27, 1997  Alan Cox	realigned with vendor code
 * Jan 16, 1997	Gene Kozin	router_devlist made public
 * Jan 31, 1997  Alan Cox	Hacked it about a bit for 2.1
@@ -279,9 +280,10 @@
 
 	case ETH_P_IPX:		/* SNAP encapsulation */
 	case ETH_P_ARP:
-		hdr_len += 6;
+		hdr_len += 7;
 		skb_push(skb, 6);
-		skb->data[0] = NLPID_SNAP;
+		skb->data[0] = 0;
+		skb->data[1] = NLPID_SNAP;
 		memcpy(&skb->data[1], oui_ether, sizeof(oui_ether));
 		*((unsigned short*)&skb->data[4]) = htons(skb->protocol);
 		break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov