Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 16:30:39 +0100
From:      Bruce M Simpson <bms@spc.org>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        iedowse@FreeBSD.org
Subject:   Re: kern/38554: changing interface ipaddress doesn't seem to work
Message-ID:  <20040704153039.GC11170@empiric.dek.spc.org>
In-Reply-To: <Pine.NEB.3.96L.1040703174628.24282E-100000@fledge.watson.org>
References:  <40E66FB2.AE0FA833@freebsd.org> <Pine.NEB.3.96L.1040703174628.24282E-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040704153039.GC11170>