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)
Tue, Sep 22, 8:48 PM
Unknown Object (File)
Sun, Sep 13, 7:24 PM
Unknown Object (File)
Sun, Sep 13, 9:29 AM
Unknown Object (File)
Sep 10 2026, 12:18 PM
Unknown Object (File)
Sep 8 2026, 2:27 PM
Unknown Object (File)
Sep 8 2026, 12:25 PM
Unknown Object (File)
Sep 6 2026, 12:34 PM
Unknown Object (File)
Sep 5 2026, 11:32 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