Re: SIOCGIFADDR broken on 9.0-RC1?

2011-11-15 Thread GR
>From "Kristof Provost" : [..] > The 'ia' pointer is later used to return the IP address. > > In other words: it returns the first address on the interface > of type IF_INET (which isn't assigned to a jail). > > I think the order of the addresses is not fixed, or rather it depends > on > the orde

SIOCGIFADDR broken on 9.0-RC1?

2011-11-15 Thread GR
Hello list, more insights since my last post. Here is a small code to trigger the bug (end of email). When you run it on 9.0-RC1, it gets an alias address instead of the main inet address: % ./get-ip re0 inet: 192.168.2.10 # Main address being 192.168.1.148 On 8.2-RELEASE, all goes w

Something broken with libdnet? Or FreeBSD 9.0-RC1?

2011-11-14 Thread GR
Hello list, I was updating one of my Perl module (Net::Libdnet), and came accross a bug under FreeBSD 9.0-RC1 and libdnet. My setup is one interface configured with multiple aliases. See details at the end of the message. One host works ok (FreeBSD 8.2-RELEASE), and another fails to find correct