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

Linux Cross Reference
Linux/net/appletalk/sysctl_net_atalk.c

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

  1 /* -*- linux-c -*-
  2  * sysctl_net_atalk.c: sysctl interface to net AppleTalk subsystem.
  3  *
  4  * Begun April 1, 1996, Mike Shaver.
  5  * Added /proc/sys/net/atalk directory entry (empty =) ). [MS]
  6  * Dynamic registration, added aarp entries. (5/30/97 Chris Horn)
  7  */
  8 
  9 #include <linux/config.h>
 10 #include <linux/mm.h>
 11 #include <linux/sysctl.h>
 12 
 13 extern int sysctl_aarp_expiry_time;
 14 extern int sysctl_aarp_tick_time;
 15 extern int sysctl_aarp_retransmit_limit;
 16 extern int sysctl_aarp_resolve_time;
 17 
 18 #ifdef CONFIG_SYSCTL
 19 static ctl_table atalk_table[] = {
 20         {NET_ATALK_AARP_EXPIRY_TIME, "aarp-expiry-time",
 21          &sysctl_aarp_expiry_time, sizeof(int), 0644, NULL, &proc_dointvec_jiffies},
 22         {NET_ATALK_AARP_TICK_TIME, "aarp-tick-time",
 23          &sysctl_aarp_tick_time, sizeof(int), 0644, NULL, &proc_dointvec_jiffies},
 24         {NET_ATALK_AARP_RETRANSMIT_LIMIT, "aarp-retransmit-limit",
 25          &sysctl_aarp_retransmit_limit, sizeof(int), 0644, NULL, &proc_dointvec},
 26         {NET_ATALK_AARP_RESOLVE_TIME, "aarp-resolve-time",
 27          &sysctl_aarp_resolve_time, sizeof(int), 0644, NULL, &proc_dointvec_jiffies},
 28         {0}
 29 };
 30 
 31 static ctl_table atalk_dir_table[] = {
 32         {NET_ATALK, "appletalk", NULL, 0, 0555, atalk_table},
 33         {0}
 34 };
 35 
 36 static ctl_table atalk_root_table[] = {
 37         {CTL_NET, "net", NULL, 0, 0555, atalk_dir_table},
 38         {0}
 39 };
 40 
 41 static struct ctl_table_header *atalk_table_header;
 42 
 43 void atalk_register_sysctl(void)
 44 {
 45         atalk_table_header = register_sysctl_table(atalk_root_table, 1);
 46 }
 47 
 48 void atalk_unregister_sysctl(void)
 49 {
 50         unregister_sysctl_table(atalk_table_header);
 51 }
 52 
 53 #else
 54 void atalk_register_sysctl(void)
 55 {
 56 }
 57 
 58 void atalk_unregister_sysctl(void)
 59 {
 60 }
 61 #endif
 62 

~ [ 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.