HomeFreeBSD

pf: use an enum for packet direction in divert tag

Description

pf: use an enum for packet direction in divert tag

The benefit is that in the debugger you will see PF_DIVERT_MTAG_DIR_IN
instead of 1 when looking at a structure. And compilation time failure
if anybody sets it to a wrong value. Using "port" instead of "ndir" when
assigning a port improves readability of code.

Suggested by: glebius
MFC after: 3 weeks
X-MFC-With: fabf705f4b

Details

Provenance
kpAuthored on Oct 20 2023, 7:13 AM
Parents
rGa959ae1c503d: releng-gce: Add missing _
Branches
Unknown
Tags
Unknown