patch-1.3.6 linux/net/ipv4/raw.c

Next file: linux/net/ipv4/route.c
Previous file: linux/net/ipv4/rarp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.5/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -98,7 +98,7 @@
 {
 	/* Now we need to copy this into memory. */
 	skb->sk = sk;
-	skb->len = ntohs(skb->ip_hdr->tot_len);
+	skb_trim(skb,ntohs(skb->ip_hdr->tot_len));
 	skb->h.raw = (unsigned char *) skb->ip_hdr;
 	skb->dev = dev;
 	skb->saddr = daddr;

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