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)
Dec 8 2024, 9:12 AM
Unknown Object (File)
Nov 24 2024, 1:50 PM
Unknown Object (File)
Nov 22 2024, 10:50 PM
Unknown Object (File)
Nov 19 2024, 1:32 PM
Unknown Object (File)
Nov 15 2024, 11:10 AM
Unknown Object (File)
Nov 12 2024, 9:09 AM
Unknown Object (File)
Nov 7 2024, 5:38 AM
Unknown Object (File)
Nov 6 2024, 3:15 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