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>
19 static ctl_table ipv6_table
[] = {
21 .ctl_name
= NET_IPV6_ROUTE
,
25 .child
= ipv6_route_table
28 .ctl_name
= NET_IPV6_ICMP
,
32 .child
= ipv6_icmp_table
35 .ctl_name
= NET_IPV6_BINDV6ONLY
,
36 .procname
= "bindv6only",
37 .data
= &sysctl_ipv6_bindv6only
,
38 .maxlen
= sizeof(int),
40 .proc_handler
= &proc_dointvec
43 .ctl_name
= NET_IPV6_IP6FRAG_HIGH_THRESH
,
44 .procname
= "ip6frag_high_thresh",
45 .data
= &sysctl_ip6frag_high_thresh
,
46 .maxlen
= sizeof(int),
48 .proc_handler
= &proc_dointvec
51 .ctl_name
= NET_IPV6_IP6FRAG_LOW_THRESH
,
52 .procname
= "ip6frag_low_thresh",
53 .data
= &sysctl_ip6frag_low_thresh
,
54 .maxlen
= sizeof(int),
56 .proc_handler
= &proc_dointvec
59 .ctl_name
= NET_IPV6_IP6FRAG_TIME
,
60 .procname
= "ip6frag_time",
61 .data
= &sysctl_ip6frag_time
,
62 .maxlen
= sizeof(int),
64 .proc_handler
= &proc_dointvec_jiffies
,
65 .strategy
= &sysctl_jiffies
,
68 .ctl_name
= NET_IPV6_IP6FRAG_SECRET_INTERVAL
,
69 .procname
= "ip6frag_secret_interval",
70 .data
= &sysctl_ip6frag_secret_interval
,
71 .maxlen
= sizeof(int),
73 .proc_handler
= &proc_dointvec_jiffies
,
74 .strategy
= &sysctl_jiffies
77 .ctl_name
= NET_IPV6_MLD_MAX_MSF
,
78 .procname
= "mld_max_msf",
79 .data
= &sysctl_mld_max_msf
,
80 .maxlen
= sizeof(int),
82 .proc_handler
= &proc_dointvec
87 static struct ctl_table_header
*ipv6_sysctl_header
;
89 static ctl_table ipv6_net_table
[] = {
99 static ctl_table ipv6_root_table
[] = {
104 .child
= ipv6_net_table
109 void ipv6_sysctl_register(void)
111 ipv6_sysctl_header
= register_sysctl_table(ipv6_root_table
, 0);
114 void ipv6_sysctl_unregister(void)
116 unregister_sysctl_table(ipv6_sysctl_header
);
119 #endif /* CONFIG_SYSCTL */