pf: add a comment to pf_kstate concerning compat with pf_state_cmp

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-07-19 14:17:33 +02:00
parent 144ec0713d
commit f9aa757d8d

View file

@ -586,10 +586,16 @@ _Static_assert(sizeof(struct pf_state_export) == 384, "size incorrect");
#ifdef _KERNEL
struct pf_kstate {
/*
* Area shared with pf_state_cmp
*/
u_int64_t id;
u_int32_t creatorid;
u_int8_t direction;
u_int8_t pad[3];
/*
* end of the area
*/
u_int refs;
TAILQ_ENTRY(pf_kstate) sync_list;