1/*
2 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
3 */
4
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>
13
14extern ctl_table ipv6_route_table[];
15
16#ifdef CONFIG_SYSCTL
17
18ctl_table ipv6_table[] = {
19	{NET_IPV6_ROUTE, "route", NULL, 0, 0555, ipv6_route_table},
20	{0}
21};
22
23#ifdef MODULE
24static struct ctl_table_header *ipv6_sysctl_header;
25static struct ctl_table ipv6_root_table[];
26static struct ctl_table ipv6_net_table[];
27
28
29ctl_table ipv6_root_table[] = {
30	{CTL_NET, "net", NULL, 0, 0555, ipv6_net_table},
31        {0}
32};
33
34ctl_table ipv6_net_table[] = {
35	{NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
36        {0}
37};
38
39void ipv6_sysctl_register(void)
40{
41	ipv6_sysctl_header = register_sysctl_table(ipv6_root_table, 0);
42}
43
44void ipv6_sysctl_unregister(void)
45{
46	unregister_sysctl_table(ipv6_sysctl_header);
47}
48#endif	/* MODULE */
49
50#endif /* CONFIG_SYSCTL */
51
52
53
54