HomeFreeBSD

pf: assert dir state on pf_test{,6}

Description

pf: assert dir state on pf_test{,6}

The intent is to line up various enums so that branching in the lines of:

idx = (dir == PF_IN ? PF_SK_WIRE : PF_SK_STACK);

is avoided.

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
mjgAuthored on Aug 17 2021, 6:16 PM
Parents
rG5091ca26507b: pf: save on branching in the common case in pf_test
Branches
Unknown
Tags
Unknown