Date: Tue, 17 Apr 2001 23:14:50 +0900 From: itojun@iijlab.net To: skodati@in.ibm.com Cc: freebsd-net@FreeBSD.ORG Subject: Re: IPv6 : interface configuration Message-ID: <28190.987516890@itojun.org> In-Reply-To: skodati's message of Tue, 17 Apr 2001 16:05:04 %2B0530. <CA256A31.00418DF2.00@d73mta05.au.ibm.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>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 majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28190.987516890>