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")
This commit is contained in:
parent
80f39bd95f
commit
29698ed904
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user