Import 2.3.48pre4
[davej-history.git] / net / ipv6 / sysctl_net_ipv6.c
blob6fbc022e120277948f928210dc09b1c6b82722c4
1 /*
2 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
3 */
5 #include <linux/mm.h>
6 #include <linux/sysctl.h>
7 #include <linux/config.h>
8 #include <linux/in6.h>
9 #include <linux/ipv6.h>
10 #include <net/ndisc.h>
11 #include <net/ipv6.h>
12 #include <net/addrconf.h>
14 extern ctl_table ipv6_route_table[];
16 #ifdef CONFIG_SYSCTL
18 ctl_table ipv6_table[] = {
19 {NET_IPV6_ROUTE, "route", NULL, 0, 0555, ipv6_route_table},
20 {0}
23 #ifdef MODULE
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},
31 {0}
34 ctl_table ipv6_net_table[] = {
35 {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
36 {0}
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);
48 #endif /* MODULE */
50 #endif /* CONFIG_SYSCTL */