From owner-freebsd-net Thu Sep 27 14:15: 8 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id CDDCD37B410 for ; Thu, 27 Sep 2001 14:15:04 -0700 (PDT) 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 OAA20260; Thu, 27 Sep 2001 14:01:41 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.3/8.11.3) id f8RL1ep95144; Thu, 27 Sep 2001 14:01:40 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200109272101.f8RL1ep95144@arch20m.dellroad.org> Subject: Re: simple udp question In-Reply-To: <20010927120750.C26671@yahoo-inc.com> "from jayanth at Sep 27, 2001 12:07:50 pm" To: jayanth Date: Thu, 27 Sep 2001 14:01:40 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL82 (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 jayanth writes: > one of the developers here noticed that if a process does > the following three steps: > > binds a udp socket to a specific IP address > connects the udp socket > calls connect with a NULL parameter, to disconnect the socket. > > The socket now loses its originally bound IP address because > udp_disconnect forces the local address of the socket to be INADDR_ANY. > > Can we change this behaviour to retain the originally bound IP address ? Sounds logical to me.. It might be worth doing some research to figure out if there was some reason for forcing the address to INADDR_ANY in the first place, i.e., if this was done to fix some other bug somewhere (which we'd be resurrecting). -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