Interface routes left over undeletable with RADIX_MPATH
Nikolay Denev
ndenev at gmail.com
Thu Jan 2 10:29:49 UTC 2014
Hi,
While digging around for the "rtfree 2" panics with RADIX_MPATH I've
reported in misc/185092, (yeah, should've been kern, or net, not misc)
I've noticed that the interface routes that are installed on the
loopback interface are left over when the address is removed and
RADIX_MPATH is used. Moreover, since these now I believe are flagged
as RTF_PINNED it's unable to delete them.
Here is what happens with 10.0-RC3 GENERIC:
# ifconfig em0 10.10.10.10/24
# netstat -rnfinet | grep 10.10.10.10
# 10.10.10.10 link#1 UHS 0 0 lo0
# ifconfig em0 delete
# netstat -rnfinet | grep 10.10.10.10
#
However, this happens with RADIX_MPATH kernel:
# ifconfig em0 10.10.10.10/24
# netstat -rnfinet | grep 10.10.10.10
# 10.10.10.10 link#1 UHS 0 0 lo0
# ifconfig em0 delete
# netstat -rnfinet | grep 10.10.10.10
# 10.10.10.10 link#1 UHS 0 0 lo0
# route delete 10.10.10.10 -iface lo0
# route: writing to routing socket: No such process
# delete host 10.10.10.10: gateway lo0 fib0: not in table
The address is successfully removed from the em0 interface, but the
route over the loopback interface stays, even survives "route flush"
--Nikolay
More information about the freebsd-net
mailing list