mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel: Add s6_addr32 field in in6_addr struct
This commit is contained in:
parent
d4d6f2d945
commit
0a63461341
1 changed files with 8 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue