mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 03:57:40 +00:00
LibC: Add missing definitions for IPv6 packet info
This commit is contained in:
parent
7c0286a5c2
commit
64ab5bb835
1 changed files with 9 additions and 0 deletions
|
@ -89,6 +89,10 @@ struct ip_mreq_source {
|
||||||
#define IPV6_V6ONLY 9
|
#define IPV6_V6ONLY 9
|
||||||
#define IPV6_JOIN_GROUP 5
|
#define IPV6_JOIN_GROUP 5
|
||||||
#define IPV6_LEAVE_GROUP 6
|
#define IPV6_LEAVE_GROUP 6
|
||||||
|
#define IPV6_RECVPKTINFO 10
|
||||||
|
#define IPV6_PKTINFO 11
|
||||||
|
#define IPV6_RECVHOPLIMIT 12
|
||||||
|
#define IPV6_HOPLIMIT 13
|
||||||
|
|
||||||
struct in6_addr {
|
struct in6_addr {
|
||||||
union {
|
union {
|
||||||
|
@ -97,6 +101,11 @@ struct in6_addr {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct in6_pktinfo {
|
||||||
|
struct in6_addr ipi6_addr;
|
||||||
|
uint32_t ipi6_ifindex;
|
||||||
|
};
|
||||||
|
|
||||||
/* clang-format off */
|
/* 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_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 } } }
|
#define IN6ADDR_LOOPBACK_INIT { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } } }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue