[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01099) Re: ioctl & ipv6



In article <20011223110445.2046.qmail@xxxxxxxxxxxxxxxxxxxxxxxxx> (at Sun, 23 Dec 2001 11:04:45 +0000 (GMT)), Bhawana Bhatija <bbatija@xxxxxxxxxxx> says:

> I am attaching the code file 
> in which i creating a socket for AF_INET6
> and try to get INET address for an interface (IPv6)

You're trying to get inet6 addresses, aren't you?
You cannot use ioctl to get inet6 addresses.
Use getifaddrs(3) in usagi libinet6 instead.

Note: We cannot put in6_addr into the ifconf{} because
      sizeof(struct sockaddr) < sizeof(struct sockaddr_in6).
--yoshfuji