Subject: Re: kern/35196: sockets should die if addresses vanish
To: None <gnats-bugs@NetBSD.org, netbsd-bugs@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: netbsd-bugs
Date: 12/07/2006 10:13:03
On Thu, 07 Dec 2006, SODA Noriyuki wrote:
> It is not so silly, acutally.
> Think about unstable PPP link which nearly always assigns same IP
> address for each host.
> With current behavior, we can still use same TCP connect, after the
> links goes down and then the link is reconnected.

I also find the existing behaviour useful with VPN links, which go down
and come back up with the same IP address when I move my laptop from one
location to another.

It might be nice if "ifconfig ${interface} [down|destroy]" or "ifconfig
${interface} ${family} ${address} delete" had an extra flag to mean
"also invalidate any sockets bound to this address, or to any address on
this interface".

--apb (Alan Barrett)