[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] GCB "Unable to determine local IP address"



On Feb 14, 2008 9:57 AM, Gideon Juve <juve@xxxxxxx> wrote:
> I am wondering if there might be an issue with _myIP and _all_myIP on
> some platforms. If I compile GCB on the nodes and call those two
> functions from a test program linked with libGCBcomm.a, _all_myIP
> returns only 127.0.0.1, and that causes _myIP to fail. Specifically, I
> think that the part of _all_myIP where it loops through the interfaces
> might be setting the pointer incorrectly. If I change:
>
> ptr += sizeof(ifr->ifr_name) + len;
>
> To:
>
> ptr += sizeof(struct ifreq);
>
> Then _all_myIP returns the other interface(s) on the machines I am
> having problems with.

We were able to work around this problem by using the 32-bit binaries
instead of the 64-bit binaries.

Gideon