cleanup
[linux-2.4.21-pre4.git] / net / sysctl_net.c
1 /* -*- linux-c -*-
2  * sysctl_net.c: sysctl interface to net subsystem.
3  *
4  * Begun April 1, 1996, Mike Shaver.
5  * Added /proc/sys/net directories for each protocol family. [MS]
6  *
7  * $Log: sysctl_net.c,v $
8  * Revision 1.1.1.1  2005/04/11 02:51:10  jack
9  * first release
10  *
11  * Revision 1.1.1.1  2005/01/10 13:17:07  jack
12  * First release
13  *
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.
17  *
18  *
19  */
20
21 #include <linux/config.h>
22 #include <linux/mm.h>
23 #include <linux/sysctl.h>
24
25 #ifdef CONFIG_INET
26 extern ctl_table ipv4_table[];
27 #endif
28
29 extern ctl_table core_table[];
30
31 #ifdef CONFIG_NET
32 extern ctl_table ether_table[], e802_table[];
33 #endif
34
35 #ifdef CONFIG_IPV6
36 extern ctl_table ipv6_table[];
37 #endif
38
39 #ifdef CONFIG_TR
40 extern ctl_table tr_table[];
41 #endif
42
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}
59 };