mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
Kernel: Add s6_addr32 field in in6_addr struct
This commit is contained in:
parent
d4d6f2d945
commit
0a63461341
Notes:
sideshowbarker
2024-07-17 10:18:44 +09:00
Author: https://github.com/TSultanov
Commit: 0a63461341
Pull-request: https://github.com/SerenityOS/serenity/pull/14260
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg
1 changed files with 8 additions and 10 deletions
|
@ -91,18 +91,16 @@ struct ip_mreq_source {
|
||||||
#define IPV6_LEAVE_GROUP 6
|
#define IPV6_LEAVE_GROUP 6
|
||||||
|
|
||||||
struct in6_addr {
|
struct in6_addr {
|
||||||
uint8_t s6_addr[16];
|
union {
|
||||||
|
uint8_t s6_addr[16];
|
||||||
|
uint32_t s6_addr32[4];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#define IN6ADDR_ANY_INIT \
|
/* clang-format off */
|
||||||
{ \
|
#define IN6ADDR_ANY_INIT { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } }
|
||||||
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 */
|
||||||
|
|
||||||
#define IN6ADDR_LOOPBACK_INIT \
|
|
||||||
{ \
|
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 \
|
|
||||||
}
|
|
||||||
|
|
||||||
extern const struct in6_addr in6addr_any;
|
extern const struct in6_addr in6addr_any;
|
||||||
extern const struct in6_addr in6addr_loopback;
|
extern const struct in6_addr in6addr_loopback;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue