patch-2.1.1 linux/net/ipv4/raw.c

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

diff -u --recursive --new-file v2.1.0/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -100,7 +100,7 @@
 		sk->error_report(sk);
 	}
 
-	if(code<13)
+	if(code<=NR_ICMP_UNREACH)
 	{
 		sk->err = icmp_err_convert[code & 0xff].errno;
 		sk->error_report(sk);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov