patch: fix X.25 in 2.3.18

Henner Eisen (eis@baty.hanse.de)
Mon, 4 Oct 1999 18:01:48 +0200


Hi,

the following patch (tested, works) makes write() to PF_X25 sockets
working again in 2.3.18.

Henner

--- linux-2.3.18/net/x25/af_x25.c Thu Sep 9 23:26:12 1999
+++ linux-2.3.18-EOR/net/x25/af_x25.c Mon Oct 4 17:45:26 1999
@@ -848,7 +848,11 @@
unsigned char *asmptr;
int size, qbit = 0;

- if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_OOB))
+ if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_OOB | MSG_EOR))
+ return -EINVAL;
+
+ /* we currently don't support segments at the user interface */
+ if (!(msg->msg_flags & MSG_EOR))
return -EINVAL;

if (sk->zapped)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/