HomeFreeBSD

pf: Introduce pf_nvbool()

Description

pf: Introduce pf_nvbool()

Similar to the existing functions for strings and ints, this lets us
simplify some of the nvlist conversion code.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 776df104fa54bb581e1fb88ac44af4fa7fd4052b)

Details

Provenance
kpAuthored on Oct 13 2021, 9:00 AM
Parents
rGd5c6c2eaacba: sbuf(9): Microoptimize sbuf_put_byte()
Branches
Unknown
Tags
Unknown