blob: c5241fcbb9662451918242557022da60ff003ca0 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* -*- 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
Arnaldo Carvalho de Melo20380732005-08-16 02:18:02 -030020#include <net/ip.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#endif
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#ifdef CONFIG_NET
Arnaldo Carvalho de Melo20380732005-08-16 02:18:02 -030024#include <linux/if_ether.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#endif
26
27#ifdef CONFIG_TR
Arnaldo Carvalho de Melo20380732005-08-16 02:18:02 -030028#include <linux/if_tr.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#endif
30
31struct 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};