]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: pass control packets through the socket on FreeBSD
authorKristof Provost <kp@FreeBSD.org>
Sat, 26 Nov 2022 09:08:51 +0000 (10:08 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 26 Nov 2022 09:22:51 +0000 (10:22 +0100)
commit4cf58f4920b430481b772e5f9e9877f9686d3995
tree87afc156d728d3d41138650cd06d87a79c4067d5
parentf7ea7c2b4c0badfb99f75c94171400888715e8ce
dco: pass control packets through the socket on FreeBSD

FreeBSD allows packets to be sent through the socket even when the
if_dco driver is active, so prefer that path.

Also remove the FreeBSD dco_do_write() implementation, as this function
will never be called any more on FreeBSD. Assert this.

Signed-off-by: Kristof Provost <kprovost@netgate.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20221126090851.8656-1-kprovost@netgate.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25542.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_freebsd.c
src/openvpn/forward.c