patch-2.1.8 linux/net/protocols.c

Next file: linux/net/socket.c
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.7/linux/net/protocols.c linux/net/protocols.c
@@ -15,9 +15,14 @@
 #ifdef	CONFIG_UNIX
 #include <net/af_unix.h>
 #endif
+
 #ifdef	CONFIG_INET
 #include <linux/inet.h>
+#ifdef	CONFIG_IPV6
+extern void inet6_proto_init(struct net_proto *pro);
 #endif
+#endif	/* INET */
+
 #if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
 #include <net/ipxcall.h>
 #include <net/p8022call.h>
@@ -67,6 +72,9 @@
 #endif  
 #ifdef	CONFIG_INET
   { "INET",	inet_proto_init	},			/* TCP/IP			*/
+#ifdef	CONFIG_IPV6
+  { "INET6",	inet6_proto_init},			/* IPv6	*/
+#endif
 #endif
 #ifdef  CONFIG_IPX
   { "IPX",	ipx_proto_init },			/* IPX				*/

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