All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] ipv6: rearm router solicitaion timer when setting new tokenized address
@ 2013-06-26  1:41 Hannes Frederic Sowa
  2013-06-26 17:16 ` Daniel Borkmann
  2013-06-26 22:23 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Hannes Frederic Sowa @ 2013-06-26  1:41 UTC (permalink / raw)
  To: netdev; +Cc: dborkman

When a new tokenized address gets installed we send out just one
router solicition. We should send out `rtr_solicits' in case one router
advertisment got lost.

So, rearm the timer as we do in addrconf_dad_complete.

Cc: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
 net/ipv6/addrconf.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index afaf3cd..4e4cc1f 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4361,8 +4361,11 @@ static int inet6_set_iftoken(struct inet6_dev *idev, struct in6_addr *token)
 
 	write_lock_bh(&idev->lock);
 
-	if (update_rs)
+	if (update_rs) {
 		idev->if_flags |= IF_RS_SENT;
+		idev->rs_probes = 1;
+		addrconf_mod_rs_timer(idev, idev->cnf.rtr_solicit_interval);
+	}
 
 	/* Well, that's kinda nasty ... */
 	list_for_each_entry(ifp, &idev->addr_list, if_list) {
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] ipv6: rearm router solicitaion timer when setting new tokenized address
  2013-06-26  1:41 [PATCH net-next] ipv6: rearm router solicitaion timer when setting new tokenized address Hannes Frederic Sowa
@ 2013-06-26 17:16 ` Daniel Borkmann
  2013-06-26 22:23 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Borkmann @ 2013-06-26 17:16 UTC (permalink / raw)
  To: netdev; +Cc: Hannes Frederic Sowa

On 06/26/2013 03:41 AM, Hannes Frederic Sowa wrote:
> When a new tokenized address gets installed we send out just one
> router solicition. We should send out `rtr_solicits' in case one router
> advertisment got lost.
>
> So, rearm the timer as we do in addrconf_dad_complete.
>
> Cc: Daniel Borkmann <dborkman@redhat.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>

Acked-by: Daniel Borkmann <dborkman@redhat.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] ipv6: rearm router solicitaion timer when setting new tokenized address
  2013-06-26  1:41 [PATCH net-next] ipv6: rearm router solicitaion timer when setting new tokenized address Hannes Frederic Sowa
  2013-06-26 17:16 ` Daniel Borkmann
@ 2013-06-26 22:23 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2013-06-26 22:23 UTC (permalink / raw)
  To: hannes; +Cc: netdev, dborkman

From: Hannes Frederic Sowa <hannes@stressinduktion.org>
Date: Wed, 26 Jun 2013 03:41:49 +0200

> When a new tokenized address gets installed we send out just one
> router solicition. We should send out `rtr_solicits' in case one router
> advertisment got lost.
> 
> So, rearm the timer as we do in addrconf_dad_complete.
> 
> Cc: Daniel Borkmann <dborkman@redhat.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-26 22:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-26  1:41 [PATCH net-next] ipv6: rearm router solicitaion timer when setting new tokenized address Hannes Frederic Sowa
2013-06-26 17:16 ` Daniel Borkmann
2013-06-26 22:23 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.