public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Interface friendly names for AF_INET6
@ 2016-03-10 11:10 Marco Atzeri
  2016-03-10 13:32 ` Corinna Vinschen
  2016-03-10 14:03 ` Corinna Vinschen
  0 siblings, 2 replies; 9+ messages in thread
From: Marco Atzeri @ 2016-03-10 11:10 UTC (permalink / raw)
  To: cygwin

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

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 ?

Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-05-20 16:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-10 11:10 Interface friendly names for AF_INET6 Marco Atzeri
2016-03-10 13:32 ` Corinna Vinschen
2016-03-10 13:49   ` Corinna Vinschen
2016-03-10 14:30     ` Marco Atzeri
2016-03-10 17:41       ` Corinna Vinschen
2016-05-13 15:00         ` Marco Atzeri
2016-05-20 16:45           ` Corinna Vinschen
2016-03-10 14:03 ` Corinna Vinschen
2016-03-10 14:35   ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).