[if_tun] Could tunclose remove all kind of routing infos?
Remi Denis-Courmont
rdenis at simphalempin.com
Wed Jul 12 06:31:44 UTC 2006
Hi,
Is there any reason why, when bringing down a tunnel device, tunclose() from
src/sys/net/if_tun.c only removes routing entries of the AF_INET family? It
seems to be an omission:
There is pretty much the same code in tapclose() from src/sys/net/if_tap.c;
but that one removes all entries, regardless of the address family.
I have problems because of this, as I am using if_tun with IPv6 at the moment,
and the kernel does not cleanup routes when the tunneling program dies (PR
kern/100080). Would there be any problem in removing the "if
(ifa->ifa_addr->sa_family == AF_INET)" line in the TAILQ_FOREACH loop?
Regards,
--
Remi Denis-Courmont
http://www.simphalempin.com/home/
More information about the freebsd-net
mailing list