From: "ordex (Code Review)" Date: Tue, 16 Sep 2025 21:19:39 +0000 In-Reply-To: References: Reply-To: antonio@...2726..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <7f19b9d91d6f6dc4e099579b958b3e218b83bd4f-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qhcSdNtJDtI="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Install host routes with onlink scope iroutes for ifconfig-push routes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: d12fk , flichtenheld , openvpn-devel --qhcSdNtJDtI= 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/+/1192?usp=3Demail ) Change subject: Install host routes with onlink scope iroutes for ifconfig-= push routes ...................................................................... Patch Set 4: Code-Review+1 (12 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/6b060a08_b9b15038 : PS4, Line 7: Install host routes with onlink scope iroutes for ifconfig-pus= h routes to be honest, this title feels a bit cryptic =F0=9F=98=84 maybe it can be simplified a little, since we have the longer description b= elow? http://gerrit.openvpn.net/c/openvpn/+/1192/comment/955bcbc5_de33bffb : PS4, Line 10: of the configured device need to be added to the operating sy= stem to the subject for "need" is "Additional IP addresses", but I think you meant = "a route to those IPs", right? So this sentence should be massaged a little. Moreover, is `ifconfig-push` really creating an "Additional IP" or is it ju= st substituting the IP assigned out of the server pool? http://gerrit.openvpn.net/c/openvpn/+/1192/comment/9e07abea_3c127d4d : PS4, Line 15: iroute, will not work. should we add "because the server does not have an address in the same netw= ork as these IPs assigned to the VPN interface" (some something alike)? Just to make sure in 5 months from now we recall why we did this. Patchset: PS4: patch looks good to me. I just have a few minor nitpicks.. File doc/man-sections/server-options.rst: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/a86c4865_793f1207 : PS4, Line 318: address s/for/to/ s/ /./ http://gerrit.openvpn.net/c/openvpn/+/1192/comment/bff8681a_b8c91a88 : PS4, Line 330: When DCO is enabled, OpenVPN will install a /128 route for= the local IP s/for/to/ File src/openvpn/dco.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/d9ae49b2_0ce9bbcd : PS4, Line 729: /* Check if we added the local network as /32 route = as it was not in should we call it "client network", as "local" seems to be something local = to the server File src/openvpn/multi.h: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/c67d489a_5aa0fbc8 : PS4, Line 672: * forgot to document "mi" File src/openvpn/multi.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/d08232ec_d390068e : PS4, Line 1251: msg(D_MULTI_LOW, "MULTI: Adding /32 on-link route f= or route %s -> %s", s/for route/for ifconfig-push/ ? (like you wrote in the ipv6 case) http://gerrit.openvpn.net/c/openvpn/+/1192/comment/bed1bbae_c70f9021 : PS4, Line 1262: if (!primary) for clarity sake, shouldn't this be an "else if"? From a functional perspective it shouldn't make a difference. http://gerrit.openvpn.net/c/openvpn/+/1192/comment/8760fe93_46153291 : PS4, Line 1315: if (!primary) same http://gerrit.openvpn.net/c/openvpn/+/1192/comment/4a7ec029_5c48f9ed : PS4, Line 4353: */ I think we normally put the doxygen in one place only (i.e. header file), s= o this can go. -- 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 Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I83295e00d1a756dfa44050b0a4493095fb050fff Gerrit-Change-Number: 1192 Gerrit-PatchSet: 4 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:19:39 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --qhcSdNtJDtI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 4:Code-Review +1=

V= iew Change

12 comments:

  • Commit Message:

    • Patch Set #4, Line 7: Install host routes with onlink= scope iroutes for ifconfig-push routes

      to be honest, this title feels a bit cryp= tic =F0=9F=98=84
      maybe it can be simplified a little, since we have the = longer description below?

    • Patch Set #4, Line 10: of the configured device need t= o be added to the operating system to

      the subject for "need" is "A= dditional IP addresses", but I think you meant "a route to those = IPs", right? So this sentence should be massaged a little.

      Moreover, is `ifconfig-p= ush` really creating an "Additional IP" or is it just substitutin= g the IP assigned out of the server pool?

    • Patch Set #4, L= ine 15: iroute, will no= t work.

      Just= to make sure in 5 months from now we recall why we did this.

    =
  • Patchset:

    • Patch Set #4:

      patch looks good to me. I just have a few m= inor nitpicks..

  • F= ile doc/man-sections/server-options.rst:

  • File src/openvpn/dco.= c:

    • Patch Set #4, L= ine 729: /* Che= ck if we added the local network as /32 route as it was not in

      should we call it = "client network", as "local" seems to be something loca= l to the server

  • F= ile src/openvpn/multi.h:

  • File src/openvpn/multi.c:

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I83295e00d1a756dfa44050b0a44= 93095fb050fff
Gerrit-Change-Number: 1192
Gerrit-PatchSet: 4
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:19:39= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--qhcSdNtJDtI=--