mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
Fix OVPN_DEL_PEER_REASON_TRANSPORT_DISCONNECT breakage on FreeBSD+DCO
commit 67c4eebdae introduces a new peer disconnect reason (transport
disconnected, aka "TCP session closed") which breaks compilation on
FreeBSD - OVPN_DEL_PEER_REASON_TRANSPORT_DISCONNECT not part of the
enum in freebsd_dco.h, and no kernel support for TCP anyway.
This patch is an intermediate bandaid, making the offending code in
multi.c "linux only" while a better solution is discussed.
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20230113080745.82783-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/search?l=mid&q=20230113080745.82783-1-gert@greenie.muc.de
Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
67c4eebdae
commit
cf545d603e
1 changed files with 3 additions and 0 deletions
|
|
@ -3244,9 +3244,12 @@ process_incoming_del_peer(struct multi_context *m, struct multi_instance *mi,
|
|||
reason = "ovpn-dco: transport error";
|
||||
break;
|
||||
|
||||
#ifdef TARGET_LINUX
|
||||
/* FIXME: this is linux-only today and breaks FreeBSD compilation */
|
||||
case OVPN_DEL_PEER_REASON_TRANSPORT_DISCONNECT:
|
||||
reason = "ovpn-dco: transport disconnected";
|
||||
break;
|
||||
#endif
|
||||
|
||||
case OVPN_DEL_PEER_REASON_USERSPACE:
|
||||
/* We assume that is ourselves. Unfortunately, sometimes these
|
||||
|
|
|
|||
Loading…
Reference in a new issue