Date: Sat, 26 Jun 2021 08:58:46 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 27d14a1e5cb2 - stable/12 - pf: Mark struct pf_pdesc as kernel only Message-ID: <202106260858.15Q8wkqK028716@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=27d14a1e5cb228d8fbb25013e1750913c524045a commit 27d14a1e5cb228d8fbb25013e1750913c524045a Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2021-03-03 09:28:14 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2021-06-26 08:55:21 +0000 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) --- sys/net/pfvar.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index c7890b99e05a..eb63af9d47d3 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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106260858.15Q8wkqK028716>