diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-07-19 12:17:33 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-07-25 07:06:32 +0000 |
commit | f188c39c41a9fe9d546cd1cef058078fb402b8c7 (patch) | |
tree | c4b2a82998480928d6e2428f7dfc4d55489b49ed | |
parent | 5351d31bfcbbd27ac0d505215871e69a46f74b17 (diff) | |
download | src-f188c39c41a9fe9d546cd1cef058078fb402b8c7.tar.gz src-f188c39c41a9fe9d546cd1cef058078fb402b8c7.zip |
pf: add a comment to pf_kstate concerning compat with pf_state_cmp
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit f9aa757d8d1e1bfc7951f462e92f00639256cad6)
-rw-r--r-- | sys/net/pfvar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index dc9647f86c0b..ba6645131ef9 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -578,10 +578,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; |