From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126953 invoked by alias); 10 Mar 2016 17:41:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 126028 invoked by uid 89); 10 Mar 2016 17:41:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-94.7 required=5.0 tests=BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=DOT, Maintainer, HX-Envelope-From:sk:corinna, H*i:sk:56E184F X-HELO: calimero.vinschen.de Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Mar 2016 17:41:33 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id AB349A805E1; Thu, 10 Mar 2016 18:41:31 +0100 (CET) Date: Thu, 10 Mar 2016 17:41:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Interface friendly names for AF_INET6 Message-ID: <20160310174131.GA19326@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <56E15638.5080906@gmail.com> <20160310133223.GB27354@calimero.vinschen.de> <20160310134903.GC27354@calimero.vinschen.de> <56E184F2.1050703@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <56E184F2.1050703@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-03/txt/msg00136.txt.bz2 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1782 On Mar 10 15:30, Marco Atzeri wrote: >=20 >=20 > On 10/03/2016 14:49, Corinna Vinschen wrote: > >On Mar 10 14:32, Corinna Vinschen wrote: > >>Hi Marco, > >> >=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. > > > >Oh, I see. The friendlyname is there, but struct ifaddrs is missing a > >pointer to it. That's the confusion you get when reusing the same > >function and structure type for multiple APIs. > > > >This could be easily rectified by utilizing the ifa_data pointer which > >is unused so far. It could point to a structure pointing to the other > >values collected but not yet exposed by getifaddrs, e.g.: > > > > struct ifall_data > > { > > struct sockaddr ifa_hwaddr; > > int ifa_metric; > > int ifa_mtu; > > int ifa_ifindex; > > struct ifreq_frndlyname ifa_frndlyname; > > }; > > > > ifa_data =3D pointer to ifall_data; > > > >Would that help to get this into Cygwin 2.5.0? > > > > > >Corinna >=20 > I assume the ifall structures are not visible outside cygwin internal, > correct ? >=20 > If so a ifall_data pointer should cover my current trial. Try the latest snapshot. The ifa_data member now contains a pointer to a struct ifa_hwdata which is defined in . Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW4bHLAAoJEPU2Bp2uRE+g3uAP/iclRPz2T2+q5JY8/BjGRRbV rTvCQqitesnHtzs3HVYiEgyoK/sypuzvOhdJeiFGoEUEihsg8G4qEn9rixfNT3ft AoEkYZ7NPfH9HOVy4kidnlP72IeJaJehRxQcPQjYcjXhb4LhEAH57Cqj5S8OLpP/ jSd+i/cajPzehtKAkRP/v45X5f+ZK9lu8PyGzHOf+NjWpxOV4p+YuWsxF1LK4tlq 6WNQM6SAsnuCuJRgedA1+ALcwqQBEYaxnTplO1u3R/lwMu4zoCwoLsp71CrmtOT4 aMFY4RSvEirFhUhTkRgz9y3kO7Shc1sBU3GamKdjfZVUnVwxzgsrxwMF9VUnWOdn CSLkq6Ia218x5fcAxl3gqkmvH+onQuh7Ol4hQJNxUAi7LEHxN3fHvFOvZPk+r5hH 2NE0qoWy3tksut3iZgkMSkajt9LvIOOajd/2dSfAgc17V1/88gL5Bfe1tT6rAnDs 2MZ/s748JdALc3Lq2WsqvPjW6KmHs6zRtavbB3Gwmfrdhe5I08Folx471UnTJ0oE YCKFhhY88OHbqaY2nmsFR9UjfuNkrmT71kWw3jEopGpMG/kTMW4X5phJHTHVBBWv 7NYEEj9cysTiym/QYGpL6qx8h10tJva8BEGir+GKyBSMOFCl0xZhKxsn47hox6CX VaDbijQ49V5jWL3C1Hec =eUa1 -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--