diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2014-01-16 23:13:04 +0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2017-03-03 13:31:19 +0300 |
commit | 6a4840575c9c7c43ee10ba105ccdbd77f9501a6e (patch) | |
tree | 189896119d9ede1f218ada434af933a019369ca3 /include/net | |
parent | d6ec2447c0a8582b947becf448edb7cb70ca7031 (diff) | |
download | linux-6a4840575c9c7c43ee10ba105ccdbd77f9501a6e.tar.xz |
ipv6: simplify detection of first operational link-local address on interface
commit 11ffff752c6a5adc86f7dd397b2f75af8f917c51 upstream.
In commit 1ec047eb4751e3 ("ipv6: introduce per-interface counter for
dad-completed ipv6 addresses") I build the detection of the first
operational link-local address much to complex. Additionally this code
now has a race condition.
Replace it with a much simpler variant, which just scans the address
list when duplicate address detection completes, to check if this is
the first valid link local address and send RS and MLD reports then.
Fixes: 1ec047eb4751e3 ("ipv6: introduce per-interface counter for dad-completed ipv6 addresses")
Reported-by: Jiri Pirko <jiri@resnulli.us>
Cc: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/if_inet6.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h index 02ef7727bb55..587e9dd3e3b4 100644 --- a/include/net/if_inet6.h +++ b/include/net/if_inet6.h @@ -166,7 +166,6 @@ struct inet6_dev { struct net_device *dev; struct list_head addr_list; - int valid_ll_addr_cnt; struct ifmcaddr6 *mc_list; struct ifmcaddr6 *mc_tomb; |