[squeak-dev] NetNameResolver localHostAddress bug in trunk

David T. Lewis lewis at mail.msen.com
Mon Dec 17 11:53:10 UTC 2012


On Mon, Dec 17, 2012 at 10:50:24AM +0100, St?phane Rollandin wrote:
> Tried again with the brand new Squeak4.2-10779-alpha.image, plus the 
> brand new Cog VM, same problem.
> 
> Anyone ?
> 
> Stef
> 

On my system (Linux). I get this:

NetNameResolver useOldNetwork ==> true
NetNameResolver localHostAddress ==> #[127 0 0 2]
NetNameResolver addressForName: NetNameResolver localHostName ==> #[127 0 0 2]
NetNameResolver primLocalAddress #[127 0 0 2]

Or if I enable IPV6, I get this:

NetNameResolver useOldNetwork ==> false
NetNameResolver localHostAddress ==> 127.0.0.2(linux-jh8m),0(0)
NetNameResolver addressForName: NetNameResolver localHostName ==> 127.0.0.2(linux-jh8m),0(0)
NetNameResolver primLocalAddress ==> #[127 0 0 2]

If you have IPV6 enabled, #addressForName: will answer an instance of
SocketAddress rather than a ByteArray. The traditional IPV4 network primitives
use a four-element ByteArray to represent a network address, but extending
this to IPV6 requires something else.

There are some issues with IPV6 support, particularly on Windows, so
the Squeak 4.4 release image is being shipped with the IPV6 preference
disabled.
 
Dave

> 
> >hello,
> >
> >something seems wrong in the trunk image concerning the new Network
> >stuff, specifically in method NetNameResolver class>>#localHostAddress
> >
> >I have
> >
> >NetNameResolver addressForName: NetNameResolver localHostName
> >=> fe80::9d90:a71d:591f:29d3%21(Stef-PC),0(0)
> >
> >after sending #asByteArray it becomes #[80]
> >
> >while my proper and working local address is
> >
> >NetNameResolver primLocalAddress
> >==> #[92 153 174 111]
> >
> >
> >Stef
> >
> >
> >
> 


More information about the Squeak-dev mailing list