in6_addr: add 64-bit union accessors
Commit Message
64-bit architectures are common so this makes sense to have.
64-bit arches were not so common 1997-02-16.
I'm not going to change the ChangeLog because that practice
breaks git merges.
Bugzilla: #18117
Signed-off-by: Shawn Landden <shawn@churchofgit.com>
---
inet/netinet/in.h | 2 ++
1 file changed, 2 insertions(+)
@@ -214,12 +214,14 @@ struct in6_addr
#ifdef __USE_MISC
uint16_t __u6_addr16[8];
uint32_t __u6_addr32[4];
+ uint64_t __u6_addr64[2];
#endif
} __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 */