LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Andreas Wilde (Andreas.Wilde_at_[hidden])
Date: 2003-09-19 01:45:31


Hello all,
thank you for your tips. My /etc/hosts and nsswitch.conf files exactly look
like you suggest. I tracked the problem down to some other point: The local
IP-numbers are obtained with a call to

ioctl(sock, SIOCGIFCONF, &config)

inside getifaddr(), which is called by find_orig(), which is called by recon,
lamboot and wipe. The point is, that getifaddr() returns only *ONE*
IP-Number, which happens to be 127.0.0.1. To my understanding it should
deliver at least two: Loopback and the address of the nic, 192.168.1.1. It
fails to do so. If it came up with both of these addresses, find_orig() would
choose the right one and return it to recon etc., which would be happy then.

There are two possible explanations for the problem: 1. getifaddr() has some
weird bug, which makes it work under most, but not all circumstances, or 2. I
accidentally found a way to misconfigure my box so that ioctl(...,
SIOCGIFCONF,...) returns only one IP-number.

All suggestions revolve around /etc/hosts, so most of the problems occured so
far should have been solved like that. Probably 2. is the right track. But
that would be a question on the kernel mailing list, I guess.

Thanks again, and if anybody has an idea to cope with SIOCGIFCONF, I'd
appreciate that.

cheers,
andreas

-- 
________________________________________________
Andreas Wilde
Fraunhofer-Institut fuer Integrierte Schaltungen
Aussenstelle Entwurfsautomatisierung
Zeunerstr. 38
D-01069 Dresden
Tel.: 49 (0) 351 4640 852
Fax : 49 (0) 351 4640 703
E-Mail: Andreas.Wilde_at_[hidden]
________________________________________________