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)
Mon, Oct 13, 10:01 PM
Unknown Object (File)
Mon, Oct 13, 10:01 PM
Unknown Object (File)
Mon, Oct 13, 8:23 AM
Unknown Object (File)
Mon, Oct 13, 8:23 AM
Unknown Object (File)
Wed, Sep 24, 4:00 PM
Unknown Object (File)
Fri, Sep 19, 10:50 AM
Unknown Object (File)
Sep 12 2025, 10:45 AM
Unknown Object (File)
Aug 15 2025, 12: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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable