diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-03-20 20:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 20:05:47 -0500 |
commit | 52e1635631b342803aecaf81a362c1464e3da2e5 (patch) | |
tree | 971c40743f7fcb594697dd18d22e2d8b168d1785 /net/ipv6/addrconf.c | |
parent | 930d6ff2e2a5f1538448d3b0b2652a8f0c0f6cba (diff) |
[IPV6]: ROUTE: Add router_probe_interval 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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 51edba5fea26..e7add61e6e39 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -169,6 +169,7 @@ struct ipv6_devconf ipv6_devconf = { | |||
169 | .accept_ra_pinfo = 1, | 169 | .accept_ra_pinfo = 1, |
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 | #endif | 173 | #endif |
173 | }; | 174 | }; |
174 | 175 | ||
@@ -195,6 +196,7 @@ static struct ipv6_devconf ipv6_devconf_dflt = { | |||
195 | .accept_ra_pinfo = 1, | 196 | .accept_ra_pinfo = 1, |
196 | #ifdef CONFIG_IPV6_ROUTER_PREF | 197 | #ifdef CONFIG_IPV6_ROUTER_PREF |
197 | .accept_ra_rtr_pref = 1, | 198 | .accept_ra_rtr_pref = 1, |
199 | .rtr_probe_interval = 60 * HZ, | ||
198 | #endif | 200 | #endif |
199 | }; | 201 | }; |
200 | 202 | ||
@@ -3130,6 +3132,7 @@ static void inline ipv6_store_devconf(struct ipv6_devconf *cnf, | |||
3130 | array[DEVCONF_ACCEPT_RA_PINFO] = cnf->accept_ra_pinfo; | 3132 | array[DEVCONF_ACCEPT_RA_PINFO] = cnf->accept_ra_pinfo; |
3131 | #ifdef CONFIG_IPV6_ROUTER_PREF | 3133 | #ifdef CONFIG_IPV6_ROUTER_PREF |
3132 | array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; | 3134 | array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; |
3135 | array[DEVCONF_RTR_PROBE_INTERVAL] = cnf->rtr_probe_interval; | ||
3133 | #endif | 3136 | #endif |
3134 | } | 3137 | } |
3135 | 3138 | ||
@@ -3608,6 +3611,15 @@ static struct addrconf_sysctl_table | |||
3608 | .mode = 0644, | 3611 | .mode = 0644, |
3609 | .proc_handler = &proc_dointvec, | 3612 | .proc_handler = &proc_dointvec, |
3610 | }, | 3613 | }, |
3614 | { | ||
3615 | .ctl_name = NET_IPV6_RTR_PROBE_INTERVAL, | ||
3616 | .procname = "router_probe_interval", | ||
3617 | .data = &ipv6_devconf.rtr_probe_interval, | ||
3618 | .maxlen = sizeof(int), | ||
3619 | .mode = 0644, | ||
3620 | .proc_handler = &proc_dointvec_jiffies, | ||
3621 | .strategy = &sysctl_jiffies, | ||
3622 | }, | ||
3611 | #endif | 3623 | #endif |
3612 | { | 3624 | { |
3613 | .ctl_name = 0, /* sentinel */ | 3625 | .ctl_name = 0, /* sentinel */ |