This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Linux: Implement opensock using Netlink sockets
* Adhemerval Zanella:
>> The real question is whether it is important to avoid module loading.
>> If we could just try
>>
>> AF_NETLINK
>> AF_UNIX
>> AF_INET
>> AF_INET6
>>
>> in this order, irrespective of the module load status, the code would
>> already be much, much simpler.
>>
>
> I think it should cover the expected kernel support (it would be unusual to
> use the getifaddr functions with a kernel without tcpip support).
>
> The issues is we will need to ensure the returned socket works with
> SIOCGIFNAME (maybe by issuing a ioctl to make it sure).
Hmm, yes. For AF_NETLINK, such a check would definitely be needed.
I'll have to check if this leads to the desired simplification.