This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] inet: add uint64_t accessors to in6_addr union
- From: Shawn Landden <slandden at gmail dot com>
- To: libc-alpha at sourceware dot org
- Cc: Shawn Landden <slandden at gmail dot com>
- Date: Sat, 11 Nov 2017 22:54:12 -0800
- Subject: [PATCH] inet: add uint64_t accessors to in6_addr union
- Authentication-results: sourceware.org; auth=none
64-bit architectures are common so this makes sense to have.
64-bit arches were not so common 1997-02-16.
Signed-off-by: Shawn Landden <slandden@gmail.com>
---
inet/netinet/in.h | 2 ++
1 file changed, 2 insertions(+)
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;
#define s6_addr __in6_u.__u6_addr8
#ifdef __USE_MISC
# define s6_addr16 __in6_u.__u6_addr16
# define s6_addr32 __in6_u.__u6_addr32
+# define s6_addr64 __in6_u.__u6_addr64
#endif
};
#endif /* !__USE_KERNEL_IPV6_DEFS */
--
2.15.0.rc2