From owner-freebsd-net@FreeBSD.ORG Sat Jul 3 21:54:05 2004 Return-Path: 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 2E25116A4CE; Sat, 3 Jul 2004 21:54:05 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCBC643D2F; Sat, 3 Jul 2004 21:54:04 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i63LrYa6026245; Sat, 3 Jul 2004 17:53:34 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i63LrXTp026242; Sat, 3 Jul 2004 17:53:33 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 3 Jul 2004 17:53:33 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Andre Oppermann In-Reply-To: <40E66FB2.AE0FA833@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-gnats-submit@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: kern/38554: changing interface ipaddress doesn't seem to work X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 21:54:05 -0000 On Sat, 3 Jul 2004, Andre Oppermann wrote: > Bruce M Simpson wrote: > > > > Please review the attached patch (which is a reworking of Archie's > > patch for -CURRENT). When the underlying IP address is changed, > > wildcard-bound UDP sockets which are temporarily bound locally for > > UDP socket which are not bound to a particular IP address would do the > right thing already? I thought so. Temporarily connecting sockets/pcbs during a datagram send with an explicit address (i.e., sendto()) occurs in both the UDP code and UNIX domain socket code. Since this is expensive, and also increases the potential for races of various sorts, it would be nice to do this in a more efficient form where possible. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research