summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Wasser <clemens.wasser@gmail.com>2022-11-05 23:56:27 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2022-11-05 19:31:37 -0600
commit64ab5bb8353ce8e7362bc2cf12d1c9845e3abcf0 (patch)
treed8534b70aec8008c564d1c2f51f53cb55a1cda8d
parent7c0286a5c2e5f4ea68616d749aca44ceffc1cefd (diff)
downloadserenity-64ab5bb8353ce8e7362bc2cf12d1c9845e3abcf0.zip
LibC: Add missing definitions for IPv6 packet info
-rw-r--r--Kernel/API/POSIX/netinet/in.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Kernel/API/POSIX/netinet/in.h b/Kernel/API/POSIX/netinet/in.h
index ad0b054865..0fe0e63a71 100644
--- a/Kernel/API/POSIX/netinet/in.h
+++ b/Kernel/API/POSIX/netinet/in.h
@@ -89,6 +89,10 @@ struct ip_mreq_source {
#define IPV6_V6ONLY 9
#define IPV6_JOIN_GROUP 5
#define IPV6_LEAVE_GROUP 6
+#define IPV6_RECVPKTINFO 10
+#define IPV6_PKTINFO 11
+#define IPV6_RECVHOPLIMIT 12
+#define IPV6_HOPLIMIT 13
struct in6_addr {
union {
@@ -97,6 +101,11 @@ struct in6_addr {
};
};
+struct in6_pktinfo {
+ struct in6_addr ipi6_addr;
+ uint32_t ipi6_ifindex;
+};
+
/* 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 } } }