Page MenuHomeFreeBSD

pfsync: fix incorrect enabling of defer mode
ClosedPublic

Authored by kp on Dec 3 2021, 9:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 11:04 AM
Unknown Object (File)
Sat, Apr 18, 7:09 AM
Unknown Object (File)
Fri, Apr 17, 9:53 PM
Unknown Object (File)
Thu, Apr 16, 11:35 AM
Unknown Object (File)
Sat, Apr 11, 1:42 PM
Unknown Object (File)
Sat, Apr 11, 5:04 AM
Unknown Object (File)
Fri, Apr 10, 11:20 PM
Unknown Object (File)
Sun, Apr 5, 9:53 AM

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