[98] in linux-net channel archive
bind() and more than one interface
daemon@ATHENA.MIT.EDU (Elias Levy)
Sat Feb 18 23:24:46 1995
Date: Sat, 18 Feb 1995 19:22:13 -0800 (PST)
From: Elias Levy <elias@power.net>
To: linux-kernel@vger.rutgers.edu
cc: linux-net@vger.rutgers.edu
Hello everyone. Seem to have some trouble here with bind().
I'am trying to set up a machine using a modified CERN httpd to answer
quesries as diferent machine. This has been discussed to death in
the big-linux maling list by many people including Alan. In any case,
I compiled the patched CERN demon which binds to the specific address
instead of INADDR_ANY, then I insmoded the dummy driver, ifconfig'ed it
with an IP address I had at hand, added a route to the routing table.
Everything was fine. Can ping the ip, and the name lookup works fine.
The firts httpd server loads fine. But the seconds one complains that
the address is already in use. An strace of the httpd's show them
binding correctly to *different* IP address. But bind() still fails.
This was with 1.1.91.
This probably has to do with the reports we have been seeing
by some people that claim that demons refuse to bind to their ports
claming that they are already in use.
elias@power.net (Elias Levy)
PowerNet, Inc.