>>>>> On Wed, 19 Jan 2000 10:43:07 +0000, 
>>>>> Philip Blundell <[EMAIL PROTECTED]> said:

> In message <[EMAIL PROTECTED]>, [email protected] writes:
>> 
>>> http://www.misiek.eu.org/ipv6/postfix-19991231-pl02-ipv6-18012000.patch.gz
>>> few bugs fixed (new bugs introduced ;-)
>>> see README.v6 for more
>>> btw. someone know witch ioctl allows to get local IPv6 addresses ?
>> 
>> I believe SIOCGIFCONF is the only one widely available.
>> other ones (SIOCGIFADDR_IN6) varies by implementation to implementation

> SIOCGIFCONF is no good for this on Linux.  The sockaddr_in6 structure is too 
> big to fit inside struct ifreq.

(Sorry for my ignorance of linux)

So what happens if you invoke ioctl(SIOCGIFCONF) on a linux box that
has IPv6 addresses? Kernel panic? Ioctl error?

Sockaddr_in6 does not fit in ifreq{} in BSDs, either. But it doesn't
matter for us if we carefully parse the result of the ioctl.

                                        JINMEI, Tatuya
                                        Communication Platform Lab.
                                        Corporate R&D Center, Toshiba Corp.
                                        [EMAIL PROTECTED]

Reply via email to