Kernel: Add s6_addr32 field in in6_addr struct

This commit is contained in:
Timur Sultanov 2022-02-06 20:33:08 +03:00 committed by Linus Groh
parent d4d6f2d945
commit 0a63461341
Notes: sideshowbarker 2024-07-17 10:18:44 +09:00

View file

@ -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;