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)
9 #include <linux/config.h>
12 #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 static struct ctl_table atalk_table[] = {
20 .ctl_name = NET_ATALK_AARP_EXPIRY_TIME,
21 .procname = "aarp-expiry-time",
22 .data = &sysctl_aarp_expiry_time,
23 .maxlen = sizeof(int),
25 .proc_handler = &proc_dointvec_jiffies,
26 .strategy = &sysctl_jiffies,
29 .ctl_name = NET_ATALK_AARP_TICK_TIME,
30 .procname = "aarp-tick-time",
31 .data = &sysctl_aarp_tick_time,
32 .maxlen = sizeof(int),
34 .proc_handler = &proc_dointvec_jiffies,
35 .strategy = &sysctl_jiffies,
38 .ctl_name = NET_ATALK_AARP_RETRANSMIT_LIMIT,
39 .procname = "aarp-retransmit-limit",
40 .data = &sysctl_aarp_retransmit_limit,
41 .maxlen = sizeof(int),
43 .proc_handler = &proc_dointvec,
46 .ctl_name = NET_ATALK_AARP_RESOLVE_TIME,
47 .procname = "aarp-resolve-time",
48 .data = &sysctl_aarp_resolve_time,
49 .maxlen = sizeof(int),
51 .proc_handler = &proc_dointvec_jiffies,
52 .strategy = &sysctl_jiffies,
57 static struct ctl_table atalk_dir_table[] = {
59 .ctl_name = NET_ATALK,
60 .procname = "appletalk",
67 static struct ctl_table atalk_root_table[] = {
72 .child = atalk_dir_table,
77 static struct ctl_table_header *atalk_table_header;
79 void atalk_register_sysctl(void)
81 atalk_table_header = register_sysctl_table(atalk_root_table, 1);
84 void atalk_unregister_sysctl(void)
86 unregister_sysctl_table(atalk_table_header);
89 #else /* CONFIG_PROC_FS */
90 void atalk_register_sysctl(void)
94 void atalk_unregister_sysctl(void)
97 #endif /* CONFIG_PROC_FS */