From: "cron2 (Code Review)" Date: Sun, 12 Oct 2025 12:55:11 +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: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="sxeN0UWrCgE="; 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 --sxeN0UWrCgE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: 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 8: Code-Review-2 (5 comments) Patchset: PS8: this got broken during review / respin... conceptually I have nothing to c= omplain, but the MR_ONLINK_ADDR vs. MR_ONLINK_DCO_ADDR needs to be fixed. = Admittedly I do not understand why it compiles at all (!?)... ``` $ git grep MR_ONLINK src/openvpn/dco.c: if (addr->type & MR_ONLINK_DCO_ADDR) src/openvpn/dco.c: if (addr->type & MR_ONLINK_ADDR) src/openvpn/dco.c: if (addr->type & MR_ONLINK_ADDR) src/openvpn/mroute.h:#define MR_ONLINK_DCO_ADDR 64 src/openvpn/multi.c: addr.type |=3D MR_ONLINK_DCO_ADDR; src/openvpn/multi.c: addr.type |=3D MR_ONLINK_DCO_ADDR; ``` so MR_ONLINK_ADDR is referenced, but not defined anywhere - and it still co= mpiles. Huh. File src/openvpn/dco.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/785dfadb_41bb07c6?usp=3D= email : PS8, Line 686: This got broken in patch iterations - initially everything was `MR_ONLINK_A= DDR` and then the define got changed to `MR_ONLINK_DCO_ADDR` but the "not w= in32" platform was not adjusted? http://gerrit.openvpn.net/c/openvpn/+/1192/comment/c26431d1_ead0937a?usp=3D= email : PS8, Line 700: if (addr->type & MR_ONLINK_ADDR) _DCO_ http://gerrit.openvpn.net/c/openvpn/+/1192/comment/b9ffbe40_0e0e1234?usp=3D= email : PS8, Line 745: } this looks wrong. The !not WIN32 code calls `dco_win_`? http://gerrit.openvpn.net/c/openvpn/+/1192/comment/6e19a3ae_10206ebe?usp=3D= email : PS8, Line 771: } This is asymmetric to IPv4 - I guess this is from early tests, and the `dco= _win_del...()` think needs to go out? -- 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: 8 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-Comment-Date: Sun, 12 Oct 2025 12:55:11 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --sxeN0UWrCgE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 8:Code-Review -2=

V= iew Change

5 comments:

  • Patchset:

    • Patch Set #8:

      this got b= roken during review / respin... conceptually I have nothing to complain, b= ut the MR_ONLINK_ADDR vs. MR_ONLINK_DCO_ADDR needs to be fixed. Admittedly= I do not understand why it compiles at all (!?)...

      ```
      $ git grep M= R_ONLINK
      src/openvpn/dco.c: if (addr->type & MR_ONLINK_DCO_ADD= R)
      src/openvpn/dco.c: if (addr->type & MR_ONLINK_ADDR)
      = src/openvpn/dco.c: if (addr->type & MR_ONLINK_ADDR)
      src/op= envpn/mroute.h:#define MR_ONLINK_DCO_ADDR 64
      src/openvpn/multi.c: = addr.type |=3D MR_ONLINK_DCO_ADDR;
      src/openvpn/multi.c: addr.typ= e |=3D MR_ONLINK_DCO_ADDR;
      ```

      so MR_ONLINK_ADDR is referenced, but = not defined anywhere - and it still compiles. Huh.

  • File src/openvpn/dco.c:

    • Patch Set #8, Line 686= :

      This go= t broken in patch iterations - initially everything was `MR_ONLINK_ADDR` an= d then the define got changed to `MR_ONLINK_DCO_ADDR` but the "not win= 32" platform was not adjusted?

    • Patch Set= #8, Line 700: = if (addr->type & MR_ONLINK_ADDR)

      _DCO_

    • Patch Set #8, Line 745: }

      this looks wrong. The !not WIN32 code c= alls `dco_win_`?

    • Patch Set #8, Line 771: = }

      This i= s asymmetric to IPv4 - I guess this is from early tests, and the `dco_win_d= el...()` think needs to go out?

To view, visit change 119= 2. 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: 8
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-Comment-Date: Sun, 12 Oct 2025 12:55:11= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --sxeN0UWrCgE=--