summaryrefslogtreecommitdiff
path: root/Kernel/API/POSIX/netinet
diff options
context:
space:
mode:
authorTimur Sultanov <SultanovTS@yandex.ru>2022-02-06 20:33:08 +0300
committerLinus Groh <mail@linusgroh.de>2022-06-12 00:28:26 +0100
commit0a6346134109f6369eb3404b3e722fab415202b2 (patch)
tree5a6e2c81656f2254795a052673f73d4097744ddc /Kernel/API/POSIX/netinet
parentd4d6f2d945153e9f77c4cfeee12cd0fcc6b72b68 (diff)
downloadserenity-0a6346134109f6369eb3404b3e722fab415202b2.zip
Kernel: Add s6_addr32 field in in6_addr struct
Diffstat (limited to 'Kernel/API/POSIX/netinet')
-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;