>I have configured my system for IPv6, and the system is getting
>autoconfigured properly. (ifconfig shows both IPv4 and v6 addresses).
>I want to read the information about interfaces being configured with IPv6
>address.
>I opened a socket for ip domain and reading the information into "ifconf"
>through "ioctl" with SIOCGIFCONF flag. And then reading all the addresses
>thru ifreq.
>But iam not able to find any interaces with address famly AF_INET6.
getifaddrs(3) is the easiest way. SIOCGIFCONF is very hard to use
these days, due to buffer size management, as well as variable-length
packed struct .
itojun
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message