From: "its_Giaan (Code Review)"
Date: Wed, 18 Mar 2026 16:15:32 +0000
In-Reply-To:
References:
Reply-To: gianmarco@...2726..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="hFzYMLHkcFs="; 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
--hFzYMLHkcFs=
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 5:
(12 comments)
File src/openvpn/networking_sitnl.c:
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/167513fa_e7d6d350?usp=3D=
email :
PS4, Line 771: if (ret < 0)
> Redundant code.
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/7eddcf9c_aaa945e8?usp=3D=
email :
PS4, Line 819: if (ret < 0)
> redundant code
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/537e9aad_7a6ad766?usp=3D=
email :
PS4, Line 1137: netns_restore(orig);
> instead just move the code around so the switch happens after the check
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/f7070273_3fab86e7?usp=3D=
email :
PS4, Line 1169: if (ret < 0)
> redundant code
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/670cfaf3_d7b151a8?usp=3D=
email :
PS4, Line 1211: netns_restore(orig);
> restore needs to be after err:
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/cb3e6ac1_b795495f?usp=3D=
email :
PS4, Line 1247: netns_restore(orig);
> restore needs to be after err:
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/1ae478b0_27bb0047?usp=3D=
email :
PS4, Line 1283: netns_restore(orig);
> move the netns_switch to after the parameter checks
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/0535a454_21dfab59?usp=3D=
email :
PS4, Line 1321: netns_restore(orig);
> needs to be after err:
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/114af87d_61ddd36d?usp=3D=
email :
PS4, Line 1416: netns_restore(orig);
> move switch to after parameter check
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/c68c9df0_09f15400?usp=3D=
email :
PS4, Line 1464: netns_restore(orig);
> after err:
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/c933e7c7_5cf78d92?usp=3D=
email :
PS4, Line 1952: netns_restore(orig);
> restore before switch
Done
http://gerrit.openvpn.net/c/openvpn/+/1521/comment/21b10505_c0d56d20?usp=3D=
email :
PS4, Line 1969: if (ret < 0)
> redundant code
Done
--
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: 5
Gerrit-Owner: its_Giaan
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Wed, 18 Mar 2026 16:15:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld
--hFzYMLHkcFs=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld, plaisthos.
View =
Change
12 comments:
D=
one
Patch Set #4, Line 819: if (ret < 0)
redundant code
Done
Patc=
h Set #4, Line 1137: =
netns_restore(orig);
instead just move the code=
around so the switch happens after the check
Done
Patch Set #4, Line 1169: if (ret < 0)
redundan=
t code
Done
Patch Set #4, Li=
ne 1211: netns_rest=
ore(orig);
restore needs to be after err:
Done
Patch Set #4, Line 1247: netns_restore(orig);
restore needs to be after err:
Done
=
li>Patch Set #4, Line 1283: netns_restore(orig);
move the netns_switch to after the parameter checks
=
Done
Patch Set #4, Line 1321: netns_restore(orig);=
p>
needs to be after err:
Done
Patch Set #4, Line 1416: netns_restore(orig);
move=
switch to after parameter check
Done
Patch Set #4, Line 1464: netns_restore(orig);
after err:Done
<=
p style=3D"margin-bottom: 4px;">Patch Set #4, Line 1952:<=
/a> netns_restore(o=
rig);restore before switch
Done
Patch Set #4, Line 1969: if (ret < 0)
red=
undant code
Done
To view, visit =
change 1=
521. 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: 5
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: Wed, 18 Mar 2026 16:15:32=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...=
.2641...>
=
--hFzYMLHkcFs=--