Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Jul 2004 10:34:58 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        Bruce M Simpson <bms@spc.org>
Cc:        freebsd-gnats-submit@freebsd.org
Subject:   Re: kern/38554: changing interface ipaddress doesn't seem to work
Message-ID:  <40E66FB2.AE0FA833@freebsd.org>
References:  <20040703080900.GL97102@empiric.dek.spc.org>

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

> a sendto() (by userland apps such as ntp, syslogd etc) will begin
> using the new IP address, whilst apps using TCP (ssh, Quagga bgpd) will
> error out with EADDRINUSE.

This error is misleading.  The address is gone, not in use.  Isn't there
a better fit?

> I would appreciate any feedback on our adopting this behaviour (which
> strikes me as similar to that of Solaris and a few other OSes).

I have only quickly glanced over it, but it sounds the right thing to
do.

-- 
Andre



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