HomeFreeBSD

pf: improve add state validation

Description

pf: improve add state validation

Both for the DIOCADDSTATE ioctl and for states imported through pfsync packets.
Add a test case to exercise this code path.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit faacc0d968816cf8714c974b6d8df6191cfb0e0d)

Details

Provenance
kpAuthored on Oct 29 2025, 10:40 AM
Parents
rG22d678c93e33: tuning.7 stats.7: Cross-reference
Branches
Unknown
Tags
Unknown