This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] inet: add uint64_t accessors to in6_addr union
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Shawn Landden <slandden at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 12 Nov 2017 08:27:51 +0100
- Subject: Re: [PATCH] inet: add uint64_t accessors to in6_addr union
- Authentication-results: sourceware.org; auth=none
- References: <20171112065412.18641-1-slandden@gmail.com>
* Shawn Landden:
> diff --git a/inet/netinet/in.h b/inet/netinet/in.h
> index f94b4b4e1c..72d5dec312 100644
> --- a/inet/netinet/in.h
> +++ b/inet/netinet/in.h
> @@ -215,11 +215,13 @@ struct in6_addr
> uint8_t __u6_addr8[16];
> uint16_t __u6_addr16[8];
> uint32_t __u6_addr32[4];
> + uint64_t __u6_addr64[2];
> } __in6_u;
I believe this breaks ABI because it changes the alignment of struct
in6_addr.