patch-1.3.14 linux/net/802/p8022.c

Next file: linux/net/802/p8023.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.13/linux/net/802/p8022.c linux/net/802/p8022.c
@@ -48,20 +48,13 @@
 		struct sk_buff *skb, unsigned char *dest_node)
 {
 	struct device	*dev = skb->dev;
-	unsigned long	len = skb->len;
-	unsigned long	hard_len = dev->hard_header_len;
 	unsigned char	*rawp;
 
-	dev->hard_header(skb, dev, len - hard_len,
-			dest_node, NULL, len - hard_len);
 	rawp = skb_push(skb,3);
-	*rawp = dl->type[0];
-	rawp++;
-	*rawp = dl->type[0];
-	rawp++;
+	*rawp++ = dl->type[0];
+	*rawp++ = dl->type[0];
 	*rawp = 0x03;	/* UI */
-	rawp++;
-	skb->h.raw = rawp;
+	dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
 }
 
 static struct packet_type p8022_packet_type = 

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