patch-1.3.44 linux/net/ipv4/udp.c

Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.43/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -196,6 +196,12 @@
 
 	if (code < 13 && icmp_err_convert[code].fatal)
 	{
+		/*
+		 *	4.x BSD compatibility item. Break RFC1122 to
+		 *	get BSD socket semantics.
+		 */
+		if(sk->bsdism && sk->state!=TCP_ESTABLISHED)
+			return;
 		sk->err = icmp_err_convert[code].errno;
 		sk->error_report(sk);
 	}

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