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 static ctl_table ipv6_table
[] = {
24 .ctl_name
= NET_IPV6_ROUTE
,
28 .child
= ipv6_route_table
31 .ctl_name
= NET_IPV6_ICMP
,
35 .child
= ipv6_icmp_table
38 .ctl_name
= NET_IPV6_BINDV6ONLY
,
39 .procname
= "bindv6only",
40 .data
= &sysctl_ipv6_bindv6only
,
41 .maxlen
= sizeof(int),
43 .proc_handler
= &proc_dointvec
46 .ctl_name
= NET_IPV6_IP6FRAG_HIGH_THRESH
,
47 .procname
= "ip6frag_high_thresh",
48 .data
= &sysctl_ip6frag_high_thresh
,
49 .maxlen
= sizeof(int),
51 .proc_handler
= &proc_dointvec
54 .ctl_name
= NET_IPV6_IP6FRAG_LOW_THRESH
,
55 .procname
= "ip6frag_low_thresh",
56 .data
= &sysctl_ip6frag_low_thresh
,
57 .maxlen
= sizeof(int),
59 .proc_handler
= &proc_dointvec
62 .ctl_name
= NET_IPV6_IP6FRAG_TIME
,
63 .procname
= "ip6frag_time",
64 .data
= &sysctl_ip6frag_time
,
65 .maxlen
= sizeof(int),
67 .proc_handler
= &proc_dointvec_jiffies
,
68 .strategy
= &sysctl_jiffies
,
71 .ctl_name
= NET_IPV6_IP6FRAG_SECRET_INTERVAL
,
72 .procname
= "ip6frag_secret_interval",
73 .data
= &sysctl_ip6frag_secret_interval
,
74 .maxlen
= sizeof(int),
76 .proc_handler
= &proc_dointvec_jiffies
,
77 .strategy
= &sysctl_jiffies
80 .ctl_name
= NET_IPV6_MLD_MAX_MSF
,
81 .procname
= "mld_max_msf",
82 .data
= &sysctl_mld_max_msf
,
83 .maxlen
= sizeof(int),
85 .proc_handler
= &proc_dointvec
90 static struct ctl_table_header
*ipv6_sysctl_header
;
92 static ctl_table ipv6_net_table
[] = {
102 static ctl_table ipv6_root_table
[] = {
107 .child
= ipv6_net_table
112 void ipv6_sysctl_register(void)
114 ipv6_sysctl_header
= register_sysctl_table(ipv6_root_table
, 0);
117 void ipv6_sysctl_unregister(void)
119 unregister_sysctl_table(ipv6_sysctl_header
);
122 #endif /* CONFIG_SYSCTL */