Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2006 09:31:29 +0300
From:      Remi Denis-Courmont <rdenis@simphalempin.com>
To:        freebsd-net@freebsd.org
Subject:   [if_tun] Could tunclose remove all kind of routing infos?
Message-ID:  <1152685889.44b49741482eb@ssl0.ovh.net>

next in thread | raw e-mail | index | archive | help
   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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1152685889.44b49741482eb>