]> git.baikalelectronics.ru Git - kernel.git/commit
IPv6: addrconf notify when address is unavailable
authorstephen hemminger <shemminger@vyatta.com>
Tue, 2 Mar 2010 13:32:46 +0000 (13:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2010 08:39:33 +0000 (00:39 -0800)
commit0f7d011fd8cf4e5fb8128de149a6065bda856c3a
treef7e5aec42f50c6e4751751cf422c7bf16bff69ce
parentae0472b4b029419b2dd9d1fc5dc69c29d468f199
IPv6: addrconf notify when address is unavailable

My recent change in net-next to retain permanent addresses caused regression.
Device refcount would not go to zero when device was unregistered because
left over anycast reference would hold ipv6 dev reference which would hold
device references...

The correct procedure is to call notify chain when address is no longer
available for use.  When interface comes back DAD timer will notify
back that address is available.

Also, link local addresses should be purged when interface is brought
down. The address might be changed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c