patch-1.3.87 linux/net/sysctl_net.c

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

diff -u --recursive --new-file v1.3.86/linux/net/sysctl_net.c linux/net/sysctl_net.c
@@ -29,13 +29,19 @@
 extern ctl_table ax25_table[];
 #endif
 
-extern ctl_table core_table[], ether_table[], e802_table[], unix_table[];
+extern ctl_table core_table[], unix_table[];
+
+#ifdef CONFIG_NET
+extern ctl_table ether_table[], e802_table[];
+#endif
 
 ctl_table net_table[] = {
-	{NET_CORE,   "core",      NULL, 0, 0555, core_table},
-	{NET_ETHER,  "ethernet",  NULL, 0, 0555, ether_table},
-        {NET_802,    "802",       NULL, 0, 0555, e802_table},
+	{NET_CORE,   "core",      NULL, 0, 0555, core_table},      
         {NET_UNIX,   "unix",      NULL, 0, 0555, unix_table},
+#ifdef CONFIG_NET
+	{NET_802,    "802",       NULL, 0, 0555, e802_table},
+	{NET_ETHER,  "ethernet",  NULL, 0, 0555, ether_table},
+#endif
 #ifdef CONFIG_INET
 	{NET_IPV4,   "ipv4",      NULL, 0, 0555, ipv4_table},
 #endif

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