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
- Lines: 17
- Date:
Fri Feb 9 11:34:13 2001
- Orig file:
v2.4.1/linux/net/atm/common.c
- Orig date:
Mon Jan 1 09:54:07 2001
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)