From owner-freebsd-net Tue Nov 12 15:30: 4 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 F15F037B407 for ; Tue, 12 Nov 2002 15:30:02 -0800 (PST) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6776143E77 for ; Tue, 12 Nov 2002 15:30:02 -0800 (PST) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id PAA11706 for ; Tue, 12 Nov 2002 15:16:50 -0800 (PST) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id gACNGqOS017441 for ; Tue, 12 Nov 2002 15:16:52 -0800 (PST) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id gACNGqWC017440 for freebsd-net@freebsd.org; Tue, 12 Nov 2002 15:16:52 -0800 (PST) From: Archie Cobbs Message-Id: <200211122316.gACNGqWC017440@arch20m.dellroad.org> Subject: Sockets and changing IP addresses To: freebsd-net@freebsd.org Date: Tue, 12 Nov 2002 15:16:52 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 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? Do people agree that my suggestion of returning ENETDOWN is reasonable? If so, what would be the most efficient way to implement this? Obviously we'd like to avoid searching the entire IP address list for every outgoing packet. Would it work to only do that search if the socket's cached route is invalid? Etc. Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message