From: "flichtenheld (Code Review)"
Date: Thu, 26 Feb 2026 11:37:24 +0000
In-Reply-To:
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
gianmarco@...2726..., openvpn-devel@lists.sourceforge.net
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="wGcfiKB/RjI="; 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
--wGcfiKB/RjI=
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 2: Code-Review-2
(6 comments)
File src/openvpn/networking_sitnl.h:
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/bb1d8a23_20125c14?usp=3D=
email :
PS1, Line 98: int openvpn_if_nametoindex(const char *ifname, int netnsid);
> I'm not thrilled by the idea of having a function that does too much stuf=
f so I only moved the call [=E2=80=A6]
Done
File src/openvpn/networking_sitnl.c:
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/6558e3ae_b6c53a15?usp=3D=
email :
PS1, Line 841: goto err;
> M_ERRNO?
This changes it from effectively `M_FATAL | M_ERRNO` to `M_INFO | M_ERRNO`.=
That feels like a big change. If you want the error to be fatal, then just=
remove the code after the msg() call. If you do not want it to be fatal, t=
hen use `M_WARN | M_ERRNO`. `M_INFO` feels wrong.
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/6bd42df7_ac3131a1?usp=3D=
email :
PS1, Line 1002: err:
> SITNL_ADDATTR() requires a label
Acknowledged
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/623af649_3ec0329e?usp=3D=
email :
PS1, Line 1124: err:
> SITNL_ADDATTR() requires a label
Acknowledged
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/3c69f209_c727ee44?usp=3D=
email :
PS1, Line 1903: return netnsid;
> Addressed in http://gerrit.openvpn. [=E2=80=A6]
Done
File src/openvpn/networking_sitnl.c:
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/8758f6bd_4e04d658?usp=3D=
email :
PS2, Line 206: msg(M_ERRNO, "%s: Network namespace %s does not =
exist\n", __func__, path);
Hmm, why did you change `M_WARN` to `M_ERRNO`? That means the same as `M_IN=
FO | M_ERRNO` AFAICT. So I would have expected you to retain the `M_WARN`. =
`M_ERRNO` is not a level but an additional flag that ensures that strerr ou=
tput is appended.
--
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: 2
Gerrit-Owner: its_Giaan
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: its_Giaan
Gerrit-Comment-Date: Thu, 26 Feb 2026 11:37:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: its_Giaan
Comment-In-Reply-To: flichtenheld
--wGcfiKB/RjI=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: its_Giaan, plaisthos.
Patch set 2:Code-Review -2=
V=
iew Change
6 comments:
Done
File src/openvpn/ne=
tworking_sitnl.c:
Patch Set #1, Line 841: goto err;
M_ERRNO?
=
This changes it from effectively `M_FATAL | M_ERRNO` to `M_INFO | M_ER=
RNO`. That feels like a big change. If you want the error to be fatal, then=
just remove the code after the msg() call. If you do not want it to be fat=
al, then use `M_WARN | M_ERRNO`. `M_INFO` feels wrong.
Patch Set #1, Line 1002: err:
SITNL_ADDATTR() requires a labelAcknowledged
Patch Set #1, Lin=
e 1124: err:
=
SITNL_ADDATTR() requires a label
Acknowledged<=
/p>
Patch Set #1, Line 1903: return netnsid;
Addressed in http://gerrit.openvpn. [=E2=80=A6]
Done
File src/openvpn/ne=
tworking_sitnl.c:
Patch Set #2, Line 206: msg(M_ERRNO, "%s: Network namespace %s does =
not exist\n", __func__, path);
Hmm, why did you change `M_W=
ARN` to `M_ERRNO`? That means the same as `M_INFO | M_ERRNO` AFAICT. So I w=
ould have expected you to retain the `M_WARN`. `M_ERRNO` is not a level but=
an additional flag that ensures that strerr output is appended.
=
ul>
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: 2
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: Thu, 26 Feb 2026 11:37:24=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: its_Giaan <gianmarco@...220...=
..2726...>
Comment-In-Reply-To: flichtenheld <frank@...1186...=
.2641...>
=
--wGcfiKB/RjI=--