Subject: Re: kern/35196: sockets should die if addresses vanish
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-bugs
Date: 12/08/2006 14:50:04
The following reply was made to PR kern/35196; it has been noted by GNATS.
From: "Perry E. Metzger" <perry@piermont.com>
To: Martin Husemann <martin@duskware.de>
Cc: matthew green <mrg@eterna.com.au>, gnats-bugs@NetBSD.org,
kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org, Manuel Bouyer <bouyer@antioche.eu.org>
Subject: Re: kern/35196: sockets should die if addresses vanish
Date: Fri, 08 Dec 2006 09:47:33 -0500
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