ipv6: remove old token ipv6 address as soon as possible
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Mon, 24 Jun 2013 20:03:28 +0000 (22:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:28:24 +0000 (16:28 -0700)
commit2b9651d72d3fc1a9053ae1a323f8407e1f63b436
tree79bcd3ca876fac70e072cb370036349399159f15
parent876fd05ddbae03166e7037fca957b55bb3be6594
ipv6: remove old token ipv6 address as soon as possible

If the tokenized ip address is re-set on an interface we depend on the
arrival of a new router advertisment to call addrconf_verify to clean
up the old address (which valid_lft is now set to 0). Old addresses can
linger around for a longer time if e.g. the source of router advertisments
vanishes.

So, call addrconf_verify immediately after setting the new tokenized
address to get rid of the old tokenized addresses.

Cc: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c