From: "ralf_lici (Code Review)" Date: Wed, 15 Oct 2025 07:25:26 +0000 References: Reply-To: ralf@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <11ff4f4bf16ddc43aadead1650f215c82a5884be-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="7oq4K9MX4j0="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: dco-freebsd: store peer stats directly in c2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --7oq4K9MX4j0= 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/+/1275?usp=3Demail to review the following change. Change subject: dco-freebsd: store peer stats directly in c2 ...................................................................... dco-freebsd: store peer stats directly in c2 The dco_context_t structure includes a reference to the general context structure c, which allows us to store dco_read_bytes and dco_write_bytes directly as c2 fields. This aligns the FreeBSD implementation with how we handle DCO peer stats on Linux and Windows. Change-Id: I53dd40fabdeacb9dca843e28fdd3b357711c5a84 Signed-off-by: Ralf Lici --- M src/openvpn/dco_freebsd.c 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/75/1275/1 diff --git a/src/openvpn/dco_freebsd.c b/src/openvpn/dco_freebsd.c index b9f6bc7..5791257 100644 --- a/src/openvpn/dco_freebsd.c +++ b/src/openvpn/dco_freebsd.c @@ -621,8 +621,8 @@ { const nvlist_t *bytes =3D nvlist_get_nvlist(nvl, "bytes"); - dco->dco_read_bytes =3D nvlist_get_number(bytes, "in"); - dco->dco_write_bytes =3D nvlist_get_number(bytes, "out"); + dco->c->c2.dco_read_bytes =3D nvlist_get_number(bytes, "in= "); + dco->c->c2.dco_write_bytes =3D nvlist_get_number(bytes, "o= ut"); } dco->dco_message_type =3D OVPN_CMD_DEL_PEER; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1275?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: I53dd40fabdeacb9dca843e28fdd3b357711c5a84 Gerrit-Change-Number: 1275 Gerrit-PatchSet: 1 Gerrit-Owner: ralf_lici Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld --7oq4K9MX4j0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

ralf_lici would like plaisthos and flichtenheld to review this change.

V= iew Change

dco-freebsd: store peer stats directly in c=
2

The dco_context_t structure includes a reference to the general co= ntext
structure c, which allows us to store dco_read_bytes and dco_write= _bytes
directly as c2 fields. This aligns the FreeBSD implementation wit= h how
we handle DCO peer stats on Linux and Windows.

Change-Id: I= 53dd40fabdeacb9dca843e28fdd3b357711c5a84
Signed-off-by: Ralf Lici <ra= lf@...2726...>
---
M src/openvpn/dco_freebsd.c
1 file changed, = 2 insertions(+), 2 deletions(-)

git pull ssh://g=
errit.openvpn.net:29418/openvpn refs/changes/75/1275/1
diff --git a=
/src/openvpn/dco_freebsd.c b/src/openvpn/dco_freebsd.c
inde= x b9f6bc7..5791257 100644
--- a/src/openvpn/dco_freebsd.c
+++ b/src/openvpn/dco_freebsd.c
@@ -621,8 +6= 21,8 @@
{
con= st nvlist_t *bytes =3D nvlist_get_nvlist(nvl, "bytes");
- = dco->dco_read_bytes =3D nvlist_get_number(bytes, "in");
- dco->d= co_write_bytes =3D nvlist_get_number(bytes, "out");
+ dco->c->c2.= dco_read_bytes =3D nvlist_get_number(bytes, "in");

+ dco->c->c2.d= co_write_bytes =3D nvlist_get_number(bytes, "out");

}

dco->dc= o_message_type =3D OVPN_CMD_DEL_PEER;

T= o view, visit change 1275. To unsubscribe, or for help writing mail filters, vi= sit settings= .

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I53dd40fabdeacb9dca843e28fdd= 3b357711c5a84
Gerrit-Change-Number: 1275
Gerrit-PatchSet: 1
Gerrit-Owner: ralf_lici <ralf@...2726...>= ;
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...>
= --7oq4K9MX4j0=--