X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=AY5NzB4zXLeVUxcfYyvHIwGhRUl2ncMvb72MhLi3sh+3czUoz3ZxT
	YxWnceWNNHP4E38Jao/jxlcZ36VwjLq6dH2WpyYKORmoVwZuPA2Vp/DkB75pf3Jm
	L95j7VEMPpCiHV+0VhPjLkSDSdlBJqxmDBL1GTs+Vo0uzPK5JuVusk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=fJlm4Cr2FK959njMuDqkjWzTPXU=; b=i/NTWBN1Fb1PSP6fuQ9BMB2KVmXQ
	my5H/kK9t/vZIvkMkSgAJ+6BirDFCM06f8vNwk9S6aSk2pmm/ICuzVVFm6Xhx9g6
	8LiFRxBvUmxPX3c5pLoTypJ2FFtp6SP9QtKOlDvI1W5TyWQGU+ctav8vB87bAKEP
	cR8zhpegRRNBULk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-93.9 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=DOT, Maintainer, Interface, H*MI:sk:56E1563
X-HELO: calimero.vinschen.de
Date: Thu, 10 Mar 2016 15:03:29 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Interface friendly names for AF_INET6
Message-ID: <20160310140329.GD27354@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <56E15638.5080906@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="CblX+4bnyfN0pR09"
Content-Disposition: inline
In-Reply-To: <56E15638.5080906@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)

--CblX+4bnyfN0pR09
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> The aim is to produce something like
>=20
> {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
>=20
> 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
>=20
> 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.

Btw., don't use the friendly names to distinguish interfaces.  Only the
real, GUID-like interface name is a valid, unique identifier under
Windows.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--CblX+4bnyfN0pR09
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW4X6xAAoJEPU2Bp2uRE+gmpUP/jSHEGKrIYkPP+8C98f3m+0Y
X2lFw66i125UO3PSKEWyeznQgHhImbIpzcFUEUl8lUQ1WlK6nbxHv+cPFbxeTEPS
u1Vq5nWftgIijdRp+VFK3hxas2bTlpBZphF7IFTlfr2q0ssu097TeJazEq4uj+fJ
KQERmPgR9BhbfkhgT9ustz2ZxA9MKAvYHvwt1cf9SfwBWwU7z4wssi/z9hWi8wL+
KzwAvA4QfEjU5gEWdOJSkLhYXVZs5YW0TsN2qLYWMgyFpOcezAJdI3SwEIG7fnPi
jELDX8my2NrtcZ284NZSBX6vEce+mtnZhBGGnSmdX8J2F8ODXM6LjQm6hMcWVbRr
QNOF0KebUOJwvm1ndcLXbiKLMGKmi/63mqjZ+boCDIVMebpSzAr6MaEqrb/HJf7A
9oomPSW8FD2nK3MWAse5C2l2R4eEtkFGwxQVVfWUkreURViyqT+nqYU27q/8DmWk
oDQm9e7Ga4bWzEeOznnyKOJimHenRQVOp4QUWaRGWM1Tqe3m2z9x5vDgnNDpQT5c
sykOwTW1ECrFBC6FeuHn9WMtlTflSrXQUo5kXQoJM1wXc0WPEYKQLARl0/Lp9hQQ
pVDX421szc8bFQQWpVt4fKaKoioKLyUrWa5cePsgvgAB2V2Ps3iprsqtFWdrMK02
U2XmMOu26u5MB7MFFY9c
=0lBq
-----END PGP SIGNATURE-----

--CblX+4bnyfN0pR09--
