netdev
[Top] [All Lists]

Re: SIOCGIFCONF and IPv6 addresses

To: kuznet@xxxxxxxxxxxxx
Subject: Re: SIOCGIFCONF and IPv6 addresses
From: Hideaki YOSHIFUJI (吉藤英明) <yoshfuji@xxxxxxxxxxxxxxxxx>
Date: Wed, 23 Feb 2000 21:07:17 +0900
Cc: sekiya@xxxxxxx, misiek@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <200002231138.OAA00483@xxxxxxxxxxxxx>
References: <xms3dqkll36.wl@xxxxxxxxxxx> <200002231138.OAA00483@xxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
Hi!

In article <200002231138.OAA00483@xxxxxxxxxxxxx> (at Wed, 23 Feb 2000 14:38:33 
+0300 (MSK)), kuznet@xxxxxxxxxxxxx says:

> > In order to get sockaddr_in6, we can use SIOCGLIFCONF.
> 
> Oh! It sounds interesting. Is this extension specific to Solaris?

KAME seems to have SIOC{AGD}LIFADDR and if_laddrreq{}.

/*
 * Structure for SIOC[AGD]LIFADDR
 */
struct if_laddrreq {
        char iflr_name[IFNAMSIZ];
        unsigned int flags;
        unsigned int prefixlen;         /* in/out */
        struct sockaddr_storage addr;   /* in/out */
        struct sockaddr_storage dstaddr; /* out */
};

-- 
Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxxxxx>
Web Page: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 

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