git: b9d984e2c5dc - main - LinuxKPI: add nexthdr definitions for IPv6
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Jul 27 15:03:23 UTC 2021
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=b9d984e2c5dcef277c49a576ccefada6519d9b53
commit b9d984e2c5dcef277c49a576ccefada6519d9b53
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-07-27 13:39:15 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-27 15:00:21 +0000
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
Reviewed by: hselasky
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D31321
---
sys/compat/linuxkpi/common/include/net/ipv6.h | 5 +++++
1 file changed, 5 insertions(+)
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)
More information about the dev-commits-src-all
mailing list