Re: Miulti-homed hosts

Olaf Titz (olaf@bigred.inka.de)
06 Feb 1996 10:35:15 +0000


Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > Problem: The kernel doesn't like two bind() calls in a row. Why not??? BSD
> > handles that fine, as far as I know, as long as there's no connection on

> NFSD binds to INADDR_ANY 2049
> You bind to eth0 2049
> You copy all the frames you receive to disk and send to locahost 2049

That's a different case. You have _two_ sockets here; in order to
avoid this problem, bind() has to check if there is another socket
bound to this port on either the same interface or IADDR_ANY (or
perhaps on any address? Does this break anything (gated?) ?)

What Matthias wanted is to re-bind the _same_ socket. I see no
security problems with that - just one process stop listening on one
address and start listening on another.

olaf

-- 
___        Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de       ____
__ o           <URL:http://www.inka.de/~bigred/>     <IRC:praetorius>
__/<_              >> Just as long as the wheels keep on turning round
_)>(_)______________ I will live for the groove 'til the sun goes down << ____