kern/38554: changing interface ipaddress doesn't seem to work

Bruce M Simpson bms at spc.org
Sun Jul 4 08:30:42 PDT 2004


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


More information about the freebsd-net mailing list