]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: remove the routes on secondary promotion
authorJulian Anastasov <ja@ssi.bg>
Sat, 19 Mar 2011 12:13:52 +0000 (12:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2011 08:06:33 +0000 (01:06 -0700)
commit417146b0977ead7aa2493f13a7222f12560fe1ad
tree4e665cc5ac43116212b44af1f409ef8a140069ef
parent18a63677ded1482440c579ac6bce4a97e0fbd93a
ipv4: remove the routes on secondary promotion

The secondary address promotion relies on fib_sync_down_addr
to remove all routes created for the secondary addresses when
the old primary address is deleted. It does not happen for cases
when the primary address is also in another subnet. Fix that
by deleting local and broadcast routes for all secondaries while
they are on device list and by faking that all addresses from
this subnet are to be deleted. It relies on fib_del_ifaddr being
able to ignore the IPs from the concerned subnet while checking
for duplication.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c