public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* BUG - routes not correctly deleted when address is deleted
@ 2010-12-01  0:55 Stephen Hemminger
  2010-12-01 10:08 ` Julian Anastasov
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2010-12-01  0:55 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

If multiple addresses are assigned to an interface, and
a route is created that uses that address.  The route is not
deleted when the address is deleted.  Linux does cleanup properly
when the last address is deleted; it seems the FIB lacks the callback
to cleanup routes referencing an address.

Simple example:

# modprobe dummy
# ip li set dev dummy0 up
# ip addr add 192.168.74.160/24 dev dummy0
# ip addr add 192.168.18.11/24 dev dummy0
# ip ro add 74.11.49.0/24 via 192.168.74.160

# ip addr del 192.168.74.160/24 dev dummy0
# ip ro show dev dummy0
74.11.49.0/24 via 192.168.74.160 
192.168.18.0/24  proto kernel  scope link  src 192.168.18.11 

Before I go off and either brute force it (add another call back
into fib_hash and fib_trie), is there a better way?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-01 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01  0:55 BUG - routes not correctly deleted when address is deleted Stephen Hemminger
2010-12-01 10:08 ` Julian Anastasov
2010-12-01 20:34   ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox