From: "cron2 (Code Review)" Date: Tue, 28 Oct 2025 17:32:29 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <71958b48a70604ca1ad4becd898b7824599df679-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="nHTOAqUlLC8="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Fix logic when pushed cipher triggers tun reopen and ignore more options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --nHTOAqUlLC8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change by plaisthos. ( http://gerrit.open= vpn.net/c/openvpn/+/1321?usp=3Demail ) Change subject: Fix logic when pushed cipher triggers tun reopen and ignore= more options ...................................................................... Patch Set 1: Code-Review-1 (2 comments) Patchset: PS1: I don't think the logic is right now (neither before nor afterwards). The = commit message actually speaks about `link-mtu` but the code tests `tun_mtu= _defined`. File src/openvpn/push.c: http://gerrit.openvpn.net/c/openvpn/+/1321/comment/d77bec25_18f7eaaa?usp=3D= email : PS1, Line 1046: if (strprefix(line, "cipher ") && opt->ce.tun_mtu_d= efined) I don't think this is actually correct - `--tun-mtu` is the *inner* MTU, an= d that never changes on `--cipher`. So the original variant means "if we h= ave a configured tun-mtu, a cipher change will not affect this, so we don't= care". A more clear expression would be "if a `--link-mtu` was defined and `--ciph= er changes` (because in that case, `--tun-mtu` would be recalculated - or w= ould it?) Maybe that whole thing needs to go after the big mtu refactoring? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1321?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: I76eb584024610a6054a069340adbac988abf686c Gerrit-Change-Number: 1321 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 28 Oct 2025 17:32:29 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --nHTOAqUlLC8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 1:Code-Review -1=

V= iew Change

2 comments:

  • Patchset:

    • Patch Set #1:

      I don'= t think the logic is right now (neither before nor afterwards). The commit= message actually speaks about `link-mtu` but the code tests `tun_mtu_defin= ed`.

  • File src/ope= nvpn/push.c:

    • Patch Set #1, Line 1046: if (strprefix(line, "cipher ") && opt-&g= t;ce.tun_mtu_defined)

      I don't think this is actually correct= - `--tun-mtu` is the *inner* MTU, and that never changes on `--cipher`. S= o the original variant means "if we have a configured tun-mtu, a ciphe= r change will not affect this, so we don't care".

      A more clear= expression would be "if a `--link-mtu` was defined and `--cipher chan= ges` (because in that case, `--tun-mtu` would be recalculated - or would it= ?)

      Maybe that whole thing needs to go after the big mtu refactoring?

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

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I76eb584024610a6054a069340ad= bac988abf686c
Gerrit-Change-Number: 1321
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 28 Oct 2025 17:32:29= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --nHTOAqUlLC8=--