summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/API/POSIX/netinet/in.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/Kernel/API/POSIX/netinet/in.h b/Kernel/API/POSIX/netinet/in.h
index 136250a6f2..ad0b054865 100644
--- a/Kernel/API/POSIX/netinet/in.h
+++ b/Kernel/API/POSIX/netinet/in.h
@@ -91,18 +91,16 @@ struct ip_mreq_source {
#define IPV6_LEAVE_GROUP 6
struct in6_addr {
- uint8_t s6_addr[16];
+ union {
+ uint8_t s6_addr[16];
+ uint32_t s6_addr32[4];
+ };
};
-#define IN6ADDR_ANY_INIT \
- { \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 \
- }
-
-#define IN6ADDR_LOOPBACK_INIT \
- { \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 \
- }
+/* clang-format off */
+#define IN6ADDR_ANY_INIT { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } }
+#define IN6ADDR_LOOPBACK_INIT { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } } }
+/* clang-format on */
extern const struct in6_addr in6addr_any;
extern const struct in6_addr in6addr_loopback;