From: "cron2 (Code Review)" Date: Sun, 19 Oct 2025 09:49:39 +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: <730e59c345a9702b29523369b7d3d3a415267275-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="IEeIDQGDsVk="; 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 --IEeIDQGDsVk= 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 11: (1 comment) File src/openvpn/multi.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/55223ae1_ab140e86?usp=3D= email : PS11, Line 4377: &o->push_ifconfig_ipv6= _local)); Ah, here we go. This fails if there is *no* `ifconfig-ipv6-push` in the co= nfig, as then we have ``` (gdb) print o->push_ifconfig_ipv6_local $10 =3D {__u6_addr =3D {__u6_addr8 =3D '\000' , __u6_addr= 16 =3D {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 =3D {0, 0, 0, 0}}} ``` ... and that obviously does not match. From reading the code in `dco_delete_iroutes()`, this looks as if the chec= k should be on `mi->context.c2.push_ifconfig_local` and not `mi->context.op= tions.push_ifconfig_ipv6_local`? ... later... yep, this works: ``` struct context_2 *c2 =3D &mi->context.c2; return (!ipv6_net_contains_host(&ifconfig_local, o->ifconfig_ipv6_netbi= ts, &c2->push_ifconfig_ipv6_local)); ``` -- 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: 11 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: Sun, 19 Oct 2025 09:49:39 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --IEeIDQGDsVk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

1 comment:

    =
  • File src/openvpn/multi.c:

    • Patch Set #11, = Line 4377: = &o->push_ifconfig_ipv6_local));

      A= h, here we go. This fails if there is *no* `ifconfig-ipv6-push` in the con= fig, as then we have

      ```
      (gdb) print o->push_ifconfig_ipv6_local<= br>$10 =3D {__u6_addr =3D {__u6_addr8 =3D '\000' <repeats 15 tim= es>, __u6_addr16 =3D {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 =3D {0, 0, 0,= 0}}}
      ```

      ... and that obviously does not match.

      From reading th= e code in `dco_delete_iroutes()`, this looks as if the check should be on `= mi->context.c2.push_ifconfig_local` and not `mi->context.options.push= _ifconfig_ipv6_local`?

      ... later... yep, this works:

      ``` 
      struct context_2 *c2 =3D &mi->context.c2;
      return= (!ipv6_net_contains_host(&ifconfig_local, o->ifconfig_ipv6_netbits,=
      &c2->push_ifconfig_ipv6_loca= l));
      ```

To view, visit change 1192. To unsubscr= ibe, 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: 11
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: Sun, 19 Oct 2025 09:49:39= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --IEeIDQGDsVk=--