aboutsummaryrefslogtreecommitdiffstats
path: root/net/appletalk/sysctl_net_atalk.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /net/appletalk/sysctl_net_atalk.c
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'net/appletalk/sysctl_net_atalk.c')
-rw-r--r--net/appletalk/sysctl_net_atalk.c83
1 files changed, 83 insertions, 0 deletions
diff --git a/net/appletalk/sysctl_net_atalk.c b/net/appletalk/sysctl_net_atalk.c
new file mode 100644
index 000000000000..af7f0604395d
--- /dev/null
+++ b/net/appletalk/sysctl_net_atalk.c
@@ -0,0 +1,83 @@
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/config.h>
10#include <linux/sysctl.h>
11#include <net/sock.h>
12#include <linux/atalk.h>
13
14static struct ctl_table atalk_table[] = {
15 {
16 .ctl_name = NET_ATALK_AARP_EXPIRY_TIME,
17 .procname = "aarp-expiry-time",
18 .data = &sysctl_aarp_expiry_time,
19 .maxlen = sizeof(int),
20 .mode = 0644,
21 .proc_handler = &proc_dointvec_jiffies,
22 .strategy = &sysctl_jiffies,
23 },
24 {
25 .ctl_name = NET_ATALK_AARP_TICK_TIME,
26 .procname = "aarp-tick-time",
27 .data = &sysctl_aarp_tick_time,
28 .maxlen = sizeof(int),
29 .mode = 0644,
30 .proc_handler = &proc_dointvec_jiffies,
31 .strategy = &sysctl_jiffies,
32 },
33 {
34 .ctl_name = NET_ATALK_AARP_RETRANSMIT_LIMIT,
35 .procname = "aarp-retransmit-limit",
36 .data = &sysctl_aarp_retransmit_limit,
37 .maxlen = sizeof(int),
38 .mode = 0644,
39 .proc_handler = &proc_dointvec,
40 },
41 {
42 .ctl_name = NET_ATALK_AARP_RESOLVE_TIME,
43 .procname = "aarp-resolve-time",
44 .data = &sysctl_aarp_resolve_time,
45 .maxlen = sizeof(int),
46 .mode = 0644,
47 .proc_handler = &proc_dointvec_jiffies,
48 .strategy = &sysctl_jiffies,
49 },
50 { 0 },
51};
52
53static struct ctl_table atalk_dir_table[] = {
54 {
55 .ctl_name = NET_ATALK,
56 .procname = "appletalk",
57 .mode = 0555,
58 .child = atalk_table,
59 },
60 { 0 },
61};
62
63static struct ctl_table atalk_root_table[] = {
64 {
65 .ctl_name = CTL_NET,
66 .procname = "net",
67 .mode = 0555,
68 .child = atalk_dir_table,
69 },
70 { 0 },
71};
72
73static struct ctl_table_header *atalk_table_header;
74
75void atalk_register_sysctl(void)
76{
77 atalk_table_header = register_sysctl_table(atalk_root_table, 1);
78}
79
80void atalk_unregister_sysctl(void)
81{
82 unregister_sysctl_table(atalk_table_header);
83}