patch-2.3.99-pre1 linux/net/x25/af_x25.c

Next file: linux/net/x25/x25_link.c
Previous file: linux/net/sched/sch_ingress.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/net/x25/af_x25.c linux/net/x25/af_x25.c
@@ -16,6 +16,7 @@
  *	X.25 001	Jonathan Naylor	Started coding.
  *	X.25 002	Jonathan Naylor	Centralised disconnect handling.
  *					New timer architecture.
+ *	2000-11-03	Henner Eisen	MSG_EOR handling more POSIX compliant.
  */
 
 #include <linux/config.h>
@@ -851,7 +852,7 @@
 	if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_OOB | MSG_EOR))
 		return -EINVAL;
 
-	/* we currently don't support segments at the user interface */ 
+	/* we currently don't support segmented records at the user interface */
 	if (!(msg->msg_flags & MSG_EOR))
 		return -EINVAL;
 
@@ -1033,6 +1034,9 @@
 		copied = size;
 		msg->msg_flags |= MSG_TRUNC;
 	}
+
+	/* Currently, each datagram always contains a complete record */ 
+	msg->msg_flags |= MSG_EOR;
 
 	skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
 

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