diff options
Diffstat (limited to 'net/ipv6/sysctl_net_ipv6.c')
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index fa1d8f4e0051..6dcf5e7d661b 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c | |||
@@ -15,6 +15,18 @@ | |||
15 | #include <net/addrconf.h> | 15 | #include <net/addrconf.h> |
16 | #include <net/inet_frag.h> | 16 | #include <net/inet_frag.h> |
17 | 17 | ||
18 | static struct ctl_table empty[1]; | ||
19 | |||
20 | static ctl_table ipv6_static_skeleton[] = { | ||
21 | { | ||
22 | .procname = "neigh", | ||
23 | .maxlen = 0, | ||
24 | .mode = 0555, | ||
25 | .child = empty, | ||
26 | }, | ||
27 | { } | ||
28 | }; | ||
29 | |||
18 | static ctl_table ipv6_table_template[] = { | 30 | static ctl_table ipv6_table_template[] = { |
19 | { | 31 | { |
20 | .procname = "route", | 32 | .procname = "route", |
@@ -152,8 +164,7 @@ static struct ctl_table_header *ip6_base; | |||
152 | 164 | ||
153 | int ipv6_static_sysctl_register(void) | 165 | int ipv6_static_sysctl_register(void) |
154 | { | 166 | { |
155 | static struct ctl_table empty[1]; | 167 | ip6_base = register_sysctl_paths(net_ipv6_ctl_path, ipv6_static_skeleton); |
156 | ip6_base = register_sysctl_paths(net_ipv6_ctl_path, empty); | ||
157 | if (ip6_base == NULL) | 168 | if (ip6_base == NULL) |
158 | return -ENOMEM; | 169 | return -ENOMEM; |
159 | return 0; | 170 | return 0; |