sysctl_net.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #include <linux/config.h>
  15. #include <linux/mm.h>
  16. #include <linux/sysctl.h>
  17. #include <net/sock.h>
  18. #ifdef CONFIG_INET
  19. #include <net/ip.h>
  20. #endif
  21. #ifdef CONFIG_NET
  22. #include <linux/if_ether.h>
  23. #endif
  24. #ifdef CONFIG_TR
  25. #include <linux/if_tr.h>
  26. #endif
  27. struct ctl_table net_table[] = {
  28. {
  29. .ctl_name = NET_CORE,
  30. .procname = "core",
  31. .mode = 0555,
  32. .child = core_table,
  33. },
  34. #ifdef CONFIG_NET
  35. {
  36. .ctl_name = NET_ETHER,
  37. .procname = "ethernet",
  38. .mode = 0555,
  39. .child = ether_table,
  40. },
  41. #endif
  42. #ifdef CONFIG_INET
  43. {
  44. .ctl_name = NET_IPV4,
  45. .procname = "ipv4",
  46. .mode = 0555,
  47. .child = ipv4_table
  48. },
  49. #endif
  50. #ifdef CONFIG_TR
  51. {
  52. .ctl_name = NET_TR,
  53. .procname = "token-ring",
  54. .mode = 0555,
  55. .child = tr_table,
  56. },
  57. #endif
  58. { 0 },
  59. };