]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
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.2 1996/05/08 20:24:40 shaver | |
9 | * Added bits for NET_BRIDGE and the NET_IPV4_ARP stuff and | |
10 | * NET_IPV4_IP_FORWARD. | |
11 | * | |
12 | * | |
13 | */ | |
14 | ||
15 | #include <linux/config.h> | |
16 | #include <linux/mm.h> | |
17 | #include <linux/sysctl.h> | |
18 | ||
19 | #ifdef CONFIG_INET | |
20380731 | 20 | #include <net/ip.h> |
1da177e4 LT |
21 | #endif |
22 | ||
1da177e4 | 23 | #ifdef CONFIG_NET |
20380731 | 24 | #include <linux/if_ether.h> |
1da177e4 LT |
25 | #endif |
26 | ||
27 | #ifdef CONFIG_TR | |
20380731 | 28 | #include <linux/if_tr.h> |
1da177e4 LT |
29 | #endif |
30 | ||
31 | struct ctl_table net_table[] = { | |
32 | { | |
33 | .ctl_name = NET_CORE, | |
34 | .procname = "core", | |
35 | .mode = 0555, | |
36 | .child = core_table, | |
37 | }, | |
38 | #ifdef CONFIG_NET | |
39 | { | |
40 | .ctl_name = NET_ETHER, | |
41 | .procname = "ethernet", | |
42 | .mode = 0555, | |
43 | .child = ether_table, | |
44 | }, | |
45 | #endif | |
46 | #ifdef CONFIG_INET | |
47 | { | |
48 | .ctl_name = NET_IPV4, | |
49 | .procname = "ipv4", | |
50 | .mode = 0555, | |
51 | .child = ipv4_table | |
52 | }, | |
53 | #endif | |
54 | #ifdef CONFIG_TR | |
55 | { | |
56 | .ctl_name = NET_TR, | |
57 | .procname = "token-ring", | |
58 | .mode = 0555, | |
59 | .child = tr_table, | |
60 | }, | |
61 | #endif | |
62 | { 0 }, | |
63 | }; |