HomeFreeBSD

libpfct: factor out pfctl_get_rules_info()

Description

libpfct: factor out pfctl_get_rules_info()

Introduce pfctl_get_rules_info(), similar to pfctl_get_eth_rules_info()
to retrieve rules information (ticket and total number of rules).

Use the new function in pfctl.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D34443

(cherry picked from commit 8c1400b0a1083c9e2bf8f3418eb3e3cfba1a8444)

Details

Provenance
kpAuthored on Mar 4 2022, 4:12 PM
Differential Revision
D34443: libpfct: factor out pfctl_get_rules_info()
Parents
rGa445feae98f2: libpfctl: support flushing rules/nat/eth
Branches
Unknown
Tags
Unknown