From owner-freebsd-net@FreeBSD.ORG Sun Jul 4 15:30:42 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 05A5716A4CE; Sun, 4 Jul 2004 15:30:42 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id C58EE43D3F; Sun, 4 Jul 2004 15:30:41 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id DC31B65487; Sun, 4 Jul 2004 16:30:40 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 86416-02-2; Sun, 4 Jul 2004 16:30:40 +0100 (BST) Received: from empiric.dek.spc.org (82-147-17-88.dsl.uk.rapidplay.com [82.147.17.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 5ABA665414; Sun, 4 Jul 2004 16:30:40 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id B2B03615E; Sun, 4 Jul 2004 16:30:39 +0100 (BST) Date: Sun, 4 Jul 2004 16:30:39 +0100 From: Bruce M Simpson To: Robert Watson Message-ID: <20040704153039.GC11170@empiric.dek.spc.org> Mail-Followup-To: Robert Watson , Andre Oppermann , freebsd-net@freebsd.org, iedowse@FreeBSD.org References: <40E66FB2.AE0FA833@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-net@freebsd.org cc: Andre Oppermann cc: iedowse@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: Sun, 04 Jul 2004 15:30:42 -0000 On Sat, Jul 03, 2004 at 05:53:33PM -0400, Robert Watson wrote: > 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. Actually, iedowse@ pointed out that we now use in_pcb(bind|connect)_setup() as opposed to doing a full in_pcb(connect|bind)() in udp_output(), so this optimization has been done in -CURRENT (but not in -STABLE). BMS