Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sysctl_net_atalk.c
Go to the documentation of this file.
1 /*
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/sysctl.h>
10 #include <net/sock.h>
11 #include <linux/atalk.h>
12 
13 static struct ctl_table atalk_table[] = {
14  {
15  .procname = "aarp-expiry-time",
16  .data = &sysctl_aarp_expiry_time,
17  .maxlen = sizeof(int),
18  .mode = 0644,
20  },
21  {
22  .procname = "aarp-tick-time",
23  .data = &sysctl_aarp_tick_time,
24  .maxlen = sizeof(int),
25  .mode = 0644,
27  },
28  {
29  .procname = "aarp-retransmit-limit",
31  .maxlen = sizeof(int),
32  .mode = 0644,
34  },
35  {
36  .procname = "aarp-resolve-time",
37  .data = &sysctl_aarp_resolve_time,
38  .maxlen = sizeof(int),
39  .mode = 0644,
41  },
42  { },
43 };
44 
45 static struct ctl_table_header *atalk_table_header;
46 
48 {
49  atalk_table_header = register_net_sysctl(&init_net, "net/appletalk", atalk_table);
50 }
51 
53 {
54  unregister_net_sysctl_table(atalk_table_header);
55 }