freebsd-src/sbin/ifconfig
Kristof Provost 3836400a78 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

(cherry picked from commit 73fd0eaf59)
2021-12-13 14:49:27 +01:00
..
tests
af_inet.c ifconfig: warn if setting an Internet address without mask 2021-12-10 10:24:51 -06:00
af_inet6.c ifconfig: warn if setting an Internet address without mask 2021-12-10 10:24:51 -06:00
af_link.c ifconfig(8): optimize -f ether:dash mode 2020-06-26 16:20:34 +00:00
af_nd6.c
carp.c sbin/ifconfig: Use a global libifconfig handle 2021-03-17 18:24:49 -04:00
ifbridge.c sbin/ifconfig: Use a global libifconfig handle 2021-03-17 18:24:49 -04:00
ifclone.c sbin/ifconfig: Use a global libifconfig handle 2021-03-17 18:24:49 -04:00
ifconfig.8 ifconfig: Minor documentation fix 2021-05-10 03:48:05 +03:00
ifconfig.c ifconfig: warn if setting an Internet address without mask 2021-12-10 10:24:51 -06:00
ifconfig.h ifconfig: warn if setting an Internet address without mask 2021-12-10 10:24:51 -06:00
iffib.c
ifgif.c
ifgre.c Add GRE-in-UDP encapsulation support as defined in RFC8086. 2019-04-24 09:05:45 +00:00
ifgroup.c sbin/ifconfig: Use a global libifconfig handle 2021-03-17 18:24:49 -04:00
ifieee80211.c ifconfig: 80211, add line break after key info 2021-07-18 00:34:57 +00:00
ifipsec.c
iflagg.c sbin/ifconfig: Use a global libifconfig handle 2021-03-17 18:24:49 -04:00
ifmac.c
ifmedia.c ifconfig: Reuse media state in ifmedia_getstate 2021-04-15 22:42:45 -04:00
ifpfsync.c pfsync: fix incorrect enabling of defer mode 2021-12-13 14:49:27 +01:00
ifvlan.c ifconfig: add vlanproto "qiniq" as an alias for "802.1ad" 2021-01-20 15:50:45 +00:00
ifvxlan.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
Makefile base: remove if_wg(4) and associated utilities, manpage 2021-03-18 07:07:56 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
sfp.c sbin/ifconfig: Use a global libifconfig handle 2021-03-17 18:24:49 -04:00