2 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
6 #include <linux/sysctl.h>
7 #include <linux/config.h>
9 #include <linux/ipv6.h>
10 #include <net/ndisc.h>
12 #include <net/addrconf.h>
14 extern ctl_table ipv6_route_table
[];
18 ctl_table ipv6_table
[] = {
19 {NET_IPV6_ROUTE
, "route", NULL
, 0, 0555, ipv6_route_table
},
24 static struct ctl_table_header
*ipv6_sysctl_header
;
25 static struct ctl_table ipv6_root_table
[];
26 static struct ctl_table ipv6_net_table
[];
29 ctl_table ipv6_root_table
[] = {
30 {CTL_NET
, "net", NULL
, 0, 0555, ipv6_net_table
},
34 ctl_table ipv6_net_table
[] = {
35 {NET_IPV6
, "ipv6", NULL
, 0, 0555, ipv6_table
},
39 void ipv6_sysctl_register(void)
41 ipv6_sysctl_header
= register_sysctl_table(ipv6_root_table
, 0);
44 void ipv6_sysctl_unregister(void)
46 unregister_sysctl_table(ipv6_sysctl_header
);
50 #endif /* CONFIG_SYSCTL */