From: "its_Giaan (Code Review)" Date: Tue, 17 Mar 2026 16:22:34 +0000 In-Reply-To: References: Reply-To: gianmarco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <822ed43d32a275cb3f0633e4157d7db47e54c40d-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="+1R0pTbKENM="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: Add support for user defined network namespace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: flichtenheld , plaisthos , openvpn-devel --+1R0pTbKENM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. its_Giaan has posted comments on this change by its_Giaan. ( http://gerrit.= openvpn.net/c/openvpn/+/1521?usp=3Demail ) Change subject: Add support for user defined network namespace ...................................................................... Patch Set 3: (4 comments) File src/openvpn/networking_sitnl.c: http://gerrit.openvpn.net/c/openvpn/+/1521/comment/229b5b69_31a021e5?usp=3D= email : PS3, Line 638: SITNL_ADDATTR(&req.n, sizeof(req), IFLA_TARGET_NETNSID, = &netnsid, 4); > I think we should seriously consider adding functions that are type like = SITNL_ADDATTR_U32 and so on [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/1521/comment/d0985676_7aa42374?usp=3D= email : PS3, Line 1172: netns_restore(orig); > Why do we skip the restore on error? Forgetfulness http://gerrit.openvpn.net/c/openvpn/+/1521/comment/80003e3d_ecd05fe7?usp=3D= email : PS3, Line 1347: msg(M_WARN, "%s: cannot get ifindex for %s: %s", __= func__, np(iface), strerror(errno)); > Please switch to M_ERRNO as well Done File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/1521/comment/9bf0c4d3_06bedd67?usp=3D= email : PS3, Line 6461: msg(M_WARN, "NOTE: --netns is supported only on Lin= ux when SITNL is built-in"); > I think "when SITNL support is enabled" would sound better I went for "is supported only on Linux when compiled with SITNL" -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1521?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: I8b0d1cad7062856abcc40c4e16ec93b45295bbd3 Gerrit-Change-Number: 1521 Gerrit-PatchSet: 3 Gerrit-Owner: its_Giaan Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 17 Mar 2026 16:22:34 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: plaisthos Comment-In-Reply-To: flichtenheld --+1R0pTbKENM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

4 comments:

  • File src/openvpn/networking_sitnl.= c:

    • Pat= ch Set #3, Line 638: = SITNL_ADDATTR(&req.n, sizeof(req), IFLA_TARGET_NETNSID, &netnsid,= 4);

      I think we should seriously consider adding func= tions that are type like SITNL_ADDATTR_U32 and so on [=E2=80=A6]

      Done

    • Patch Set #3, Line 1172: netns_restore(orig);

      Why do we skip the restore on error?

      Forg= etfulness

    • Patch Set #3, Line 1347: msg(M_WARN, "%s: can= not get ifindex for %s: %s", __func__, np(iface), strerror(errno));

      Please switch to M_ERRNO as well

      Done<= /p>

  • File src/openvpn/= options.c:

    • Patch Set #3, Line 6461: msg(M_WARN, "NOTE: --netns is supported only on Linux w= hen SITNL is built-in");

      I think "when SITN= L support is enabled" would sound better

      I went for &= quot;is supported only on Linux when compiled with SITNL"

    To view, visit change 1521. To unsubscribe, or for help writing m= ail filters, visit settings.

    <= /div>
    Gerrit-MessageType: comment
    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I8b0d1cad7062856abcc40c4e16e= c93b45295bbd3
    Gerrit-Change-Number: 1521
    Gerrit-PatchSet: 3
    Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
    Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
    Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
    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, 17 Mar 2026 16:22:34= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: plaisthos <arne-openvp= n@...1227...>
    Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
    = --+1R0pTbKENM=--