Interface friendly names for AF_INET6
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Mar 10 13:32:00 GMT 2016
Hi Marco,
On Mar 10 12:10, Marco Atzeri wrote:
> I am trying to put a small interface info tool
> to debug some hangs reported on openmpi.
>
> The aim is to produce something like
>
> {9F4F7FD2-5E44-4796-ABE0-0785CF76C11E} AF_INET6 (23)
> flags: up running multicast
> address: <fe80::9953:b1f5:a643:4497%15>
> Local Area Connection
> {9F4F7FD2-5E44-4796-ABE0-0785CF76C11E} AF_INET (2)
> flags: up broadcast running multicast
> address: <172.21.188.188>
> Local Area Connection
>
> I am using getifaddrs to obtain all the AF_INET and AF_INET6
> interface, however I can only obtain the friendly name of the
> AF_INET using
> ioctl(sock, SIOCGIFFRNDLYNAM
getifaddrs should return the friendly name. Strruct ifall
has a member ifa_frndlyname, type struct ifreq_frndlyname,
which is filled for AF_INET and AF_INET6 interfaces.
> On my pc I see 20 interface, 10 for each type, however
> only 7 couples shares the same "ifa_name" the others
> 3+3 shows different ones.
>
> Any alternative to ioctl(sock, SIOCGIFFRNDLYNAM
> for AF_INET6 ?
I don't quite understand the question. Are you saying that
ioctl(sock, SIOCGIFFRNDLYNAM) doesn't work for AF_INET6 sockets?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160310/c76916ef/attachment.sig>
More information about the Cygwin
mailing list