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

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)