freebsd-dev/sys/netpfil
Kristof Provost 73fd0eaf59 pfsync: fix incorrect enabling of defer mode
When we exposed the PFSYNCF_OK flag to userspace in 5f5bf88949 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.

Reviewed by:	glebius
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D33244
2021-12-06 13:25:14 +01:00
..
ipfw dummynet: Fix socket option length validation for IP_DUMMYNET3 2021-11-29 13:57:24 -05:00
pf pfsync: fix incorrect enabling of defer mode 2021-12-06 13:25:14 +01:00