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/in6.h>
11 #include <linux/ipv6.h>
12 #include <net/ndisc.h>
14 #include <net/addrconf.h>
18 static ctl_table ipv6_table
[] = {
20 .ctl_name
= NET_IPV6_ROUTE
,
24 .child
= ipv6_route_table
27 .ctl_name
= NET_IPV6_ICMP
,
31 .child
= ipv6_icmp_table
34 .ctl_name
= NET_IPV6_BINDV6ONLY
,
35 .procname
= "bindv6only",
36 .data
= &sysctl_ipv6_bindv6only
,
37 .maxlen
= sizeof(int),
39 .proc_handler
= &proc_dointvec
42 .ctl_name
= NET_IPV6_IP6FRAG_HIGH_THRESH
,
43 .procname
= "ip6frag_high_thresh",
44 .data
= &sysctl_ip6frag_high_thresh
,
45 .maxlen
= sizeof(int),
47 .proc_handler
= &proc_dointvec
50 .ctl_name
= NET_IPV6_IP6FRAG_LOW_THRESH
,
51 .procname
= "ip6frag_low_thresh",
52 .data
= &sysctl_ip6frag_low_thresh
,
53 .maxlen
= sizeof(int),
55 .proc_handler
= &proc_dointvec
58 .ctl_name
= NET_IPV6_IP6FRAG_TIME
,
59 .procname
= "ip6frag_time",
60 .data
= &sysctl_ip6frag_time
,
61 .maxlen
= sizeof(int),
63 .proc_handler
= &proc_dointvec_jiffies
,
64 .strategy
= &sysctl_jiffies
,
67 .ctl_name
= NET_IPV6_IP6FRAG_SECRET_INTERVAL
,
68 .procname
= "ip6frag_secret_interval",
69 .data
= &sysctl_ip6frag_secret_interval
,
70 .maxlen
= sizeof(int),
72 .proc_handler
= &proc_dointvec_jiffies
,
73 .strategy
= &sysctl_jiffies
76 .ctl_name
= NET_IPV6_MLD_MAX_MSF
,
77 .procname
= "mld_max_msf",
78 .data
= &sysctl_mld_max_msf
,
79 .maxlen
= sizeof(int),
81 .proc_handler
= &proc_dointvec
86 static struct ctl_table_header
*ipv6_sysctl_header
;
88 static ctl_table ipv6_net_table
[] = {
98 static ctl_table ipv6_root_table
[] = {
103 .child
= ipv6_net_table
108 void ipv6_sysctl_register(void)
110 ipv6_sysctl_header
= register_sysctl_table(ipv6_root_table
);
113 void ipv6_sysctl_unregister(void)
115 unregister_sysctl_table(ipv6_sysctl_header
);
118 #endif /* CONFIG_SYSCTL */