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

Next file: linux-2.4.23/net/ipv6/Makefile
Previous file: linux-2.4.23/net/ipv4/tcp_output.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/net/ipv4/udp.c linux-2.4.23/net/ipv4/udp.c
@@ -164,7 +164,9 @@
 			if (sk2->num == snum &&
 			    sk2 != sk &&
 			    !ipv6_only_sock(sk2) &&
-			    sk2->bound_dev_if == sk->bound_dev_if &&
+			    (!sk2->bound_dev_if ||
+			     !sk->bound_dev_if ||
+			     sk2->bound_dev_if == sk->bound_dev_if) &&
 			    (!sk2->rcv_saddr ||
 			     !sk->rcv_saddr ||
 			     sk2->rcv_saddr == sk->rcv_saddr) &&

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