IPv6 incorrect setup (or resolver bug? or http client bug?)

Fredrik Thulin <>
Tue Nov 2 15:50:11 CET 2004


On Tuesday 02 November 2004 14.10, Ingela Anderton wrote:
...
> Well on any machine that acctualy support ipv6:
>
> $ erl
> Erlang (BEAM) emulator version 5.4.1 [hipe] [threads:0] [kernel-poll]
>
> Eshell V5.4.1  (abort with ^G)
> 1>  inet:getaddr("localhost", inet6).
> {ok,{0,0,0,0,0,0,0,1}}
> 2>
>
> On a machine that does not
>
> $ erl
> Erlang (BEAM) emulator version 5.4.1 [hipe] [threads:0] [kernel-poll]
>
> Eshell V5.4.1  (abort with ^G)
> 1>   inet:getaddr("localhost", inet6).
> {ok,{0,0,0,0,0,65535,32512,1}}
> 2>
>
> I guess that would be the ipv6 tunneled version of the ipv4 address
> 127.0.0.1.

That is an IPv4-in-IPv6 address. 

32512 = 0x7f00. 0x7f = 127 decimal. the last two words (32512, 1) is 
actually the same as 127.0.0.1.

/Fredrik



More information about the erlang-questions mailing list