From: "ralf_lici (Code Review)"
Date: Sun, 19 Oct 2025 08:37:49 +0000
In-Reply-To:
References:
Reply-To: ralf@...2726..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
antonio@...2726..., gert@...1296...
Message-ID: <22a140a305a6061adc54779931cd87b6a453dda4-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="INuXlToJEDc="; 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: ,
Cc: plaisthos , flichtenheld , openvpn-devel
--INuXlToJEDc=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, ordex, plaisthos.
ralf_lici has posted comments on this change by ralf_lici. ( http://gerrit.=
openvpn.net/c/openvpn/+/1275?usp=3Demail )
Change subject: dco-freebsd: store peer stats directly in c2
......................................................................
Patch Set 3:
(1 comment)
File src/openvpn/dco_freebsd.c:
http://gerrit.openvpn.net/c/openvpn/+/1275/comment/75cffd49_b9737742?usp=3D=
email :
PS2, Line 625: dco->c->c2.dco_write_bytes =3D nvlist_get_nu=
mber(bytes, "out");
> actually if you check `dco_update_peer_stat()` it already does the right =
thing, similarly to what Ge [=E2=80=A6]
Yeah, you're right, the peer stats we're parsing here should go into the co=
rrect `multi_instance` context rather than the general server context. I we=
nt with Antonio's suggestion and reused `dco_update_peer_stat()`, which alr=
eady handles this properly.
--
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: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I53dd40fabdeacb9dca843e28fdd3b357711c5a84
Gerrit-Change-Number: 1275
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-CC: ordex
Gerrit-Attention: plaisthos
Gerrit-Attention: cron2
Gerrit-Attention: flichtenheld
Gerrit-Attention: ordex
Gerrit-Comment-Date: Sun, 19 Oct 2025 08:37:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2
Comment-In-Reply-To: ordex
--INuXlToJEDc=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: cron2, flichtenheld, ordex, plaisthos.
View =
Change
1 comment:
Yeah, you're right, the peer stats we're parsing her=
e should go into the correct `multi_instance` context rather than the gener=
al server context. I went with Antonio's suggestion and reused `dco_upd=
ate_peer_stat()`, which already handles this properly.
=
ul>To view, visit change 1275. To unsubscribe, or for help writing mail filt=
ers, visit setti=
ngs.
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I53dd40fabdeacb9dca843e28fdd=
3b357711c5a84
Gerrit-Change-Number: 1275
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici <ralf@...2726...>=
;
Gerrit-Reviewer: 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-CC: ordex <antonio@...2726...> =
div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: cron2 <gert@...1296...>=
;
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Attention: ordex <antonio@...2726...=
>
Gerrit-Comment-Date: Sun, 19 Oct 2025 08:37:49=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...=
>
Comment-In-Reply-To: ordex <antonio@...2787...=
...>
=
--INuXlToJEDc=--