patch-2.4.2 linux/net/atm/common.c

Next file: linux/net/atm/lec.h
Previous file: linux/net/appletalk/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/net/atm/common.c linux/net/atm/common.c
@@ -26,6 +26,7 @@
 #include <asm/uaccess.h>
 #include <asm/atomic.h>
 #include <asm/poll.h>
+#include <asm/ioctls.h>
 
 #if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
 #include <linux/atmlec.h>
@@ -376,6 +377,8 @@
 	if (error <= 0) return error;
 	vcc->timestamp = skb->stamp;
 	eff_len = skb->len > size ? size : skb->len;
+	if (skb->len > size) /* Not fit ?  Report it... */
+		m->msg_flags |= MSG_TRUNC;
 	if (vcc->dev->ops->feedback)
 		vcc->dev->ops->feedback(vcc,skb,(unsigned long) skb->data,
 		    (unsigned long) buff,eff_len);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)