From: "its_Giaan (Code Review)"
Date: Wed, 5 Mar 2025 16:59:21 +0000
In-Reply-To:
References:
Reply-To: gianmarco@...2726..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
gert@...1296..., a@...2181...
Message-ID: <020299e7dcfa6627b70ae6c7114f5e0e17959bfd-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="R64mgdF3vvs="; charset=UTF-8
Subject: [Openvpn-devel] [L] Change in openvpn[master]: Add support for
simultaneous use of UDP and TCP sockets
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: cron2 , flichtenheld , plaisthos , openvpn-devel
--R64mgdF3vvs=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, ordex, plaisthos.
its_Giaan has posted comments on this change. ( http://gerrit.openvpn.net/c=
/openvpn/+/764?usp=3Demail )
Change subject: Add support for simultaneous use of UDP and TCP sockets
......................................................................
Patch Set 19:
(10 comments)
File doc/man-sections/link-options.rst:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/bb017af8_98251213 :
PS18, Line 122:
> I think we also should mention the default values, something like [=E2=80=
=A6]
Done, see options_postprocess_mutate_le(), now in a case like:
local * 1000 tcp
remote 1.2.3.4 1194 udp
Only the remote proto will be used
File src/openvpn/mudp.c:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/a19e31fc_278f6bab :
PS18, Line 335: const unsigned int status =3D m->multi_io->udp_flags;
> I do wonder why a separate `udp_flags` field for UDP has been introduced.=
[=E2=80=A6]
As said in a comment above, the multi_io has no event_set_status member and=
since UDP require that I decided to call it udp_flags since it is UDP spec=
ific.
File src/openvpn/multi.h:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/9b01bf4b_df045866 :
PS19, Line 256: * on the transport protocols:
> The wording is a bit odd... [=E2=80=A6]
Done
File src/openvpn/multi_io.c:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/8d2cfb2d_b69e0502 :
PS19, Line 145: !proto_is_dgram(mi->context.c2.link_sock=
ets[0]->info.proto) ? &mi->tcp_rwflags : NULL);
> I like that this is being moved to a dedicated function :-) - I would sty=
le it differently, though, [=E2=80=A6]
TCP ev_arg are usually of type 'mi' while UDP are of type 'link_sockets'.
http://gerrit.openvpn.net/c/openvpn/+/764/comment/37cd169e_1703017b :
PS19, Line 491: }
> since this is the same `if (mi)` now, it could go outside one level, avoi=
d code duplication... [=E2=80=A6]
Done
File src/openvpn/openvpn.h:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/1ddc2f85_7dceb3e5 :
PS19, Line 219: * tunnel_point_to_point(), \c tunnel_server() \c
> an `and` is missing before `tunnel_server()` (since it's only these 2 fu=
nctions now)
Done
File src/openvpn/options.c:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/1e2cfd64_b9b578a8 :
PS18, Line 3351: if (!le->proto)
> it says `acknowledged` but we still have no comment for `proto`? ;-)
I've also added a check to avoid proto bindings on client side
http://gerrit.openvpn.net/c/openvpn/+/764/comment/8fe0a241_34255d82 :
PS18, Line 3839:
> so what does "Acknowledged" mean, here? "Will be handled in a future pat=
ch"?
Done
File src/openvpn/options.c:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/bc60012a_289c4f91 :
PS19, Line 1747: o->local_list->array[i]->port);
> I think this should show `proto` now as well, otherwise the log is a bit =
hard to read if trying to u [=E2=80=A6]
Done
File src/openvpn/socket.c:
http://gerrit.openvpn.net/c/openvpn/+/764/comment/80bb9647_fc94b5d2 :
PS18, Line 1914: ASSERT(c->c2.link_sockets[sock_index]);
> maybe gerrit is playing tricks on me, but the `ASSERT()` seems to be stil=
l here
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/764?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I31bbf87e4e568021445c7512ecefadfd4a69b363
Gerrit-Change-Number: 764
Gerrit-PatchSet: 19
Gerrit-Owner: its_Giaan
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-CC: ordex
Gerrit-Attention: plaisthos
Gerrit-Attention: cron2
Gerrit-Attention: ordex
Gerrit-Comment-Date: Wed, 05 Mar 2025 16:59:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2
Comment-In-Reply-To: its_Giaan
Gerrit-MessageType: comment
--R64mgdF3vvs=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, ordex, plaisthos.
View C=
hange
10 comments:
Done, see options_postprocess_mutate_le(), now in a case lik=
e:
local * 10=
00 tcp
remote 1.2.3.4 1194 udp
Only the remote proto will be used
<=
li style=3D"margin: 0; padding: 0;">File src/openvpn/mudp.c:
File src/openvpn/=
multi.h:
F=
ile src/openvpn/multi_io.c:
=
Patch Set #19, Line 145: !proto_is_dgram(mi->context.c2.link_socket=
s[0]->info.proto) ? &mi->tcp_rwflags : NULL);
I like that this is being moved to a dedicated function :-) - I would st=
yle it differently, though, [=E2=80=A6]
TCP ev_arg are usually of type =
9;mi' while UDP are of type 'link_sockets'.
=
Patch Set #19, Line 491: }
since this is the same `i=
f (mi)` now, it could go outside one level, avoid code duplication... [=E2=
=80=A6]
Done
File=
src/openvpn/openvpn.h:
=
Patch Set #19, Line 219: * tunnel_point_to_point(), \c tunnel_server() \c
an `and` is missing before `tunnel_server()` (since it's only thes=
e 2 functions now)
Done
File src/openvpn/options.c:
Patch Set #18, Line 3351: if (!le->proto)
it says `ac=
knowledged` but we still have no comment for `proto`? ;-)
<=
p style=3D"white-space: pre-wrap; word-wrap: break-word;">I've also add=
ed a check to avoid proto bindings on client sidePatch Se=
t #18, Line 3839:
so what does "Acknowledged" mean, here? "=
Will be handled in a future patch"?
Done
File src/openvpn/options.c:
File=
src/openvpn/socket.c:
<=
a href=3D"http://gerrit.openvpn.net/c/openvpn/+/764/comment/80bb9647_fc94b5=
d2">Patch Set #18, Line 1914: ASSERT(c->c2.link_sockets[sock_index]);
maybe gerrit is playing tricks on me, but the `ASSERT()` seems to be still=
here
Done
To view, visit change 764. To unsubscribe, =
or for help writing mail filters, visit settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I31bbf87e4e568021445c7512ece=
fadfd4a69b363
Gerrit-Change-Number: 764
Gerrit-PatchSet: 19
Gerrit-Owner: its_Giaan <gianmarco@...2786...=
..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-CC: ordex <a@...2181...>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: cron2 <gert@...1296...>=
;
Gerrit-Attention: ordex <a@...2181...> <=
/div>
Gerrit-Comment-Date: Wed, 05 Mar 2025 16:59:21=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...=
>
Comment-In-Reply-To: its_Giaan <gianmarco@...220...=
..2726...>
Gerrit-MessageType: comment
--R64mgdF3vvs=--