From: "plaisthos (Code Review)" Date: Wed, 17 Sep 2025 10:19:40 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641..., antonio@...2726... Message-ID: <9456158c5fe7fcc7e6faa1921c0c540599a7f3c6-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="I1qORfuz12U="; 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: , Cc: d12fk , flichtenheld , openvpn-devel --I1qORfuz12U= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, flichtenheld, ordex. plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c= /openvpn/+/1192?usp=3Demail ) Change subject: Install host routes with onlink scope iroutes for ifconfig-= push routes ...................................................................... Patch Set 4: (13 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/db3aa800_00ffb55b : 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 [=E2=80=A6] I tried to make it a bit easier to understand what is happening here. http://gerrit.openvpn.net/c/openvpn/+/1192/comment/8599ca43_fae0473b : 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 mean= t "a route to those IPs", r [=E2=80=A6] ifconfig-push can be used for both. To either pick a specific IP address of= the pool or to specify an address outside of the pool. But pool is not rea= lly correct here either as we really care about --ifconfig here and not ab= out --ifconfig-pool but --server typically sets to be the same. File doc/man-sections/server-options.rst: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/86c25c1c_10f45ae8 : PS2, Line 317: When DCO is enabled, OpenVPN will install a /32 route for = the local IP > Should this also be documented for `ifconfig-ipv6-push`? I already documented. You seem to have commented on version 2 after I uploa= ded v4. File doc/man-sections/server-options.rst: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/17f06b05_a6c4c15f : PS4, Line 318: address > s/for/to/ [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/1192/comment/6b55d068_07d64a50 : PS4, Line 330: When DCO is enabled, OpenVPN will install a /128 route for= the local IP > s/for/to/ Done File src/openvpn/dco.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/b545dc09_22feb536 : 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 loca= l to the server Done File src/openvpn/mroute.h: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/442f986d_d8c6b1d1 : PS2, Line 78: /* MRoute is an on link/scope address ather than a route */ > Typo r`ather` fixed already in v4. File src/openvpn/multi.h: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/413eed33_c08b5e0d : PS4, Line 672: * > forgot to document "mi" Done File src/openvpn/multi.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/f087988d_68fbfd53 : PS2, Line 4347: /** > Doxygen is already in the header file Done File src/openvpn/multi.c: http://gerrit.openvpn.net/c/openvpn/+/1192/comment/8e1814c1_f9785b38 : 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) Done http://gerrit.openvpn.net/c/openvpn/+/1192/comment/8e6958ef_74bd7374 : PS4, Line 1262: if (!primary) > for clarity sake, shouldn't this be an "else if"? [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/1192/comment/4d8bd6f0_6be3546b : PS4, Line 1315: if (!primary) > same Done http://gerrit.openvpn.net/c/openvpn/+/1192/comment/de75b4bc_4f184632 : PS4, Line 4353: */ > I think we normally put the doxygen in one place only (i.e. header file),= so this can go. Done -- 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: flichtenheld Gerrit-Attention: ordex Gerrit-Attention: d12fk Gerrit-Comment-Date: Wed, 17 Sep 2025 10:19:40 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: ordex Comment-In-Reply-To: d12fk Gerrit-MessageType: comment --I1qORfuz12U= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: d12fk, flichtenheld, ordex.

View = Change

13 comments:

    Commit Message:

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

      to be honest, this= title feels a bit cryptic =F0=9F=98=84 [=E2=80=A6]

      I tried to make it a bi= t easier to understand what is happening here.

    • Patch Set = #4, Line 10: of the con= figured device need to be added to the operating system to

      the subject for "need" is "Additional IP addresses&quo= t;, but I think you meant "a route to those IPs", r [=E2=80=A6]

      i= fconfig-push can be used for both. To either pick a specific IP address of = the pool or to specify an address outside of the pool. But pool is not real= ly correct here either as we really care about --ifconfig here and not abo= ut --ifconfig-pool but --server typically sets to be the same.

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

      • Patch= Set #2, Line 317: Wh= en DCO is enabled, OpenVPN will install a /32 route for the local IP=

        Should this also be documented for `ifconfig-ipv6-push`?

        I = already documented. You seem to have commented on version 2 after I uploade= d v4.

    • File doc/ma= n-sections/server-options.rst:

    • <= li style=3D"margin: 0; padding: 0;">

      File src/openvpn/dco.c:

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

        shoul= d we call it "client network", as "local" seems to be s= omething local to the server

        Done

    • File src/openvpn/mroute.h:

      • Patch Set #2, Line 78: /* MRoute is an on link/scope address ather than= a route */

        Typo r`ather`

        fixed already in v4.

    • File src/openvpn/multi.= h:

    • File src/openvpn/multi.c:

    • File src/openvpn/multi.c:

      • Patch Set #4, Line 1251: msg(D_MULTI_LOW, "MULTI: Adding = /32 on-link route for route %s -> %s",

        s/for = route/for ifconfig-push/ ? (like you wrote in the ipv6 case)

        Done

      • <= li style=3D"margin: 0; padding: 0 0 0 16px;">

        Patch Set #4, Line 1262: if (!primary)

        for clarity sake, should= n't this be an "else if"? [=E2=80=A6]

        Done

      • Patch Set #4, Line 1315: if (!primary)

        same

        Done

      • Patc= h Set #4, Line 4353: *= /

        I think we normally put the doxygen in one place on= ly (i.e. header file), so this can go.

        Done

    To vi= ew, visit change 1192. To unsubscribe, or for help writing mail filters, visit = 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: flichtenheld <frank@...2375...= 41...>
    Gerrit-Attention: ordex <antonio@...2726...= >
    Gerrit-Attention: d12fk <heiko@...515...>= ;
    Gerrit-Comment-Date: Wed, 17 Sep 2025 10:19:40= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ordex <antonio@...2787...= ...>
    Comment-In-Reply-To: d12fk <heiko@...515...= >
    Gerrit-MessageType: comment
    --I1qORfuz12U=--