diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-03-03 09:28:14 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2021-06-26 08:57:37 +0000 |
commit | b4c7aa06c561adb798c7f99b46273f0aeeea129c (patch) | |
tree | a184a76ab8ce10b86a63d089171ad902e59772bd | |
parent | 5a4dffac60014e883092ed7f133c8ecd198f2b24 (diff) | |
download | src-b4c7aa06c561adb798c7f99b46273f0aeeea129c.tar.gz src-b4c7aa06c561adb798c7f99b46273f0aeeea129c.zip |
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")
(cherry picked from commit 29698ed904737ebfd139a21e39e5421cf81badd8)
-rw-r--r-- | sys/net/pfvar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 00db46521148..2202421086d2 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -896,6 +896,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; @@ -935,6 +936,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 */ |