Subject: Kill socket for certain routes
To: None <tech-net@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-net
Date: 12/08/2006 11:18:35
Hi folks,

PR kern/35196 discusses an issue with connected TCP sockets where the local
address becomes "permantently" invalid - i.e. a ppp interface that
disconnects and on reconnect gets a new address.

Should we

 (a) add a timeout to drop such connections after a reasonable time if
     the local address they are bound to does not become valid again?
 (b) add a manual way to kill such sockets, for example by an extension
     of the route(8) command?

Is there some easy way to stop the kernel automatically from sending packets
with a "currently" not valid local address? Either by just dropping the packets
or leaving them queueed?

Martin