freebsd-dev/sys/netpfil/pf
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
..
if_pflog.c if_pflog: fix packet length 2021-12-04 08:42:55 +01:00
if_pfsync.c pfsync: fix incorrect enabling of defer mode 2021-12-06 13:25:14 +01:00
in4_cksum.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
pf_altq.h pf: qid and pqid can be uint16_t 2021-09-10 17:07:57 +02:00
pf_if.c pf: switch kif counters to pf_counter_u64 2021-07-25 10:22:17 +02:00
pf_ioctl.c pf: add COMPAT_FREEBSD13 for DIOCKEEPCOUNTERS 2021-11-17 03:09:20 +01:00
pf_lb.c pf: selecting pf_map_addr is not an error 2021-10-16 09:32:15 +02:00
pf_mtag.h pf: fix netpfil.common.dummynet:pf_nat test 2021-11-23 16:46:35 +01:00
pf_norm.c pf: remove unused variables 2021-11-23 16:44:37 +01:00
pf_nv.c pf: ensure we populate dyncnt/tblcnt in struct pf_addr_wrap 2021-11-10 11:27:22 +01:00
pf_nv.h pf: Introduce pf_nvbool() 2021-10-13 12:01:09 +02:00
pf_osfp.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_ruleset.c pf: match keyword support 2021-07-17 12:01:08 +02:00
pf_syncookies.c pf: hook up adaptive mode configuration 2021-09-29 15:11:54 +02:00
pf_table.c pf: Remove unneeded NULL check 2021-07-08 10:32:33 +02:00
pf.c pf: add pf_bcmp_state_key 2021-11-28 20:15:45 +01:00
pf.h pf: import pf_set_protostate() from OpenBSD 2021-09-01 12:02:19 +02:00