Linux 2.4.0-test9pre2
[davej-history.git] / net / appletalk / sysctl_net_atalk.c
blob8d9fe232ed9f35f33300acfb040674a7d174bfd1
1 /* -*- linux-c -*-
2 * sysctl_net_atalk.c: sysctl interface to net AppleTalk subsystem.
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 */
9 #include <linux/config.h>
10 #include <linux/mm.h>
11 #include <linux/sysctl.h>
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;
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}
31 static ctl_table atalk_dir_table[] = {
32 {NET_ATALK, "appletalk", NULL, 0, 0555, atalk_table},
33 {0}
36 static ctl_table atalk_root_table[] = {
37 {CTL_NET, "net", NULL, 0, 0555, atalk_dir_table},
38 {0}
41 static struct ctl_table_header *atalk_table_header;
43 void atalk_register_sysctl(void)
45 atalk_table_header = register_sysctl_table(atalk_root_table, 1);
48 void atalk_unregister_sysctl(void)
50 unregister_sysctl_table(atalk_table_header);
53 #else
54 void atalk_register_sysctl(void)
58 void atalk_unregister_sysctl(void)
61 #endif