sysctl_net.c 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.1.1.1 2007/06/12 07:27:14 eyryu
  9. * s3c-linux-2.6.21.5
  10. *
  11. * Revision 1.2 1996/05/08 20:24:40 shaver
  12. * Added bits for NET_BRIDGE and the NET_IPV4_ARP stuff and
  13. * NET_IPV4_IP_FORWARD.
  14. *
  15. *
  16. */
  17. #include <linux/mm.h>
  18. #include <linux/sysctl.h>
  19. #include <net/sock.h>
  20. #ifdef CONFIG_INET
  21. #include <net/ip.h>
  22. #endif
  23. #ifdef CONFIG_NET
  24. #include <linux/if_ether.h>
  25. #endif
  26. #ifdef CONFIG_TR
  27. #include <linux/if_tr.h>
  28. #endif
  29. struct ctl_table net_table[] = {
  30. {
  31. .ctl_name = NET_CORE,
  32. .procname = "core",
  33. .mode = 0555,
  34. .child = core_table,
  35. },
  36. #ifdef CONFIG_INET
  37. {
  38. .ctl_name = NET_IPV4,
  39. .procname = "ipv4",
  40. .mode = 0555,
  41. .child = ipv4_table
  42. },
  43. #endif
  44. #ifdef CONFIG_TR
  45. {
  46. .ctl_name = NET_TR,
  47. .procname = "token-ring",
  48. .mode = 0555,
  49. .child = tr_table,
  50. },
  51. #endif
  52. { 0 },
  53. };