HomeFreeBSD

pf: import pf_set_protostate() from OpenBSD

Description

pf: import pf_set_protostate() from OpenBSD

to change a state's state (that term is overloaded in pf, protocol state
like ESTABLISHED for tcp here), don't do it directly, but go through a newly
introduced pf_set_protostate()

Reviewed by: kbowling
Obtainted from: OpenBSD
MFC after: 1 week
Sponsored by: Modirum MDPay
Differential Revision: https://reviews.freebsd.org/D31729

(cherry picked from commit ce3ea45047c7321bcfcf0cd31272f0e4359640f2)

Details

Provenance
kpAuthored on Jul 20 2021, 4:38 PM
Reviewer
kbowling
Differential Revision
D31729: pf: import pf_set_protostate() from OpenBSD
Parents
rG253d1f4e3161: pf: Add counters for syncookies
Branches
Unknown
Tags
Unknown