patch-1.3.82 linux/net/sysctl_net.c
Next file: linux/net/unix/Makefile
Previous file: linux/net/netrom/sysctl_net_netrom.c
Back to the patch index
Back to the overall index
-  Lines: 56
 -  Date:
Tue Apr  2 08:43:08 1996
 -  Orig file: 
v1.3.81/linux/net/sysctl_net.c
 -  Orig date: 
Thu Jan  1 02:00:00 1970
 
diff -u --recursive --new-file v1.3.81/linux/net/sysctl_net.c linux/net/sysctl_net.c
@@ -0,0 +1,55 @@
+/* -*- linux-c -*-
+ * sysctl_net.c: sysctl interface to net subsystem.
+ *
+ * Begun April 1, 1996, Mike Shaver.
+ * Added /proc/sys/net directories for each protocol family. [MS]
+ */
+
+#include <linux/config.h>
+#include <linux/mm.h>
+#include <linux/sysctl.h>
+
+#ifdef CONFIG_INET
+extern ctl_table ipv4_table[];
+#endif
+
+#ifdef CONFIG_IPX
+extern ctl_table ipx_table[];
+#endif
+
+#ifdef CONFIG_ATALK
+extern ctl_table atalk_table[];
+#endif
+
+#ifdef CONFIG_NETROM
+extern ctl_table netrom_table[];
+#endif
+
+#ifdef CONFIG_AX25
+extern ctl_table ax25_table[];
+#endif
+
+extern ctl_table core_table[], ether_table[], e802_table[], unix_table[];
+
+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_UNIX,   "unix",      NULL, 0, 0555, unix_table},
+#ifdef CONFIG_INET
+	{NET_IPV4,   "ipv4",      NULL, 0, 0555, ipv4_table},
+#endif
+#ifdef CONFIG_IPX
+        {NET_IPX,    "ipx",       NULL, 0, 0555, ipx_table},
+#endif
+#ifdef CONFIG_ATALK
+        {NET_ATALK,  "appletalk", NULL, 0, 0555, atalk_table},
+#endif
+#ifdef CONFIG_NETROM
+	{NET_NETROM, "netrom",    NULL, 0, 0555, netrom_table},
+#endif
+#ifdef CONFIG_AX25
+	{NET_AX25,   "ax25",      NULL, 0, 0555, ax25_table},
+#endif
+	{0}
+};
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