From: "its_Giaan (Code Review)"
Date: Mon, 13 Apr 2026 15:20:05 +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="S7wsWix0vz4="; charset=UTF-8
Subject: [Openvpn-devel] [S] Change in openvpn[master]: Enable per-socket
bind_dev via --local
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: flichtenheld , plaisthos , openvpn-devel
--S7wsWix0vz4=
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/+/1625?usp=3Demail )
Change subject: Enable per-socket bind_dev via --local
......................................................................
Patch Set 2:
(4 comments)
File doc/man-sections/link-options.rst:
http://gerrit.openvpn.net/c/openvpn/+/1625/comment/deef9428_ebae9b5d?usp=3D=
email :
PS1, Line 114: local host|* [port] [protocol] [bind device]
> Should also add a reference to `--bind-dev` somewhere in the documentatio=
n below. [=E2=80=A6]
I did it only for --bind-dev at the moment, if you're fine with that will d=
o the same way for --port and --proto in a different patch.
File src/openvpn/options.c:
http://gerrit.openvpn.net/c/openvpn/+/1625/comment/63bf8009_24bcad5f?usp=3D=
email :
PS1, Line 6010: msg(M_WARN | M_ERRNO, "Note: bind_dev is ignore=
d on non-Linux systems");
> No syscalls involved here, so M_ERRNO makes no sense
Done
http://gerrit.openvpn.net/c/openvpn/+/1625/comment/d7b038f0_ac763769?usp=3D=
email :
PS1, Line 6541: #if defined(TARGET_LINUX)
> Why this random change?
Just a leftover, initially this patch also aimed to enable bind-dev for fre=
ebsd, then I decided to do that in a different patch.
File src/openvpn/socket.c:
http://gerrit.openvpn.net/c/openvpn/+/1625/comment/cf628b0d_3b3678c2?usp=3D=
email :
PS1, Line 1413: /* bind_dev from local_list will trump on the global op=
tion. */
> Remove "on", remove the trailing full stop
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1625?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: I6319c951327a9b994ffae0ba35270b0887455203
Gerrit-Change-Number: 1625
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Mon, 13 Apr 2026 15:20:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld
--S7wsWix0vz4=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld, plaisthos.
View =
Change
4 comments:
I did it only for --bind-dev at the momen=
t, if you're fine with that will do the same way for --port and --proto=
in a different patch.
File src/openvpn/options.c:
Patch Set #1, Line 6010: msg(M_WARN | M_ERRNO, "Note:=
bind_dev is ignored on non-Linux systems");
No =
syscalls involved here, so M_ERRNO makes no sense
Done
Patch Set #1, Line 6541: #if defined(TARGET_LINUX)
Why this random change?
Just a leftover, initially this=
patch also aimed to enable bind-dev for freebsd, then I decided to do that=
in a different patch.
File src/openvpn/socket.c:
To vi=
ew, visit change 1625. To unsubscribe, or for help writing mail filters, visit =
settings.
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6319c951327a9b994ffae0ba352=
70b0887455203
Gerrit-Change-Number: 1625
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: flichtenheld <frank@...2375...=
41...>
Gerrit-Comment-Date: Mon, 13 Apr 2026 15:20:05=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...=
.2641...>
=
--S7wsWix0vz4=--