Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 10:23:13 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        Yar Tikhiy <yar@comp.chem.msu.su>
Cc:        drl@MyBSD.org.my, brooks@freebsd.org, freebsd-stable@freebsd.org, thompsa@freebsd.org
Subject:   Re: Default route (IPv4) demolished by destroying clone (gif/gre) interface
Message-ID:  <FED9705F-B445-4495-B90F-A656AAA966EE@lassitu.de>
In-Reply-To: <20060816081130.GB81271@comp.chem.msu.su>
References:  <20060815040736.2f85f090.drl@MyBSD.org.my> <9405D801-3435-419A-9541-E1A9B2CF26D2@lassitu.de> <20060816081130.GB81271@comp.chem.msu.su>

next in thread | previous in thread | raw e-mail | index | archive | help

Am 16.08.2006 um 10:11 schrieb Yar Tikhiy:

> On Tue, Aug 15, 2006 at 07:26:08PM +0200, Stefan Bethke wrote:
>> Am 14.08.2006 um 22:07 schrieb Darryl Yeoh:
>>
>>> While destroying gif interface, I notice it also removes IPv4
>>> default route. Has anyone else
>>> encountered this ?
>>
>> No problem on a FreeBSD 6.1-STABLE #8: Fri Jun 16 17:15:03 CEST 2006.
>                                              ^^^^^^
>>
>> You don't happen to have any devfs rules that would cause this?
>
> As a matter of fact, the issue appeared in 6-STABLE on Jul 24 and
> is still there.  Now devd(8) will invoke "/etc/pccard_ether stop"
> when any network interface is destroyed.  In turn, pccard_ether
> will flush all -inet routes if the rc.conf(5) variable  
> removable_route_flush
> is set to YES, which is its default setting.  Previously, this
> scenario would take place only when an Ethernet interface was  
> destroyed.
> The question is:  Do all the routes really need to be flushed upon
> the destruction of an interface?

Ouch. Don't ppp(8), OpenVPN etc. destroy the tun interface they're  
using when they exit?  Flushing all routes then would be rather  
harmful.  I'm glad I haven't updated to a newer -stable yet then :-)


Stefan

-- 
Stefan Bethke <stb@lassitu.de>   Fon +49 170 346 0140





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FED9705F-B445-4495-B90F-A656AAA966EE>