patch-1.3.10 linux/net/ipv4/af_inet.c
Next file: linux/net/ipv4/icmp.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
-  Lines: 19
-  Date:
Thu Jul 13 13:05:10 1995
-  Orig file: 
v1.3.9/linux/net/ipv4/af_inet.c
-  Orig date: 
Fri Jul  7 13:42:58 1995
diff -u --recursive --new-file v1.3.9/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -40,6 +40,9 @@
  *					(eg for big web sites), but only if
  *					specifically application requested.
  *		Alan Cox	:	New buffering throughout IP. Used dumbly.
+ *		Alan Cox	:	New buffering now used smartly.
+ *		Alan Cox	:	BSD rather than common sense interpretation of
+ *					listen.
  *
  *		This program is free software; you can redistribute it and/or
  *		modify it under the terms of the GNU General Public License
@@ -491,6 +494,8 @@
 	 * else does..
 	 * Now truncate to 128 not 5. 
 	 */
+	if ((unsigned) backlog == 0)	/* BSDism */
+		backlog = 1;
 	if ((unsigned) backlog > 128)
 		backlog = 128;
 	sk->max_ack_backlog = backlog;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this