]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: define OVPN_DEL_PEER_REASON_TRANSPORT_DISCONNECT on FreeBSD
authorKristof Provost <kp@FreeBSD.org>
Fri, 3 Mar 2023 11:05:11 +0000 (12:05 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 3 Mar 2023 16:02:51 +0000 (17:02 +0100)
commit155cf11531e619cf24b2aa9d0acb4ff834b2e8fa
tree6c1471452c080dc5d556bd489582059e22189405
parent6f261673dee26ae8cfdf58f77038098d4f81d84a
dco: define OVPN_DEL_PEER_REASON_TRANSPORT_DISCONNECT on FreeBSD

FreeBSD's if_ovpn will never emit this as a peer deletion reason
(because it doesn't support TCP), but this allows us to align the
defines between Linux and FreeBSD, and remove a Linux-specific case from
process_incoming_del_peer().

Signed-off-by: Kristof Provost <kprovost@netgate.com>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <20230303110511.9569-1-kprovost@netgate.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26324.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_freebsd.h
src/openvpn/multi.c