patch-1.3.7 linux/net/ipv4/packet.c
Next file: linux/net/ipv4/rarp.c
Previous file: linux/net/ipv4/ip.c
Back to the patch index
Back to the overall index
-  Lines: 21
 -  Date:
Wed Jul  5 13:06:28 1995
 -  Orig file: 
v1.3.6/linux/net/ipv4/packet.c
 -  Orig date: 
Fri Jun 30 16:22:32 1995
 
diff -u --recursive --new-file v1.3.6/linux/net/ipv4/packet.c linux/net/ipv4/packet.c
@@ -28,6 +28,7 @@
  *					dubious gcc output. Can you read
  *					compiler: it said _VOLATILE_
  *	Richard Kooijman	:	Timestamp fixes.
+ *		Alan Cox	:	New buffers. Use sk->mac.raw
  *
  *		This program is free software; you can redistribute it and/or
  *		modify it under the terms of the GNU General Public License
@@ -80,6 +81,12 @@
 	 */
 
 	sk = (struct sock *) pt->data;	
+	
+	/*
+	 *	Yank back the headers
+	 */
+	 
+	skb_push(skb,skb->data-skb->mac.raw);
 
 	/*
 	 *	The SOCK_PACKET socket receives _all_ frames.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this