From: "cron2 (Code Review)" Date: Tue, 28 Oct 2025 13:54:18 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641..., antonio@...2726... Message-ID: <03d1bf3842014cd89fe9e48d05ede397e6455e0c-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="k7fvJ61SzyY="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Install host routes for ifconfig-push routes when DCO is enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: d12fk , flichtenheld , openvpn-devel --k7fvJ61SzyY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, flichtenheld, ordex, plaisthos. cron2 has posted comments on this change by plaisthos. ( http://gerrit.open= vpn.net/c/openvpn/+/1192?usp=3Demail ) Change subject: Install host routes for ifconfig-push routes when DCO is en= abled ...................................................................... Patch Set 13: (2 comments) Patchset: PS13: found it, `htonl()` again, the two calls are not symmetric wrt byte order -= so the check works correctly for IPv4 add and fails for IPv4 delete. Patc= h suggestion in the comment. File src/openvpn/dco.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/9082ac20_ae5adc12?usp=3D= email : PS13, Line 743: if (multi_check_push_ifconfig_extra_route(mi, ifcon= fig_local)) with patch v12, multi_check_push_ifconfig_extra_route() lost an htonl(), an= d the *other* caller has a `htonl(a)`, so this one needs a `htonl(ifconfig_= local)` to make it symmetric, or change it everywhere. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1192?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: I83295e00d1a756dfa44050b0a4493095fb050fff Gerrit-Change-Number: 1192 Gerrit-PatchSet: 13 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: ordex Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: ordex Gerrit-Attention: d12fk Gerrit-Comment-Date: Tue, 28 Oct 2025 13:54:18 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --k7fvJ61SzyY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

2 comments:

  • Patchset:

    • Patch Set #13:

      found it, `ht= onl()` again, the two calls are not symmetric wrt byte order - so the check= works correctly for IPv4 add and fails for IPv4 delete. Patch suggestion = in the comment.

  • F= ile src/openvpn/dco.c:

    • <= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1192/comment/9082ac20_ae5ad= c12?usp=3Demail">Patch Set #13, Line 743: if (multi_check_push_ifconfig_extra_route(mi, if= config_local))

      with patch v12, multi_check_push_ifconfig_extra_r= oute() lost an htonl(), and the *other* caller has a `htonl(a)`, so this on= e needs a `htonl(ifconfig_local)` to make it symmetric, or change it everyw= here.

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

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I83295e00d1a756dfa44050b0a44= 93095fb050fff
Gerrit-Change-Number: 1192
Gerrit-PatchSet: 13
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: d12fk <heiko@...515...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: ordex <antonio@...2726...&= gt;
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: ordex <antonio@...2726...= >
Gerrit-Attention: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Tue, 28 Oct 2025 13:54:18= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --k7fvJ61SzyY=--