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

(usagi-users 00991) Re: Can I get ipv6 address from device name or device index?



In article <008301c167d7$4cf15b00$c8aadda3@xxxxxxxxxxxxxx> (at Thu, 8 Nov 2001 06:58:14 +0900), "Jonathan Khoo" <jonath-k@xxxxxxxxxxxxxxxxxx> says:

> How can I get the ipv6 address of a particular device?
> I tried getifaddrs, but ifa_addr gives me weird results.
> Anyway to get a sockaddr_in6 from struct ifaddrs?

You will find some example to use getifaddrs() at
<http://www.linux-ipv6.org/cvsweb/~checkout~/misc/tests/ifaddrs_test.c?content-type=text/plain>.

--yoshfuji