Erlang/OTP R14B01 has been released

Zvi <>
Tue Dec 14 13:39:29 CET 2010


Hi Raimo,
I applied the patch, now it works for both online and offline.
thanks,
Zvi

[~]$ erl
Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.8.2  (abort with ^G)
1> inet:getifaddrs().
{ok,[{"lo",
      [{flags,[up,loopback,running]},
       {hwaddr,[0,0,0,0,0,0]},
       {addr,{127,0,0,1}},
       {netmask,{255,0,0,0}},
       {addr,{0,0,0,0,0,0,0,1}},
       {netmask,{65535,65535,65535,65535,65535,65535,65535,
                 65535}}]},
     {"eth1",
      [{flags,[up,broadcast,running,multicast]},
       {hwaddr,[0,36,XX,XX,XX,XX]}]},
     {"wlan1",
      [{flags,[broadcast,multicast]},
       {hwaddr,[0,33,XX,XX,XX,XX]}]},
     {"ppp0",
      [{flags,[up,pointtopoint,running,multicast]},
       {addr,{XXX,XXX,XXX,XXX}},
       {netmask,{255,255,255,255}},
       {dstaddr,{10,64,64,64}}]}]}


[~]$ erl
Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.8.2  (abort with ^G)
1> inet:getifaddrs().
{ok,[{"lo",
      [{flags,[up,loopback,running]},
       {hwaddr,[0,0,0,0,0,0]},
       {addr,{127,0,0,1}},
       {netmask,{255,0,0,0}},
       {addr,{0,0,0,0,0,0,0,1}},
       {netmask,{65535,65535,65535,65535,65535,65535,65535,
                 65535}}]},
     {"eth1",
      [{flags,[up,broadcast,running,multicast]},
       {hwaddr,[0,36,XX,XX,XX,XX]}]},
     {"wlan1",
      [{flags,[broadcast,multicast]},
       {hwaddr,[0,33,XX,XX,XX,XX]}]}]}



On Dec 14, 12:38 pm, Raimo Niskanen <raimo+erlang-
> wrote:
> On Tue, Dec 14, 2010 at 10:26:45AM +0100, Boris Mühmer wrote:
> > Am Dienstag, den 14.12.2010, 09:44 +0100 schrieb Raimo Niskanen:
> > > And I missed the fact that the address could be NULL entirely...
> > > Silly me. The same goes for many other fields too.
>
> > I wasn't sure if that field (ifa_p->ifa_addr) could be NULL, but the
> > output of "ip addr list" made me suspicious! For "tun0" the result was:
>
> > 5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
> > pfifo_fast state UNKNOWN qlen 100
> >     link/none
> >     inet 192.168.XXX.XXX peer 192.168.XXX.XXX/32 scope global tun0
>
> > Because of "link/none" I started to dig a bit deeper.
>
> > > Can you test the attached patch to see if it is this problem
> > > only or more. It is really just a 6-line change, but whitespace
> > > differences makes it ugly.
>
> > The patch works on my system.
>
> Great! Now I would like to get a positive confirmation
> from Zvi that it works for him too...
>
>
>
> >   - boris
>
> --
>
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> Seehttp://www.erlang.org/faq.html
> To unsubscribe; mailto:


More information about the erlang-questions mailing list