1 Dec 2010 01:55
BUG - routes not correctly deleted when address is deleted
Stephen Hemminger <shemminger <at> vyatta.com>
2010-12-01 00:55:39 GMT
2010-12-01 00:55:39 GMT
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? -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo <at> vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
RSS Feed