Subject: Re: kern/35196: sockets should die if addresses vanish
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Alan Barrett <apb@cequrux.com>
List: netbsd-bugs
Date: 12/07/2006 12:15:05
The following reply was made to PR kern/35196; it has been noted by GNATS.

From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@NetBSD.org, netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: kern/35196: sockets should die if addresses vanish
Date: Thu, 7 Dec 2006 10:13:03 -0200

 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)