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

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

diff -u --recursive --new-file v1.3.5/linux/net/802/p8022.c linux/net/802/p8022.c
@@ -27,7 +27,7 @@
 	proto = find_8022_client(*(skb->h.raw));
 	if (proto != NULL) {
 		skb->h.raw += 3;
-		skb->len -= 3;
+		skb_pull(skb,3);
 		return proto->rcvfunc(skb, dev, pt);
 	}
 
@@ -45,9 +45,9 @@
 	unsigned long	hard_len = dev->hard_header_len;
 	unsigned char	*rawp;
 
-	dev->hard_header(skb->data, dev, len - hard_len,
-			dest_node, NULL, len - hard_len, skb);
-	rawp = skb->data + hard_len;
+	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];

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