From owner-freebsd-net Thu Nov 21 13:33:28 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC12037B401 for ; Thu, 21 Nov 2002 13:33:27 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D7843EAC for ; Thu, 21 Nov 2002 13:33:27 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Thu, 21 Nov 2002 16:33:22 -0500 Message-ID: From: Don Bowman To: 'Wes Peters' , Archie Cobbs Cc: freebsd-net@freebsd.org Subject: RE: Sockets and changing IP addresses Date: Thu, 21 Nov 2002 16:33:22 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > 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