2 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
5 * YOSHIFUJI Hideaki @USAGI: added icmp sysctl table.
9 #include <linux/sysctl.h>
10 #include <linux/config.h>
11 #include <linux/in6.h>
12 #include <linux/ipv6.h>
13 #include <net/ndisc.h>
15 #include <net/addrconf.h>
17 extern ctl_table ipv6_route_table[];
18 extern ctl_table ipv6_icmp_table[];
22 ctl_table ipv6_table[] = {
23 {NET_IPV6_ROUTE, "route", NULL, 0, 0555, ipv6_route_table},
24 {NET_IPV6_ICMP, "icmp", NULL, 0, 0500, ipv6_icmp_table},
25 {NET_IPV6_BINDV6ONLY, "bindv6only",
26 &sysctl_ipv6_bindv6only, sizeof(int), 0644, NULL, &proc_dointvec},
31 static struct ctl_table_header *ipv6_sysctl_header;
32 static struct ctl_table ipv6_root_table[];
33 static struct ctl_table ipv6_net_table[];
36 ctl_table ipv6_root_table[] = {
37 {CTL_NET, "net", NULL, 0, 0555, ipv6_net_table},
41 ctl_table ipv6_net_table[] = {
42 {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
46 void ipv6_sysctl_register(void)
48 ipv6_sysctl_header = register_sysctl_table(ipv6_root_table, 0);
51 void ipv6_sysctl_unregister(void)
53 unregister_sysctl_table(ipv6_sysctl_header);
57 #endif /* CONFIG_SYSCTL */