From 29698ed904737ebfd139a21e39e5421cf81badd8 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Wed, 3 Mar 2021 10:28:14 +0100 Subject: [PATCH] pf: Mark struct pf_pdesc as kernel only This structure is only used by the kernel module internally. It's not shared with user space, so hide it behind #ifdef _KERNEL. 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 9c8c642a6ace..3f2075b8f0e2 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -893,6 +893,7 @@ struct pfi_kkif { #define PFI_IFLAG_REFS 0x0001 /* has state references */ #define PFI_IFLAG_SKIP 0x0100 /* skip filtering on interface */ +#ifdef _KERNEL struct pf_pdesc { struct { int done; @@ -932,6 +933,7 @@ struct pf_pdesc { u_int8_t sidx; /* key index for source */ u_int8_t didx; /* key index for destination */ }; +#endif /* flags for RDR options */ #define PF_DPORT_RANGE 0x01 /* Dest port uses range */