From: "cron2 (Code Review)" Date: Thu, 6 Nov 2025 16:39:21 +0000 References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <64d2dec3837c3d7b2f8b2b6fdd55579f82efeed7-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Mm5usHS25xU="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: FreeBSD DCO: repair incoming "delete peer" notifications in p2p clien... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --Mm5usHS25xU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=3Demail to review the following change. Change subject: FreeBSD DCO: repair incoming "delete peer" notifications in= p2p client mode ...................................................................... FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode commit 4a48841da2 introduced a workaround for spurious DCO notifications "with no useful content" on Linux - namely, ignoring dco_message_type=3D=3D0 in forward.c, process_incoming_dco(), "because Linux has no message type 0 anyway". Each DCO platform uses its own enum for these notification messages *inside* OpenVPN (which might not have the best design decision ever), and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "position 0"... Fix by changing the enum to start with 1. Tested with DEL_PEER in p2p client and DEL_PEER & FLOAT in p2mp server mode. Github: fixes OpenVPN/openvpn#881 Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc Signed-off-by: Gert Doering --- M src/openvpn/dco_freebsd.h 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/53/1353/1 diff --git a/src/openvpn/dco_freebsd.h b/src/openvpn/dco_freebsd.h index 0797b82..207795f 100644 --- a/src/openvpn/dco_freebsd.h +++ b/src/openvpn/dco_freebsd.h @@ -33,7 +33,7 @@ enum ovpn_message_type_t { - OVPN_CMD_DEL_PEER, + OVPN_CMD_DEL_PEER =3D 1, OVPN_CMD_PACKET, OVPN_CMD_SWAP_KEYS, OVPN_CMD_FLOAT_PEER, -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc Gerrit-Change-Number: 1353 Gerrit-PatchSet: 1 Gerrit-Owner: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld --Mm5usHS25xU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos.

cron2 would like plaisthos and flichtenheld to review t= his change.

V= iew Change

FreeBSD DCO: repair incoming "delete p=
eer" notifications in p2p client mode

commit 4a48841da2 introdu= ced a workaround for spurious DCO notifications
"with no useful con= tent" on Linux - namely, ignoring dco_message_type=3D=3D0
in forwar= d.c, process_incoming_dco(), "because Linux has no message
type 0 a= nyway".

Each DCO platform uses its own enum for these notificat= ion messages
*inside* OpenVPN (which might not have the best design deci= sion ever),
and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "posit= ion 0"...

Fix by changing the enum to start with 1. Tested wit= h DEL_PEER in p2p
client and DEL_PEER & FLOAT in p2mp server mode.
Github: fixes OpenVPN/openvpn#881

Change-Id: I991d6053776efed7= 71bc1a3880acb80b55959cbc
Signed-off-by: Gert Doering <gert@...1296...= >
---
M src/openvpn/dco_freebsd.h
1 file changed, 1 insertion(+= ), 1 deletion(-)

git pull ssh://gerrit.openvpn.n=
et:29418/openvpn refs/changes/53/1353/1
diff --git a/src/openvpn/dc=
o_freebsd.h b/src/openvpn/dco_freebsd.h
index 0797b82..2077= 95f 100644
--- a/src/openvpn/dco_freebsd.h
= +++ b/src/openvpn/dco_freebsd.h
@@ -33,7 +33,7 @@
enum ovpn_message_type_t
{
- OVPN_CMD_DEL_PEER,
+ OVPN_CMD_DEL_PEER = =3D 1,
OVPN_CMD_PACKET,
OVPN_CMD_= SWAP_KEYS,
OVPN_CMD_FLOAT_PEER,

To view, visit change 1353. To unsubscribe, or for help writing m= ail filters, visit settings.

<= /div>
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880a= cb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <gert@...1296...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
= --Mm5usHS25xU=--