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

Robert Watson rwatson at freebsd.org
Sat Jul 3 14:54:05 PDT 2004


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 at fledge.watson.org      Principal Research Scientist, McAfee Research



More information about the freebsd-net mailing list