This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Added missing ICMPv6 flags and option


Do we all agree on this patch? Is it ready for being commited by a
commiter or do I have to make further changes?

Have a nice weekend!

Dan

On Thu, Feb 13, 2014 at 8:57 AM, Marko Myllynen <myllynen@redhat.com> wrote:
> Hi,
>
> On 2014-02-12 23:44, Carlos O'Donell wrote:
>> On 02/12/2014 04:30 PM, Dan LÃdtke wrote:
>>
>>>> Would a sensible person reading the RFCs come up with the same constant names?
>>> I consider myself sensible and I read a lot of IPv6-related RFCs :)
>>> So, yes, given that there are no constants in the RFC. First come,
>>> first define? It is a bit of a mess at the moment when writing
>>> portable IPv6 software right now.
>>> For example, this one always gives me a headache and needs custom
>>> defines to work around:
>>> glibc:
>>> #define ND_RA_FLAG_HOME_AGENT    0x20
>>>
>>> BSD(?):
>>> #define ND_RA_FLAG_HA    0x20
>>
>> In that case we want both defines like this:
>>
>> #define ND_RA_FLAG_HOME_AGENT 0x20
>> /* For compatibility with BSD.  */
>> #define ND_RA_FLAG_HA         ND_RA_FLAG_HOME_AGENT
>>
>> I prefer the more verbose "HOME_AGENT."
>
> FWIW, when this and other Mobile IPv6 related defines and structures
> were added, I can't honestly remember did I check BSDs for reference or
> not. But looking at this now, seems that FreeBSD added ND_RA_FLAG_HA
> roughly a year after glibc added ND_RA_FLAG_HOME_AGENT, NetBSD added
> ND_RA_FLAG_HOME_AGENT few years after glibc, and OpenBSD still don't
> have either of them. The KAME project was working on the BSD code so not
> sure how FreeBSD and NetBSD ended up with different defines.
>
> Anyway, I recall that the aim was to be as consistent as feasible both
> with other icmp6.h definitions and the terminology used in the related
> drafts and RFCs.
>
> Cheers,
>
> --
> Marko Myllynen



-- 
Dan Luedtke
http://www.danrl.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]