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=pY5WTpHMNDLMp+EEh9U+o7B399u4gjfO3o31Q1Qpy/T5Nnc7QktSL
	EPmJLDsFhTpsGb3c4uZagxLp2JZ0kN8J+CeHTzMupirAXmHHvSQ5EmYJq3QLLhwO
	Vh/C7yvQxFPlOsIFGoyDmqNY/7dPv2mHVCKw6H0lXkaNwCs1PI4ff8=
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=wZYSlxhQTqwgLU+shLRI1IczDz4=; b=Balc1G0fDPZEMNydmsAk4BsdY6cA
	dblU5drytvPTPGYFcjt7pKQ0ASiLZjKx+pROfmEa/JmEBdj0aG5Uw84WXtHoeMuu
	YtyZmlUhsG1AIF9AWEE2ELm9zDPLxfZeqYj2kywviyzLh3TPG14U+FNLE4lqHeqP
	PSM6+1E2kedUeO0=
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=-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
Date: Thu, 10 Mar 2016 18:41:31 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
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)

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 <ifaddrs.h>.


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"

-----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--
