Subject: Re: kern/35196: sockets should die if addresses vanish
To: Martin Husemann <martin@duskware.de>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-bugs
Date: 12/08/2006 09:47:33
Martin Husemann <martin@duskware.de> writes:
> On Fri, Dec 08, 2006 at 03:22:47PM +1100, matthew green wrote:
>> i think this would best be solved by adding a ifconfig command to
>> destroy sockets attached to an interface. i do not recommend this
>> name, but eg "ifconfig foo0 killconn".
>
> I agree with the idea, but am not sure if "ifconfig" is the right place
> to add this functionality.
>
> Could it be added to route(1) instead? It could probably be generalized then,
> like "kill all open connections using this route", and optionaly specify
> a route via an interface, meaning "all routes pointing to this interface".
The one problem is, sometimes the interface doesn't exist any more at
the point where you want to kill the things. (This is often the case
for me, when popping out my EVDO card.)
> Anyway, a PR is not the right forum to discuss new ideas, let's please move
> this to tech-kern.
I'll happily do so if someone will volunteer to summarize the
discussion on tech-kern to get the ball rolling...
Perry