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>
10 #include <linux/sysctl.h>
12 #include <linux/atalk.h>
14 static struct ctl_table atalk_table
[] = {
16 .ctl_name
= NET_ATALK_AARP_EXPIRY_TIME
,
17 .procname
= "aarp-expiry-time",
18 .data
= &sysctl_aarp_expiry_time
,
19 .maxlen
= sizeof(int),
21 .proc_handler
= &proc_dointvec_jiffies
,
22 .strategy
= &sysctl_jiffies
,
25 .ctl_name
= NET_ATALK_AARP_TICK_TIME
,
26 .procname
= "aarp-tick-time",
27 .data
= &sysctl_aarp_tick_time
,
28 .maxlen
= sizeof(int),
30 .proc_handler
= &proc_dointvec_jiffies
,
31 .strategy
= &sysctl_jiffies
,
34 .ctl_name
= NET_ATALK_AARP_RETRANSMIT_LIMIT
,
35 .procname
= "aarp-retransmit-limit",
36 .data
= &sysctl_aarp_retransmit_limit
,
37 .maxlen
= sizeof(int),
39 .proc_handler
= &proc_dointvec
,
42 .ctl_name
= NET_ATALK_AARP_RESOLVE_TIME
,
43 .procname
= "aarp-resolve-time",
44 .data
= &sysctl_aarp_resolve_time
,
45 .maxlen
= sizeof(int),
47 .proc_handler
= &proc_dointvec_jiffies
,
48 .strategy
= &sysctl_jiffies
,
53 static struct ctl_table atalk_dir_table
[] = {
55 .ctl_name
= NET_ATALK
,
56 .procname
= "appletalk",
63 static struct ctl_table atalk_root_table
[] = {
68 .child
= atalk_dir_table
,
73 static struct ctl_table_header
*atalk_table_header
;
75 void atalk_register_sysctl(void)
77 atalk_table_header
= register_sysctl_table(atalk_root_table
, 1);
80 void atalk_unregister_sysctl(void)
82 unregister_sysctl_table(atalk_table_header
);