patch-2.1.15 linux/net/ipv6/ipv6_sockglue.c

Next file: linux/net/ipv6/ndisc.c
Previous file: linux/net/ipv6/ipv6_route.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/net/ipv6/ipv6_sockglue.c linux/net/ipv6/ipv6_sockglue.c
@@ -113,12 +113,13 @@
 				
 				sk->prot = &tcp_prot;
 				tp->af_specific = &ipv4_specific;
+				sk->socket->ops = &inet_stream_ops;
 			}
 			else
 			{
 				sk->prot = &udp_prot;
+				sk->socket->ops = &inet_dgram_ops;
 			}
-			sk->socket->ops = &inet_proto_ops;
 			retv = 0;
 		}
 		else

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