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:from:subject:to:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=KE6
	2DDvogZNBkpG1j60kqF2R3qSPuOQOz/xJ13sKhmrkd4AwNpMlx/HxWrTNwhiSgb1
	cCm7DdNj2CfKYRDhieYUMP4cX1THNBNmv+PsYUtbpqZ6GpNLLt3tYmQDeIgeHtrr
	eQED0wYzUl5eWR6oIEWmuegzCm2Kw4ewtQGWJfoI=
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:from:subject:to:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=ORUE/rF7/
	atIXD1uEFYj2AhZkXI=; b=FXlHOsLaDY9jbffYbP7AlX/qj2cGMIjqWy1z9hLmT
	LOPd+MV/LMB7MRzF/pcL9sa1lmABhOW6NDYk19zyoOmNw+Kf3NIGx3k1AWGlXWb2
	v3e9c1HyVaRWYSdUwcD6lirsZPMfpOLdspSv1r1LDwR7SxwdLV3QrQK1785ZuVTP
	eY=
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=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=broadcast, 17221188188, 172.21.188.188, hangs
X-HELO: mail-wm0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:from:subject:to:message-id:date:user-agent         :mime-version:content-transfer-encoding;        bh=S4c6nvoSIPnXGbhDBrM727HMBvwlzRRaMiH/SxNK448=;        b=Ihk9F/C60G2P/hRZTnVumnN30uUS4fn5ts71QhKbn8LLcVx4nL878LnO/qlUs3BHCc         6sqw/qBvrDyOEYmjEQ/8xlMH9h1yui/Y81xZrC5+1fYEZ0SjQ8KSq73oLVEUXPKiZKjU         7rR0kIVbLH6j1LlUJkaZuWKgrGiHJaF579DxK9FChfLJktgY1HhoJ20sNL87dTbsCkA1         ts/2XMU2oKUhWt3Dkj/exsjsATQmboKHc+Qym+cRu5fxAAwDSMnv7ZkpgF8tqB2dpNI8         dcftIHrxrWd5r6jBI6qObJYOzzoxfF6fJ/KKh0d6VPXVAw5NgQ1TcXh39ccpvF3dRUst         BAkw==
X-Gm-Message-State: AD7BkJIERUx5Hv0XfYtaZERMIclTRs/UJ5Gbx+PwQH3r1yKAWrHa4XXQJrsCdY0uM9/waQ==
X-Received: by 10.195.13.76 with SMTP id ew12mr3544104wjd.68.1457608250820;        Thu, 10 Mar 2016 03:10:50 -0800 (PST)
From: Marco Atzeri <marco.atzeri@gmail.com>
Subject: Interface friendly names for AF_INET6
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Message-ID: <56E15638.5080906@gmail.com>
Date: Thu, 10 Mar 2016 12:10:48 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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

