netdev
[Top] [All Lists]

SIOCGIFCONF and IPv6 addresses

To: kuznet@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: SIOCGIFCONF and IPv6 addresses
From: Arkadiusz Miskiewicz <misiek@xxxxxxxxxx>
Date: Tue, 22 Feb 2000 13:08:39 +0100
Sender: owner-netdev@xxxxxxxxxxx
Currently Linux SIOCGIFCONF doesn't return any IPv6 addresses
because sockaddr filled with ipv6 addr doesnt fit ...

Kame guys said that it doesn't matter if we correctly
parse output.

IMHO simplest way for Linux to allow getting ipv6 addresses
via this ioctl but don't break old application is:
ioctl(AF_INET6 socket, ...) - return IPv6 addresses only or
                             both IPv4 and IPv6 addresses.
ioctl(AF_INET socket, ...) - return only ipv4 addresses (this
                             same result as when using current
                             Linux kernel)

this won't break old applications because they are using AF_INET socket
and will allow to get ipv6 adresses ...

ANK: what you think about this ?

-- 
Arkadiusz Miśkiewicz        http://www.misiek.eu.org/
PLD/Linux [IPv6 enabled]       http://www.pld.org.pl/

<Prev in Thread] Current Thread [Next in Thread>