Page MenuHomeFreeBSD

pfsync: fix incorrect enabling of defer mode
ClosedPublic

Authored by kp on Dec 3 2021, 9:49 AM.
Tags
None
Referenced Files
F102444097: D33244.diff
Tue, Nov 12, 9:09 AM
Unknown Object (File)
Thu, Nov 7, 5:38 AM
Unknown Object (File)
Wed, Nov 6, 3:15 PM
Unknown Object (File)
Sat, Nov 2, 6:01 AM
Unknown Object (File)
Sat, Nov 2, 6:00 AM
Unknown Object (File)
Sat, Nov 2, 6:00 AM
Unknown Object (File)
Sat, Nov 2, 5:37 AM
Unknown Object (File)
Mon, Oct 28, 2:23 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43119
Build 40007: arc lint + arc unit