|
@@ -17,6 +17,16 @@
|
|
|
|
|
|
static struct ctl_table empty[1];
|
|
static struct ctl_table empty[1];
|
|
|
|
|
|
|
|
+static ctl_table ipv6_static_skeleton[] = {
|
|
|
|
+ {
|
|
|
|
+ .procname = "neigh",
|
|
|
|
+ .maxlen = 0,
|
|
|
|
+ .mode = 0555,
|
|
|
|
+ .child = empty,
|
|
|
|
+ },
|
|
|
|
+ { }
|
|
|
|
+};
|
|
|
|
+
|
|
static ctl_table ipv6_table_template[] = {
|
|
static ctl_table ipv6_table_template[] = {
|
|
{
|
|
{
|
|
.procname = "route",
|
|
.procname = "route",
|
|
@@ -37,12 +47,6 @@ static ctl_table ipv6_table_template[] = {
|
|
.mode = 0644,
|
|
.mode = 0644,
|
|
.proc_handler = proc_dointvec
|
|
.proc_handler = proc_dointvec
|
|
},
|
|
},
|
|
- {
|
|
|
|
- .procname = "neigh",
|
|
|
|
- .maxlen = 0,
|
|
|
|
- .mode = 0555,
|
|
|
|
- .child = empty,
|
|
|
|
- },
|
|
|
|
{ }
|
|
{ }
|
|
};
|
|
};
|
|
|
|
|
|
@@ -160,7 +164,7 @@ static struct ctl_table_header *ip6_base;
|
|
|
|
|
|
int ipv6_static_sysctl_register(void)
|
|
int ipv6_static_sysctl_register(void)
|
|
{
|
|
{
|
|
- ip6_base = register_sysctl_paths(net_ipv6_ctl_path, empty);
|
|
|
|
|
|
+ ip6_base = register_sysctl_paths(net_ipv6_ctl_path, ipv6_static_skeleton);
|
|
if (ip6_base == NULL)
|
|
if (ip6_base == NULL)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
return 0;
|
|
return 0;
|