patch-2.1.104 linux/net/wanrouter/wanmain.c
Next file: linux/scripts/ksymoops.cc
Previous file: linux/net/ipx/af_spx.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu May 21 13:53:24 1998
- Orig file:
v2.1.103/linux/net/wanrouter/wanmain.c
- Orig date:
Thu May 7 22:51:56 1998
diff -u --recursive --new-file v2.1.103/linux/net/wanrouter/wanmain.c linux/net/wanrouter/wanmain.c
@@ -24,6 +24,7 @@
* Jun 27, 1997 Alan Cox realigned with vendor code
* Oct 15, 1997 Farhan Thawar changed wan_encapsulate to add a pad byte of 0
* Apr 20, 1998 Alan Cox Fixed 2.1 symbols
+* May 17, 1998 K. Baranowski Fixed SNAP encapsulation in wan_encapsulate
*****************************************************************************/
#include <linux/stddef.h> /* offsetof(), etc. */
@@ -288,11 +289,11 @@
case ETH_P_IPX: /* SNAP encapsulation */
case ETH_P_ARP:
hdr_len += 7;
- skb_push(skb, 6);
+ skb_push(skb, 7);
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);
+ memcpy(&skb->data[2], oui_ether, sizeof(oui_ether));
+ *((unsigned short*)&skb->data[5]) = htons(skb->protocol);
break;
default: /* Unknown packet type */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov