> I believe this line is incorrect:
>
>>            opal_list_append(&opal_if_list, (opal_list_item_t*)
>> intf_ptr);
>
> It needs to be
>
> opal_list_append(&opal_if_list, &intf_ptr->super);

Didn't seem to change things.

Any thoughts on the:

            /*
             * hardcoded netmask, adrian says that's ok
             */
            intf.if_mask = 64;
            intf.if_flags = cur_ifaddrs->ifa_flags;

which I simply copied over from the IPv6 block?

I note that the "non-NetBSD" inet stuff does something a bit more
convoluted, vis:

        /* generate CIDR and assign to netmask */
        intf.if_mask = prefix(((struct sockaddr_in*)
&ifr->ifr_addr)->sin_addr.s_addr);


-- 
Kevin M. Buckley                                  Room:  CO327
School of Engineering and                         Phone: +64 4 463 5971
 Computer Science
Victoria University of Wellington
New Zealand

Reply via email to