Tomato 1.28
[tomato.git] / release / src / linux / linux / net / sysctl_net.c
blobb3a838cbb55e607b946aa4fe5a7dced2cf01d8d3
1 /* -*- linux-c -*-
2 * sysctl_net.c: sysctl interface to net subsystem.
4 * Begun April 1, 1996, Mike Shaver.
5 * Added /proc/sys/net directories for each protocol family. [MS]
7 * $Log: sysctl_net.c,v $
8 * Revision 1.1.1.2 2003/10/14 08:09:31 sparq
9 * Broadcom Release 3.51.8.0 for BCM4712.
11 * Revision 1.1.1.1 2003/02/03 22:38:20 mhuang
12 * LINUX_2_4 branch snapshot from linux-mips.org CVS
14 * Revision 1.2 1996/05/08 20:24:40 shaver
15 * Added bits for NET_BRIDGE and the NET_IPV4_ARP stuff and
16 * NET_IPV4_IP_FORWARD.
21 #include <linux/config.h>
22 #include <linux/mm.h>
23 #include <linux/sysctl.h>
25 #ifdef CONFIG_INET
26 extern ctl_table ipv4_table[];
27 #endif
29 extern ctl_table core_table[];
31 #ifdef CONFIG_NET
32 extern ctl_table ether_table[], e802_table[];
33 #endif
35 #ifdef CONFIG_IPV6
36 extern ctl_table ipv6_table[];
37 #endif
39 #ifdef CONFIG_TR
40 extern ctl_table tr_table[];
41 #endif
43 ctl_table net_table[] = {
44 {NET_CORE, "core", NULL, 0, 0555, core_table},
45 #ifdef CONFIG_NET
46 {NET_802, "802", NULL, 0, 0555, e802_table},
47 {NET_ETHER, "ethernet", NULL, 0, 0555, ether_table},
48 #endif
49 #ifdef CONFIG_INET
50 {NET_IPV4, "ipv4", NULL, 0, 0555, ipv4_table},
51 #endif
52 #ifdef CONFIG_IPV6
53 {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
54 #endif
55 #ifdef CONFIG_TR
56 {NET_TR, "token-ring", NULL, 0, 0555, tr_table},
57 #endif
58 {0}