Page MenuHomeFreeBSD

pfsync: fix incorrect enabling of defer mode
ClosedPublic

Authored by kp on Dec 3 2021, 9:49 AM.
Tags
None
Referenced Files
F168593690: D33244.id.diff
Sat, Aug 29, 4:41 AM
F168588773: D33244.id99547.diff
Sat, Aug 29, 4:03 AM
Unknown Object (File)
Wed, Aug 26, 7:38 AM
Unknown Object (File)
Wed, Aug 26, 6:12 AM
Unknown Object (File)
Tue, Aug 25, 1:12 PM
Unknown Object (File)
Mon, Aug 17, 1:31 PM
Unknown Object (File)
Mon, Aug 17, 1:28 PM
Unknown Object (File)
Sun, Aug 16, 7:42 PM

Details

Summary

When we exposed the PFSYNCF_OK flag to userspace in 5f5bf88949d we
unintentionally caused defer mode to always be enabled.
The ioctl check only looked for nonzero, not for the PFSYNCF_DEFER flag.

Fix this check and ensure ifconfig sets the flag.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable