Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2021 13:25:14 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: 8abcdb1f59cc - stable/12 - pf: hide struct pf_kstatus behind ifdef _KERNEL
Message-ID:  <202108111325.17BDPEsV004777@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=8abcdb1f59ccdb75df84112427eb2a7ba7e69bb7

commit 8abcdb1f59ccdb75df84112427eb2a7ba7e69bb7
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-07-23 17:34:43 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-08-11 12:14:22 +0000

    pf: hide struct pf_kstatus behind ifdef _KERNEL
    
    Reviewed by:    kp
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit d9cc6ea270ea52e860e3cc730876ee4324081586)
---
 sys/net/pfvar.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 52fd015ba54e..eda2e9fb71c0 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1146,6 +1146,7 @@ enum pf_syncookies_mode {
 	PF_SYNCOOKIES_MODE_MAX = PF_SYNCOOKIES_ALWAYS
 };
 
+#ifdef _KERNEL
 struct pf_kstatus {
 	counter_u64_t	counters[PFRES_MAX]; /* reason for passing/dropping */
 	counter_u64_t	lcounters[LCNT_MAX]; /* limit counters */
@@ -1163,6 +1164,7 @@ struct pf_kstatus {
 	enum pf_syncookies_mode	syncookies_mode;
 	bool		syncookies_active;
 };
+#endif
 
 struct pf_divert {
 	union {



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