dhcpcd-discuss

Re: getifaddrs problem: interface not detected

Roy Marples

Tue Mar 08 21:44:58 2011

On Tue, 2011-03-08 at 21:32 +0000, Ram Kumar Koppu wrote:
> Thanks Roy for the quick reply. Do you mean to say the new
> getifaddrs() work similar to ioctl(SIOCGIFHWADDR) if i install latest
> libc?

No, just that it will probably work.
If you have libc support for getifaddrs(3) and it's only reporting back
the lo interface when you have others, then it's a bug in the
getifaddrs(3) interface and not dhcpcd.

> I do not want to have busybox only for dhcp support. I do not want to
> touch any other programs in our system except dhcp and openssl.

Fair enough.

> And the other thing how to use compat/getifaddrs-linux.c patch? 

Uh, it needs to be written first :)
I don't intend writing it either as all my systems (included embedded
ones) work fine with the libc variant. I think the only platform where
it's needed would be on Android as iirc it uses a NetBSD libc on a Linux
kernel and they didn't add getifaddrs support.

Thanks

Roy


References:
getifaddrs problem: interface not detectedRam Kumar Koppu
Re: getifaddrs problem: interface not detectedRoy Marples
Re: getifaddrs problem: interface not detectedRam Kumar Koppu
Archive administrator: postmaster@marples.name