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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=D1sVHLyRku6qQ+33 kUYJISSVBIrHMQbGDnCzn/1BOKTFL83TU2ou7ZpN0KB0na97PSJj3pu/eYg2jp9+ pg91NfEouI9n+j1BBrgbeC/G8OF2U4E1pDq+SAkUzO6r/ljxUVhcgQVnRkG8ofQo dHDM/UVxBbc2AeQT7JvwEs9iDdI= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Ur1h6HYFF7ic8RuRoQdlTM YYEs8=; b=GRGqeOjhAIN/u6frnZft8oed3nqKK+9qoC5JTBi0hi778SuNVOsP1g RYjwQ6o2MiCHWZfjJEN5psZYH5HgBIZgXdKYpFJFDr4KysF/1bdAfLSJ/1oNFj18 nWKJMnadxZcA7s12KEsofXO/02kn0HemYYIesKklbDecdIoS+aYtA= 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=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=guid-like, guidlike, GUID-like, GUIDlike X-HELO: mail-wm0-f47.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=7uRbdoDYkS6kSvtk9mvVeNGHHIroni17blekGnwMWQw=; b=KQNhgxO3d0T2TiEV/OjkiXVXA9gmKeK5RvEMGTp2WL6Tjk93baUkFGlZzf46ct84vX ZczrLpFTpu4nnNxKuH5nlnDZ67WDMt+mMg9OarkJflw3xtmgDSQLSLAyZP19hhp3VPTa NTTUddS+UcQqZIHKojIb69EmcHuM8RZbYYv3AukL0/jjLQ6WCXvFRYwVSrgg8vrJwSrN 7g8xqEtrP9bpTERgW/TaD3/vvREKBOQTJs+Y/GyTsq1wKjp9kCoV7ee1vdvDvDKlIdF9 zHXrBeXdkGmFVgebcZI5dFKvgiNnYlzWVWQXrlYnJ7unkwdoLjA7XPKUTw0kGE1pLa/K 7UnA== X-Gm-Message-State: AD7BkJLSSxzANuYjUBlSnK1B5hQzjqKJ/HUs5oWBO12aXwL8fJKI2INAgABpTKDwb9mNMQ== X-Received: by 10.28.19.130 with SMTP id 124mr4491908wmt.2.1457620512876; Thu, 10 Mar 2016 06:35:12 -0800 (PST) Subject: Re: Interface friendly names for AF_INET6 To: cygwin AT cygwin DOT com References: <56E15638 DOT 5080906 AT gmail DOT com> <20160310140329 DOT GD27354 AT calimero DOT vinschen DOT de> From: Marco Atzeri Message-ID: <56E1861E.70007@gmail.com> Date: Thu, 10 Mar 2016 15:35:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160310140329.GD27354@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 10/03/2016 15:03, Corinna Vinschen wrote: > 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: >> 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. > > 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 That I know, however If I should advise a user to disable by control panel a virtual interface I can not use the {9F4F7FD2-5E44-4796-ABE0-0785CF76C11E} but "Local Area Connection" should work ... -- 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