Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2021 00:02:15 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 79bc96d1fbee - stable/13 - LinuxKPI: add nexthdr definitions for IPv6
Message-ID:  <202111190002.1AJ02FUJ072000@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=79bc96d1fbee646211e1f605a4951ce81e7a0b53

commit 79bc96d1fbee646211e1f605a4951ce81e7a0b53
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-07-27 13:39:15 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-11-19 00:01:22 +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
    
    (cherry picked from commit b9d984e2c5dcef277c49a576ccefada6519d9b53)
---
 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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111190002.1AJ02FUJ072000>