|
@@ -15,6 +15,8 @@
|
|
|
#include <net/addrconf.h>
|
|
|
#include <net/inet_frag.h>
|
|
|
|
|
|
+static struct ctl_table empty[1];
|
|
|
+
|
|
|
static ctl_table ipv6_table_template[] = {
|
|
|
{
|
|
|
.procname = "route",
|
|
@@ -35,6 +37,12 @@ static ctl_table ipv6_table_template[] = {
|
|
|
.mode = 0644,
|
|
|
.proc_handler = proc_dointvec
|
|
|
},
|
|
|
+ {
|
|
|
+ .procname = "neigh",
|
|
|
+ .maxlen = 0,
|
|
|
+ .mode = 0555,
|
|
|
+ .child = empty,
|
|
|
+ },
|
|
|
{ }
|
|
|
};
|
|
|
|
|
@@ -152,7 +160,6 @@ static struct ctl_table_header *ip6_base;
|
|
|
|
|
|
int ipv6_static_sysctl_register(void)
|
|
|
{
|
|
|
- static struct ctl_table empty[1];
|
|
|
ip6_base = register_sysctl_paths(net_ipv6_ctl_path, empty);
|
|
|
if (ip6_base == NULL)
|
|
|
return -ENOMEM;
|