git: d9cc6ea270ea - main - pf: hide struct pf_kstatus behind ifdef _KERNEL

Mateusz Guzik mjg at FreeBSD.org
Fri Jul 23 17:35:45 UTC 2021


The branch main has been updated by mjg:

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

commit d9cc6ea270ea52e860e3cc730876ee4324081586
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-07-23 17:34:43 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-07-23 17:34:43 +0000

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

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 1dfc769b197d..66027debaa6b 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1149,6 +1149,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 */
@@ -1166,6 +1167,7 @@ struct pf_kstatus {
 	enum pf_syncookies_mode	syncookies_mode;
 	bool		syncookies_active;
 };
+#endif
 
 struct pf_divert {
 	union {


More information about the dev-commits-src-all mailing list