patch-2.2.4 linux/net/packet/af_packet.c
Next file: linux/net/sched/Config.in
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Mar 21 07:22:00 1999
- Orig file:
v2.2.3/linux/net/packet/af_packet.c
- Orig date:
Mon Oct 5 13:13:49 1998
diff -u --recursive --new-file v2.2.3/linux/net/packet/af_packet.c linux/net/packet/af_packet.c
@@ -5,7 +5,7 @@
*
* PACKET - implements raw packet sockets.
*
- * Version: $Id: af_packet.c,v 1.18 1998/10/03 15:55:24 freitag Exp $
+ * Version: $Id: af_packet.c,v 1.19 1999/03/21 05:23:03 davem Exp $
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -831,7 +831,7 @@
* Free or return the buffer as appropriate. Again this
* hides all the races and re-entrancy issues from us.
*/
- err = copied;
+ err = (flags&MSG_TRUNC) ? skb->len : copied;
out_free:
skb_free_datagram(sk, skb);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)