patch-2.4.27 linux-2.4.27/net/ipv4/raw.c
Next file: linux-2.4.27/net/ipv4/sysctl_net_ipv4.c
Previous file: linux-2.4.27/net/ipv4/netfilter/iptable_mangle.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2004-08-07 16:26:06.997443052 -0700
- Orig file:
linux-2.4.26/net/ipv4/raw.c
- Orig date:
2003-08-25 04:44:44.000000000 -0700
diff -urN linux-2.4.26/net/ipv4/raw.c linux-2.4.27/net/ipv4/raw.c
@@ -524,6 +524,8 @@
}
if (sk->protinfo.af_inet.cmsg_flags)
ip_cmsg_recv(msg, skb);
+ if (flags & MSG_TRUNC)
+ copied = skb->len;
done:
skb_free_datagram(sk, skb);
out: return err ? : copied;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)