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

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

diff -urN linux-2.4.22/net/ipv4/tcp_ipv4.c linux-2.4.23/net/ipv4/tcp_ipv4.c
@@ -189,7 +189,9 @@
 		if (sk != sk2 &&
 		    sk2->reuse <= 1 &&
 		    !ipv6_only_sock(sk2) &&
-		    sk->bound_dev_if == sk2->bound_dev_if) {
+		    (!sk->bound_dev_if ||
+		     !sk2->bound_dev_if ||
+		     sk->bound_dev_if == sk2->bound_dev_if)) {
 			if (!sk_reuse	||
 			    !sk2->reuse	||
 			    sk2->state == TCP_LISTEN) {

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