diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-03-20 20:07:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 20:07:03 -0500 |
commit | 09c884d4c3b45cda904c2291d4723074ff523611 (patch) | |
tree | 90b893f1b83165d7088ecdead94085969e0a58ef /net/ipv6/addrconf.c | |
parent | e317da96227cef28a137e2d1ad790b23e518dd2b (diff) |
[IPV6]: ROUTE: Add accept_ra_rt_info_max_plen sysctl.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index e7add61e6e39..eb82cd5df8c6 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -170,6 +170,9 @@ struct ipv6_devconf ipv6_devconf = { | |||
170 | #ifdef CONFIG_IPV6_ROUTER_PREF | 170 | #ifdef CONFIG_IPV6_ROUTER_PREF |
171 | .accept_ra_rtr_pref = 1, | 171 | .accept_ra_rtr_pref = 1, |
172 | .rtr_probe_interval = 60 * HZ, | 172 | .rtr_probe_interval = 60 * HZ, |
173 | #ifdef CONFIG_IPV6_ROUTE_INFO | ||
174 | .accept_ra_rt_info_max_plen = 0, | ||
175 | #endif | ||
173 | #endif | 176 | #endif |
174 | }; | 177 | }; |
175 | 178 | ||
@@ -197,6 +200,9 @@ static struct ipv6_devconf ipv6_devconf_dflt = { | |||
197 | #ifdef CONFIG_IPV6_ROUTER_PREF | 200 | #ifdef CONFIG_IPV6_ROUTER_PREF |
198 | .accept_ra_rtr_pref = 1, | 201 | .accept_ra_rtr_pref = 1, |
199 | .rtr_probe_interval = 60 * HZ, | 202 | .rtr_probe_interval = 60 * HZ, |
203 | #ifdef CONFIG_IPV6_ROUTE_INFO | ||
204 | .accept_ra_rt_info_max_plen = 0, | ||
205 | #endif | ||
200 | #endif | 206 | #endif |
201 | }; | 207 | }; |
202 | 208 | ||
@@ -3133,6 +3139,9 @@ static void inline ipv6_store_devconf(struct ipv6_devconf *cnf, | |||
3133 | #ifdef CONFIG_IPV6_ROUTER_PREF | 3139 | #ifdef CONFIG_IPV6_ROUTER_PREF |
3134 | array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; | 3140 | array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; |
3135 | array[DEVCONF_RTR_PROBE_INTERVAL] = cnf->rtr_probe_interval; | 3141 | array[DEVCONF_RTR_PROBE_INTERVAL] = cnf->rtr_probe_interval; |
3142 | #ifdef CONFIV_IPV6_ROUTE_INFO | ||
3143 | array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen; | ||
3144 | #endif | ||
3136 | #endif | 3145 | #endif |
3137 | } | 3146 | } |
3138 | 3147 | ||
@@ -3620,6 +3629,16 @@ static struct addrconf_sysctl_table | |||
3620 | .proc_handler = &proc_dointvec_jiffies, | 3629 | .proc_handler = &proc_dointvec_jiffies, |
3621 | .strategy = &sysctl_jiffies, | 3630 | .strategy = &sysctl_jiffies, |
3622 | }, | 3631 | }, |
3632 | #ifdef CONFIV_IPV6_ROUTE_INFO | ||
3633 | { | ||
3634 | .ctl_name = NET_IPV6_ACCEPT_RA_RT_INFO_MAX_PLEN, | ||
3635 | .procname = "accept_ra_rt_info_max_plen", | ||
3636 | .data = &ipv6_devconf.accept_ra_rt_info_max_plen, | ||
3637 | .maxlen = sizeof(int), | ||
3638 | .mode = 0644, | ||
3639 | .proc_handler = &proc_dointvec, | ||
3640 | }, | ||
3641 | #endif | ||
3623 | #endif | 3642 | #endif |
3624 | { | 3643 | { |
3625 | .ctl_name = 0, /* sentinel */ | 3644 | .ctl_name = 0, /* sentinel */ |