This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [GLIBC Patch v2] inet: avoid redefinition of some structs in kernel
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org, Cong Wang <amwang at redhat dot com>, netdev at vger dot kernel dot org, "David S. Miller" <davem at davemloft dot net>, Thomas Backlund <tmb at mageia dot org>, YOSHIFUJI Hideaki <yoshfuji at linux-ipv6 dot org>
- Date: Fri, 06 Sep 2013 00:52:01 -0400
- Subject: Re: [GLIBC Patch v2] inet: avoid redefinition of some structs in kernel
- Authentication-results: sourceware.org; auth=none
- References: <1376558891-26221-1-git-send-email-amwang at redhat dot com> <1376558891-26221-2-git-send-email-amwang at redhat dot com> <201308260126 dot 06626 dot vapier at gentoo dot org>
On 08/26/2013 01:26 AM, Mike Frysinger wrote:
> On Thursday 15 August 2013 05:28:11 Cong Wang wrote:
>> From: Carlos O'Donell <carlos@redhat.com>
>>
>> - Synchronize linux's `include/uapi/linux/in6.h'
>> with glibc's `inet/netinet/in.h'.
>> - Synchronize glibc's `inet/netinet/in.h with linux's
>> `include/uapi/linux/in6.h'.
>> - Allow including the headers in either other.
>> - First header included defines the structures and macros.
>>
>> Notes:
>> - You want netinet/in.h to include bits/in.h as early as possible,
>> but it needs in_addr so define in_addr early.
>> - You want bits/in.h included as early as possible so you can use
>> the linux specific code to define __USE_KERNEL_DEFS based on
>> the _UAPI_* macro definition and use those to cull in.h.
>> - glibc was missing IPPROTO_MH, added here.
>
> can we get something better documented here in a central location ? having
> the names laid out in a git commit message and in a few leaf headers does not
> lend itself to being easily discoverable.
Care to suggest something?
Cheers,
Carlos.