HomeFreeBSD

libsysdecode: use decoder table for PF netlink commands

Description

libsysdecode: use decoder table for PF netlink commands

Introduce a PF netlink command decoder table mapping PFNL commands to
their attribute decoder sets. This replaces the existing switch-based
dispatch and makes it easier to add support for additional PF netlink
commands.

Signed-off-by: Ishan Agrawal <iagrawal9990@gmail.com>
Sponsored-by: Google LLC (GSoC 2026)
Reviewed by: kp

Details

Provenance
iagrawal9990_gmail.comAuthored on Aug 8 2026, 6:22 AM
kpCommitted on Aug 10 2026, 2:33 PM
Parents
rG11bc53984b1f: libsysdecode: add attribute parsing for PFNL_CMD_GETRULES
Branches
Unknown
Tags
Unknown