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
- Lines: 9
- Date:
Thu Jun 29 19:18:52 1995
- Orig file:
v1.3.5/linux/net/ipv4/raw.c
- Orig date:
Tue Jun 27 14:11:48 1995
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