ipv6: resend MLD report if a link-local address completes DAD
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Wed, 26 Jun 2013 22:07:01 +0000 (00:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2013 04:19:17 +0000 (21:19 -0700)
commitb173ee488dcc545e77ed482158a2f0d06d7a5860
tree1268f9ebef676bc7f9dddb69f923e067cbe1db26
parent1ec047eb4751e331bc61cff0e98f0db67db8b8dc
ipv6: resend MLD report if a link-local address completes DAD

RFC3590/RFC3810 specifies we should resend MLD reports as soon as a
valid link-local address is available.

We now use the valid_ll_addr_cnt to check if it is necessary to resend
a new report.

Changes since Flavio Leitner's version:
a) adapt for valid_ll_addr_cnt
b) resend first reports directly in the path and just arm the timer for
   mc_qrv-1 resends.

Reported-by: Flavio Leitner <fleitner@redhat.com>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: David Stevens <dlstevens@us.ibm.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
include/net/if_inet6.h
net/ipv6/addrconf.c
net/ipv6/mcast.c