Linux 2.2.x doesn't seem to accept ioctl(SIOCGIFCONF) on an AF_UNIX socket. This is causing if_nametoindex to fail under these kernels, since AF_UNIX is __opensock's first preference. p.