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

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

diff -u --recursive --new-file v1.3.50/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -220,11 +220,11 @@
 		if (sk->state != TCP_ESTABLISHED) 
 			return(-EINVAL);
 		sin.sin_family = AF_INET;
-		sin.sin_port = sk->protocol;
+		sin.sin_port = sk->num;
 		sin.sin_addr.s_addr = sk->daddr;
 	}
 	if (sin.sin_port == 0) 
-		sin.sin_port = sk->protocol;
+		sin.sin_port = sk->num;
   
 	if (sin.sin_addr.s_addr == INADDR_ANY)
 		sin.sin_addr.s_addr = ip_my_addr();

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