about summary refs log tree commit diff
path: root/include/netinet
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-03 22:12:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-03 22:12:46 -0400
commitca2d3c6ef45de4943e2fba793131206e491fcdb7 (patch)
tree59a77ebfc0fe3949e2f11727bbd7bb136c7027e1 /include/netinet
parent58aa5f45ed3282751ae118c107ff008d4df765dc (diff)
downloadmusl-ca2d3c6ef45de4943e2fba793131206e491fcdb7.tar.gz
musl-ca2d3c6ef45de4943e2fba793131206e491fcdb7.tar.xz
musl-ca2d3c6ef45de4943e2fba793131206e491fcdb7.zip
add additional compatibility union member for ipv6 addresses
in6_* is in the reserved namespace, so this is valid
Diffstat (limited to 'include/netinet')
-rw-r--r--include/netinet/in.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netinet/in.h b/include/netinet/in.h
index cae16c7d..181f890c 100644
--- a/include/netinet/in.h
+++ b/include/netinet/in.h
@@ -27,10 +27,12 @@ struct in6_addr
 {
 	union {
 		uint8_t __s6_addr[16];
+		uint16_t __s6_addr16[8];
 		uint32_t __s6_addr32[4];
 	} __in6_union;
 };
 #define s6_addr __in6_union.__s6_addr
+#define s6_addr16 __in6_union.__s6_addr16
 #define s6_addr32 __in6_union.__s6_addr32
 
 struct sockaddr_in6