X-Recipient: archive-cygwin AT delorie DOT 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=mDva6vHFi5vGndHDg7yFKaGh0xrcHIC5AuUeQ6PcV5uWPXgGaQG8g K1R96OT3rZ23OvAuKXvV/nqRqQxsmLWQmNUw0yNmTmPyBFkON5EV1Bmbifn9Kur1 6uV7xifuU3965+7d8ap7ufR+eRmPYG+iVrF1pU2fUNjpgt83sxIOl4= 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=GgtNONOz84WiB3n2ag7aWFq05fc=; b=ZEBHYZYmNQmWaZVhtmUScsDvi2qj i5cBOc4k/1O+1Eg8QD59hCA0dAgJjtFak5TY5YCgpND5xc1CBqnefPihsW1eyFsR O29489UoTHTnEO+dRNe3LcYV4YbBpmrMvC48BjIqAHHoW8IamWcNPweYo7z8hH33 M6deaSfyRkcQSbc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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, Hx-languages-length:1324 X-HELO: calimero.vinschen.de Date: Thu, 10 Mar 2016 14:32:23 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Interface friendly names for AF_INET6 Message-ID: <20160310133223.GB27354@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <56E15638 DOT 5080906 AT gmail DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <56E15638.5080906@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) --17pEHd4RhPHOinZp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > The aim is to produce something like >=20 > {9F4F7FD2-5E44-4796-ABE0-0785CF76C11E} AF_INET6 (23) > flags: up running multicast > address: > 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 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. >=20 > 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 --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW4XdnAAoJEPU2Bp2uRE+gPOEP/22WDT1fUZcVmeeES8w+LWlh ZC0KEEIfhFGBwR8omBE1ZKAQrbtTKYoE0WOdzBGjE3nZXBG2nLZoGJLbxXRFfdv9 BtE6ydbwYIyMiGeXpCIGER0E61EFs2H6VzYjEjhr7FRnfoPb5IugDALHK/G74uhC 9KY6Q6iwgAf+dIl/5gOWRw0C/LowBVva3ZriQi8qQ0b+49U7NI4UV56KrFtqRMY0 CfC5dBgmkfX1Xub6f1ubtjJAnmRrOlydZ79XOx4tyUhE/+pGBqNja6Cw+J+AS/5z TTAKyKKEo4EdYWxxIXGd7Pjv/y1d25mdbaXt+qSU1DALb3NN4gRJSV4PSUZR2c+6 tSZAGhUEQlnBlDsRLTkENNvO5Tz/TrnkglylYFJ9WWjbcc3GlB7fpNcIH9OV5Fd8 UINJKeBpjBzObkkEhKu8sENni8ypfstGpjQiy/VBCaXexi1Hx6htjr7qDn/PcXzT 7MW5mjGuTPxuj6Hm44VIn/V9b5Z6xYq3IKru3ru1FUCPNbn60mr5Y8JYqpy3VVac svPnKLf/YHAYp40GE7bFeTJZgxAenxjIBQ1JNIoFS9k63j+wyc6iJ6spy3fxMrLm n1VnTzb0Ea5lIytr4NmGXAaOuXqMTbTTRsUzMNZrU2poK9zZ750F1NgBs51vECM5 s99HkhZRT01CGPnlv86U =DmLP -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--