From: "ordex (Code Review)" Date: Tue, 10 Mar 2026 13:42:28 +0000 In-Reply-To: References: Reply-To: antonio@...2726..., 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="o2My+K/sEWY="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: socket: restore per-connection lport override over global default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: its_Giaan Cc: plaisthos , openvpn-devel --o2My+K/sEWY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: its_Giaan, plaisthos. ordex has posted comments on this change by its_Giaan. ( http://gerrit.open= vpn.net/c/openvpn/+/1555?usp=3Demail ) Change subject: socket: restore per-connection lport override over global d= efault ...................................................................... Patch Set 1: Code-Review-1 (1 comment) File src/openvpn/socket.c: http://gerrit.openvpn.net/c/openvpn/+/1555/comment/29141286_321bf2c0?usp=3D= email : PS1, Line 1350: const char *port =3D (o->mode =3D=3D MODE_POINT_TO_POIN= T && o->ce.local_port_defined) similarly to what we do with o->ce.proto, can we have an if just below the = variables declaration, rather than having this longer/complex expression in= here? we could just have: if (o->mode =3D=3D MODE_POINT_TO_POINT && o->ce.local_port_defined) { port =3D o->ce.local_port } and keep the variable declaration/initialization as it was before. Maybe also add a comment of top of that if saying something like "if --lpor= t is specified in a client connection block we give it higher priority" -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1555?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: I7cf5d5ef7e2531f397ad97baf4663e3763072f6b Gerrit-Change-Number: 1555 Gerrit-PatchSet: 1 Gerrit-Owner: its_Giaan Gerrit-Reviewer: ordex Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: its_Giaan Gerrit-Comment-Date: Tue, 10 Mar 2026 13:42:28 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --o2My+K/sEWY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 1:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/socket.c:

    <= ul style=3D"list-style: none; padding: 0;">
  • Patch Set = #1, Line 1350: cons= t char *port =3D (o->mode =3D=3D MODE_POINT_TO_POINT && o->ce= .local_port_defined)

    similarly to what we do with o->ce.proto= , can we have an if just below the variables declaration, rather than havin= g this longer/complex expression in here?

    we could just have:

    if (o->mode =3D=3D MODE_POINT_TO_POINT && o->ce.local=
    _port_defined)
    {
    port =3D o->ce.local_port
    }

    and kee= p the variable declaration/initialization as it was before.
    Maybe also a= dd a comment of top of that if saying something like "if --lport is sp= ecified in a client connection block we give it higher priority"

To view, visit change 1555. To unsubscribe, or for help wr= iting mail filters, visit settings.

=
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7cf5d5ef7e2531f397ad97baf46= 63e3763072f6b
Gerrit-Change-Number: 1555
Gerrit-PatchSet: 1
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: ordex <antonio@...2726...&= gt;
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, 10 Mar 2026 13:42:28= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --o2My+K/sEWY=--