aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-07-27 13:39:15 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-11-19 00:01:22 +0000
commit79bc96d1fbee646211e1f605a4951ce81e7a0b53 (patch)
treee3b7ec8e627839e10b996db12b92b4454a12fbae
parent05514f66684cdf30e23933566f798dff5d26c5cf (diff)
downloadsrc-79bc96d1fbee646211e1f605a4951ce81e7a0b53.tar.gz
src-79bc96d1fbee646211e1f605a4951ce81e7a0b53.zip
LinuxKPI: add nexthdr definitions for IPv6
Add the nexthdr definitions for IPv6 which are used by wireless drivers and were previously placed in an 80211 header file by accident. Obtained from: bz_iwlwifi Sponsored by: The FreeBSD Foundation (cherry picked from commit b9d984e2c5dcef277c49a576ccefada6519d9b53)
-rw-r--r--sys/compat/linuxkpi/common/include/net/ipv6.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/net/ipv6.h b/sys/compat/linuxkpi/common/include/net/ipv6.h
index 37c30ed6e793..dfe77ef1c6ed 100644
--- a/sys/compat/linuxkpi/common/include/net/ipv6.h
+++ b/sys/compat/linuxkpi/common/include/net/ipv6.h
@@ -38,6 +38,11 @@
#define IPV6_DEFAULT_HOPLIMIT 64
+#define NEXTHDR_HOP IPPROTO_HOPOPTS
+#define NEXTHDR_ROUTING IPPROTO_ROUTING
+#define NEXTHDR_NONE IPPROTO_NONE
+#define NEXTHDR_DEST IPPROTO_DSTOPTS
+
#define ipv6_addr_loopback(addr) IN6_IS_ADDR_LOOPBACK(addr)
#define ipv6_addr_any(addr) IN6_IS_ADDR_UNSPECIFIED(addr)