NetNameResolver localHostAddress returns 0.0.0.0 in FreeBSD

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NetNameResolver localHostAddress returns 0.0.0.0 in FreeBSD

Gary Dunn-2
 
Mantis 7624. Originally reported as an error pulling out a badge.
Investigation reveals that the primitive is failing to return the
local IP address.

<primitive: 'primitiveResolverLocalAddress' module: 'SocketPlugin'> in
class NetNameResolver.

Works correctly in Win7 and Mac OS X.

FreeBSD has a reputation of dealing with network configuration
differently than Linux.

--
Gary Dunn
Honolulu
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] NetNameResolver localHostAddress returns 0.0.0.0 in FreeBSD

Levente Uzonyi-2
 
On Tue, 17 May 2011, Gary Dunn wrote:

> Mantis 7624. Originally reported as an error pulling out a badge.
> Investigation reveals that the primitive is failing to return the
> local IP address.
>
> <primitive: 'primitiveResolverLocalAddress' module: 'SocketPlugin'> in
> class NetNameResolver.
>
> Works correctly in Win7 and Mac OS X.
>
> FreeBSD has a reputation of dealing with network configuration
> differently than Linux.

The primitive can't work correctly, because it only returns one local
address, but a host can have any number of such addresses. If you bring up
a new network interface, then the primitive will return the address of
the new interface (on windows), so using this primitive from different
parts of the same program can result in unexpected behavior.


Levente

>
> --
> Gary Dunn
> Honolulu
>
>