need for getifaddrs in uclibc

Natanael Copa natanael.copa at gmail.com
Wed Nov 7 18:55:04 UTC 2007


On Wed, 2007-11-07 at 19:39 +0100, Jason Curl wrote:
> Natanael Copa wrote:
> > Hi,
> >
> > Does anyone know a susv3/POSIX compliant way to list all ipv6
> > interfaces? I bet there are no. ioctl(SIOCGIFCONF) ignores ipv6
> > interfaces, I just tested.
> >   
> What does ifconfig do in BusyBox? Does that do what you want?

talks directly to netlink, with is even more non portable.

> When I implemented something across multiple platforms only for IPv4 
> that was a real nightmare (Solaris, Linux, uClibc, FreeBSD, Cygwin).
> > I suggest implementing a getifaddrs in uclibc, even if its not
> > susv3/POSIX.

I checked around. if_nameindex will list all your network interfaces,
which gets me half the way. but I still havent found out how to get a
list of ipv6 addresses from a given device name.

-nc




More information about the uClibc mailing list