From: "ordex (Code Review)" Date: Tue, 16 Sep 2025 21:03:19 +0000 In-Reply-To: References: Reply-To: antonio@...2726..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <119af713a1dfea0cf9befcb6badd6fa0371c9938-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ppZo1Druqlg="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Allow route_ipv6_match_host to be used outside of route.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: d12fk , flichtenheld , openvpn-devel --ppZo1Druqlg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. ordex has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/1191?usp=3Demail ) Change subject: Allow route_ipv6_match_host to be used outside of route.c ...................................................................... Patch Set 3: Code-Review+1 (4 comments) Patchset: PS3: patch looks good to me, but I have a few nitpicks in line with Heiko's opin= ion. File src/openvpn/route.c: http://gerrit.openvpn.net/c/openvpn/+/1191/comment/c97633f9_e67e2e01 : PS1, Line 719: route_ipv6_match_host(const struct in6_addr *network, unsign= ed int bits, const struct in6_addr *host) > The name is somewhat outdated with the new signature of the function. [= =E2=80=A6] I agree - that also makes it obvious that there is no route involved anymore http://gerrit.openvpn.net/c/openvpn/+/1191/comment/128cf6ac_eb198fb9 : PS1, Line 726: int i =3D 0; > No i is used outside the loop in line 740/742 Heiko said there is no need to "initialize" i. So just drop "=3D 0" as it's= initialized by the for loop. File src/openvpn/route.c: http://gerrit.openvpn.net/c/openvpn/+/1191/comment/336ca137_8e3a6ff8 : PS3, Line 716: /* (not the most beautiful implementation in the world, = but portable and maybe drop opening and closing parenthesis? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1191?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: Ief1495b52ea81cac35d78e40264372d3869423f1 Gerrit-Change-Number: 1191 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: ordex Gerrit-CC: d12fk Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 16 Sep 2025 21:03:19 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: plaisthos Comment-In-Reply-To: d12fk Gerrit-MessageType: comment --ppZo1Druqlg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 3:Code-Review +1=

V= iew Change

4 comments:

  • Patchset:

    • Patch Set #3:

      patch looks good to me, but I have a few ni= tpicks in line with Heiko's opinion.

  • File src/openvpn/route.c:

    • Patch Set #1, Line 719: route_ipv6_match_host(const struct in6_add= r *network, unsigned int bits, const struct in6_addr *host)

      The name is somewhat outdated with the new signature of the function= . [=E2=80=A6]

      I agree - that also makes it obvious that there is no route i= nvolved anymore

    • Patch Set #1, Line 726: int i =3D 0;

      No i is used outside the loop in line 740/742

      Heiko said there is no need = to "initialize" i. So just drop "=3D 0" as it's ini= tialized by the for loop.

  • File src/openvpn/route.c:

    • Patch Set #3, Line 716: /* (not the most beautiful implementation in the worl= d, but portable and

      maybe drop opening and closing parenthesis?

To view, visit change 1191. To unsubscribe, or for help writing mail f= ilters, visit settings.<= /p>

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ief1495b52ea81cac35d78e40264= 372d3869423f1
Gerrit-Change-Number: 1191
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: ordex <antonio@...2726...&= gt;
Gerrit-CC: d12fk <heiko@...515...>
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, 16 Sep 2025 21:03:19= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: plaisthos <arne-openvp= n@...1227...>
Comment-In-Reply-To: d12fk <heiko@...515...= >
Gerrit-MessageType: comment
--ppZo1Druqlg=--