sysctl_net_802.c 844 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- linux-c -*-
  2. * sysctl_net_802.c: sysctl interface to net 802 subsystem.
  3. *
  4. * Begun April 1, 1996, Mike Shaver.
  5. * Added /proc/sys/net/802 directory entry (empty =) ). [MS]
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #include <linux/mm.h>
  13. #include <linux/if_tr.h>
  14. #include <linux/sysctl.h>
  15. #ifdef CONFIG_TR
  16. extern int sysctl_tr_rif_timeout;
  17. #endif
  18. struct ctl_table tr_table[] = {
  19. #ifdef CONFIG_TR
  20. {
  21. .ctl_name = NET_TR_RIF_TIMEOUT,
  22. .procname = "rif_timeout",
  23. .data = &sysctl_tr_rif_timeout,
  24. .maxlen = sizeof(int),
  25. .mode = 0644,
  26. .proc_handler = &proc_dointvec
  27. },
  28. #endif /* CONFIG_TR */
  29. { 0 },
  30. };