Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 16:33:22 -0500
From:      Don Bowman <don@sandvine.com>
To:        'Wes Peters' <wes@softweyr.com>, Archie Cobbs <archie@dellroad.org>
Cc:        freebsd-net@freebsd.org
Subject:   RE: Sockets and changing IP addresses
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C8533701022FEB@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
> From: Wes Peters [mailto:wes@softweyr.com]
> Archie Cobbs wrote:
> > 
> > I'm curious what -net's opinion is on PR kern/38544:
> > 
> >     http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/38554
> > 
> > In summary: if you have a connected socket whose local IP address
> > is X, and then change the interface IP address from X to Y, then
> > packets written out by the socket will continue to be transmitted
> > with source IP address X.
> > 
> > Do people agree that this is a bug and should be fixed?
> 
> Yes.  The other end can't possibly reply to address X, so the 
> connection
> is broken at this point.
> 

I think the current behaviour is correct. Since the IP->MAC lookup
will remain cached, the communication will continue to work to the old
IP. Changing the IP on the connected socket will make the connection
drop. The best case is the the way it works.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C8533701022FEB>