From: "flichtenheld (Code Review)" Date: Tue, 17 Mar 2026 11:34:37 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net Message-ID: <8c4077fdd5ab95548386fc6b498582b7161e778a-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="9mxI7tjzqv8="; 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: , To: its_Giaan Cc: plaisthos , openvpn-devel --9mxI7tjzqv8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: its_Giaan, plaisthos. flichtenheld has posted comments on this change by its_Giaan. ( http://gerr= it.openvpn.net/c/openvpn/+/1521?usp=3Demail ) Change subject: Add support for user defined network namespace ...................................................................... Patch Set 3: Code-Review-1 (4 comments) File src/openvpn/networking_sitnl.c: http://gerrit.openvpn.net/c/openvpn/+/1521/comment/57e35eeb_25accb45?usp=3D= email : PS3, Line 638: SITNL_ADDATTR(&req.n, sizeof(req), IFLA_TARGET_NETNSID, = &netnsid, 4); Yes, sizeof(int) =3D=3D 4, but do we need to hard-code this here? This issue is all over the code, only noting the first instance I found. http://gerrit.openvpn.net/c/openvpn/+/1521/comment/cc6d4520_806e8ed9?usp=3D= email : PS3, Line 1172: netns_restore(orig); Why do we skip the restore on error? http://gerrit.openvpn.net/c/openvpn/+/1521/comment/6b59d92f_2d13ab27?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 File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/1521/comment/8524456a_c0f153f1?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 -- 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: its_Giaan Gerrit-Comment-Date: Tue, 17 Mar 2026 11:34:37 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --9mxI7tjzqv8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 3:Code-Review -1=

V= iew Change

4 comments:

  • File src/openvpn/networking_si= tnl.c:

    • Patch Set #3, Line 638: SITNL_ADDATTR(&req.n, sizeof(req), IFLA_TARGET_NETNSID, &netn= sid, 4);

      Yes, sizeof(int) =3D=3D 4, but do we need to hard-code = this here?

      This issue is all over the code, only noting the first insta= nce I found.

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

      Why do we skip the restore on error?

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

      Please switch to M_ERRNO as well<= /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 SITNL support i= s enabled" would sound better

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

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: its_Giaan <gianmarco@...1665...= 726...>
Gerrit-Comment-Date: Tue, 17 Mar 2026 11:34:37= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --9mxI7tjzqv8=--