Re: [RFC/PATCH 0/4] compilation fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, 16 Oct 2012, Chris Packham wrote:

On Tue, 16 Oct 2012, Ian Kent wrote:

On Tue, 2012-10-16 at 16:24 +1300, Chris Packham wrote:

<snip>

  modules/replicated: use sin6_addr.s6_addr32

Umm ... it must be there, I must have seen it and it must compile
because, well, I compile it all the time. Perhaps this is another
glibc'ism. I'm happy to change as long as autofs compiles everywhere we
want it to.


Found it in /usr/include/netinet/in.h. uclibc 0.9.30.1 defines the union without the leading underscores. Looking at the upstream uclibc that has been fixed. All versions of that definition I found provide the s6_addr32 macro so using that should be safe. I assume the s6_addr is some kind of standard but I can't find a reference to back that up.

OK found a reference in POSIX [1]. "The <netinet/in.h> header shall define the in6_addr structure, which shall include at least the following member: uint8_t s6_addr[16]"

So s6_addr should exist and it's reasonable to assume that s6_addr32 exists.

--
[1] - http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html

--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux