Subject: Re: Problems with outgoing routing of UDP packets
To: None <tech-net@netbsd.org>
From: Christoph Badura <bad@bsd.de>
List: tech-net
Date: 04/23/2004 16:35:21
gdt@ir.bbn.com (Greg Troxel) wrote:
>I think the more important point is that if a route is removed from
>the routing table, it is a cache consistency violation for it to still
>be held by a socket or anywhere else.

I'd s/held/used/, but otherwise I agree.

>I'm not certain, but I think the following might work to maintain
>cache consistency:

>  When removing a route, clear any pointer to that route in any
>  socket or elsewhere (e.g. the global route cache).

It seems simpler to me to just clear the RTF_UP flag an have the caching
places check that.  (ISTR they already do that.)

However there is the additional bug that the cached routes may need to be
updated when a more specific route is created.

--chris