~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/net/sysctl_net.c

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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
 20 extern ctl_table ipv4_table[];
 21 #endif
 22 
 23 #ifdef CONFIG_IPX
 24 extern ctl_table ipx_table[];
 25 #endif
 26 
 27 extern ctl_table core_table[];
 28 
 29 #ifdef CONFIG_UNIX
 30 extern ctl_table unix_table[];
 31 #endif
 32 
 33 #ifdef CONFIG_NET
 34 extern ctl_table ether_table[], e802_table[];
 35 #endif
 36 
 37 #ifdef CONFIG_IPV6
 38 extern ctl_table ipv6_table[];
 39 #endif
 40 
 41 #ifdef CONFIG_TR
 42 extern ctl_table tr_table[];
 43 #endif
 44 
 45 #ifdef CONFIG_ECONET
 46 extern ctl_table econet_table[];
 47 #endif
 48 
 49 ctl_table net_table[] = {
 50         {NET_CORE,   "core",      NULL, 0, 0555, core_table},      
 51 #ifdef CONFIG_UNIX
 52         {NET_UNIX,   "unix",      NULL, 0, 0555, unix_table},
 53 #endif
 54 #ifdef CONFIG_NET
 55         {NET_802,    "802",       NULL, 0, 0555, e802_table},
 56         {NET_ETHER,  "ethernet",  NULL, 0, 0555, ether_table},
 57 #endif
 58 #ifdef CONFIG_INET
 59         {NET_IPV4,   "ipv4",      NULL, 0, 0555, ipv4_table},
 60 #endif
 61 #ifdef CONFIG_IPX
 62         {NET_IPX,    "ipx",       NULL, 0, 0555, ipx_table},
 63 #endif
 64 #ifdef CONFIG_IPV6
 65         {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
 66 #endif
 67 #ifdef CONFIG_TR
 68         {NET_TR, "token-ring", NULL, 0, 0555, tr_table},
 69 #endif
 70 #ifdef CONFIG_ECONET
 71         {NET_ECONET, "econet",    NULL, 0, 0555, econet_table},
 72 #endif
 73         {0}
 74 };
 75 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.