HomeFreeBSD

pf tests: more thorough pfsync defer test

Description

pf tests: more thorough pfsync defer test

Add a somewhat more extensive pfsync defer mode test. Ensure that pfsync
actually delays the state creating packet until after it has sent the
pfsync update and given the peer time to create the state.

Ideally the test should validate the pfsync state update and generate an
ack message, but to keep the test simple we rely on the timeout of the
deferred packet instead.

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

(cherry picked from commit 60a3a371afa73ddbc085a7af044a4a860a998c57)

Details

Provenance
kpAuthored on Dec 2 2021, 5:47 PM
Differential Revision
D33245: pf tests: more thorough pfsync defer test
Parents
rG3836400a785f: pfsync: fix incorrect enabling of defer mode
Branches
Unknown
Tags
Unknown