[Vm-dev] unix nameToAddr() function appears to not work on Raspbian?

Eliot Miranda eliot.miranda at gmail.com
Thu Sep 17 15:33:04 UTC 2015


Hi Tim,

On Wed, Sep 16, 2015 at 4:40 PM, tim Rowledge <tim at rowledge.org> wrote:

>
> Somebody noticed that asking for the local address on a Pi vm returns
> 127.0.1.1 these days, whereas on my iMac it returns the actual machine IP.
> That’s a much more useful thing.
>

can you post the contents of /etc/hosts on your machine?


> The Smalltalk code is in NetNameResolver class>>localHostAddress, using
> prim SocketPlugin.c->primitiveResolverLocalAddress() etc. Running this
> under gdb shows me that we are finding the machine’s local name ok (‘Pi-2’
> in this case) but that sqResolverLocalAddress() is using nameToAddr() and
> being told “127.0.1.1” - well strictly speaking 0x7f000101 of course. I’ve
> tried `man nameToAddr` and googling nameToAddr and got.. nothing. I don’t
> even seem to find it listed in a header file out there.  Whah?
>
> Puzzled in Qualicum...
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- An 8086 in a StrongARM environment.
>

_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150917/3dbddf34/attachment.htm


More information about the Vm-dev mailing list