From: "cron2 (Code Review)" Date: Tue, 2 Sep 2025 15:46:44 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, ralf@...2726..., frank@...2641... Message-ID: <98cee57b4f48b0ed5a8a3f7bfcfd5576306ee8e3-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Y7/0KwNzdYc="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: dco_linux: validate tun interface before fetching stats List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf_lici Cc: plaisthos , flichtenheld , openvpn-devel --Y7/0KwNzdYc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, ralf_lici. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/1166?usp=3Demail ) Change subject: dco_linux: validate tun interface before fetching stats ...................................................................... Patch Set 1: Code-Review-2 (2 comments) Patchset: PS1: breaks BYTECOUNT on Linux+DCO for me (`tuntap_defined()` always returns FAL= SE) File src/openvpn/dco_linux.c: http://gerrit.openvpn.net/c/openvpn/+/1166/comment/a34991d7_2990cc7c : PS1, Line 1187: if (!tuntap_defined(c->c1.tuntap)) this does not work, as it checks ``` return tt && tt->fd >=3D 0; ``` and with DCO, tt->fd is not set, so this totally breaks counters in client = mode with DCO. It does not crash, though. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1166?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I40c11864745cc1619cb9cbf490b168f90feb5eac Gerrit-Change-Number: 1166 Gerrit-PatchSet: 1 Gerrit-Owner: ralf_lici Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: ralf_lici Gerrit-Comment-Date: Tue, 02 Sep 2025 15:46:44 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --Y7/0KwNzdYc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos, ralf_lic= i.

Patch set 1:Code-Review -2=

V= iew Change

2 comments:

  • Patchset:

    • Patch Set #1:

      breaks BYTECOUNT on Linux+DCO for me (`tunt= ap_defined()` always returns FALSE)

  • File src/openvpn/dco_linux.c:

    • Patch Set #1, Line 1187: if (!tuntap_defined(c->c1.tuntap))<= /code>

      this d= oes not work, as it checks

      ```
      return tt && tt->fd >=3D 0;
      ```

      and with DCO, = tt->fd is not set, so this totally breaks counters in client mode with D= CO. It does not crash, though.

To view, visit change 116= 6. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I40c11864745cc1619cb9cbf490b= 168f90feb5eac
Gerrit-Change-Number: 1166
Gerrit-PatchSet: 1
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-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: ralf_lici <ralf@...2804...= .>
Gerrit-Comment-Date: Tue, 02 Sep 2025 15:46:44= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--Y7/0KwNzdYc=--