Blame view

net/sysctl_net.c 947 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
  /* -*- 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]
   *
   * $Log: sysctl_net.c,v $
   * Revision 1.2  1996/05/08  20:24:40  shaver
   * Added bits for NET_BRIDGE and the NET_IPV4_ARP stuff and
   * NET_IPV4_IP_FORWARD.
   *
   *
   */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
15
  #include <linux/mm.h>
  #include <linux/sysctl.h>
496a22b08   Russell King   [NET]: Fix "sysct...
16
  #include <net/sock.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
17
  #ifdef CONFIG_INET
20380731b   Arnaldo Carvalho de Melo   [NET]: Fix sparse...
18
  #include <net/ip.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
  #ifdef CONFIG_NET
20380731b   Arnaldo Carvalho de Melo   [NET]: Fix sparse...
21
  #include <linux/if_ether.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22
23
24
  #endif
  
  #ifdef CONFIG_TR
20380731b   Arnaldo Carvalho de Melo   [NET]: Fix sparse...
25
  #include <linux/if_tr.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
26
27
28
29
30
31
32
33
34
  #endif
  
  struct ctl_table net_table[] = {
  	{
  		.ctl_name	= NET_CORE,
  		.procname	= "core",
  		.mode		= 0555,
  		.child		= core_table,
  	},
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  #ifdef CONFIG_INET
  	{
  		.ctl_name	= NET_IPV4,
  		.procname	= "ipv4",
  		.mode		= 0555,
  		.child		= ipv4_table
  	},
  #endif
  #ifdef CONFIG_TR
  	{
  		.ctl_name	= NET_TR,
  		.procname	= "token-ring",
  		.mode		= 0555,
  		.child		= tr_table,
  	},
  #endif
  	{ 0 },
  };