Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2021 08:18:13 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f188c39c41a9 - stable/12 - pf: add a comment to pf_kstate concerning compat with pf_state_cmp
Message-ID:  <202107250818.16P8IDdA043772@gitrepo.freebsd.org>

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

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

commit f188c39c41a9fe9d546cd1cef058078fb402b8c7
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-07-19 12:17:33 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-07-25 07:06:32 +0000

    pf: add a comment to pf_kstate concerning compat with pf_state_cmp
    
    Reviewed by:    kp
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit f9aa757d8d1e1bfc7951f462e92f00639256cad6)
---
 sys/net/pfvar.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index dc9647f86c0b..ba6645131ef9 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -578,10 +578,16 @@ _Static_assert(sizeof(struct pf_state_export) == 384, "size incorrect");
 
 #ifdef _KERNEL
 struct pf_kstate {
+	/*
+	 * Area shared with pf_state_cmp
+	 */
 	u_int64_t		 id;
 	u_int32_t		 creatorid;
 	u_int8_t		 direction;
 	u_int8_t		 pad[3];
+	/*
+	 * end of the area
+	 */
 
 	u_int			 refs;
 	TAILQ_ENTRY(pf_kstate)	 sync_list;



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