From 53551e9976b9bfcff71ca820aefc22d7a668214e Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 23 Jul 2021 17:34:43 +0000 Subject: [PATCH] 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 e037947a537..55ecbecf657 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 { -- 2.45.0