From: "cron2 (Code Review)" Date: Sat, 11 Oct 2025 11:01:42 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: <9c5af6ee24f89ef055e371ba77dac3efbb07a134-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="q3WOcWvoMgY="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Make recursive routing check more fine-grained List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stipa Cc: plaisthos , flichtenheld , openvpn-devel --q3WOcWvoMgY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, stipa. cron2 has posted comments on this change by stipa. ( http://gerrit.openvpn.= net/c/openvpn/+/903?usp=3Demail ) Change subject: Make recursive routing check more fine-grained ...................................................................... Patch Set 3: Code-Review-1 (3 comments) Patchset: PS3: close :-) - one code rearrangement, one comment (in two places), then this = can move on. I have tested it, and the main difference is "it logs more"... but with som= e policy routing twists, we could end up at a setup where it makes a differ= ence. File src/openvpn/forward.c: http://gerrit.openvpn.net/c/openvpn/+/903/comment/72c2ad29_60c1bde2?usp=3De= mail : PS3, Line 1427: } This one should go up where it was, before the `openvpn_iphdr *pip` assignm= ent (because we do not need to look for "proto" if we already know the AFI = is different). For IPv6, the old order has been kept... http://gerrit.openvpn.net/c/openvpn/+/903/comment/18f831f2_47078c77?usp=3De= mail : PS3, Line 1432: uint16_t dst_port =3D ntohs(*(uint16_t *)(l4_hdr + = sizeof(uint16_t))); while at it, maybe add a comment about "TCP and UDP ports are at the same p= lace in the header, and other protocols can not happen here due to the lsi-= >proto check above"? Because my first thought was "why is he not using ope= nvpn_tcphdr here?"... -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/903?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: I6841e2f2a85275254a04e2d8ae3defe4420db8f6 Gerrit-Change-Number: 903 Gerrit-PatchSet: 3 Gerrit-Owner: stipa Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: stipa Gerrit-Comment-Date: Sat, 11 Oct 2025 11:01:42 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --q3WOcWvoMgY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos, stipa.

Patch set 3:Code-Review -1=

Vi= ew Change

3 comments:

  • Patchset:

    • Patch Set #3:

      close :-) - = one code rearrangement, one comment (in two places), then this can move on.=

      I have tested it, and the main difference is "it logs more".= .. but with some policy routing twists, we could end up at a setup where it= makes a difference.

  • File src/openvpn/forward.c:

    • Patch Set #3, Line 1427: }

      This one should go up where= it was, before the `openvpn_iphdr *pip` assignment (because we do not need= to look for "proto" if we already know the AFI is different).

      Pat= ch Set #3, Line 1432: = uint16_t dst_port =3D ntohs(*(uint16_t *)(l4_hdr + sizeof(uint16_t))= );

      while at it, maybe add a comment about "TCP and UDP port= s are at the same place in the header, and other protocols can not happen h= ere due to the lsi->proto check above"? Because my first thought w= as "why is he not using openvpn_tcphdr here?"...

To view, visit change 903. To unsubscribe, or for help writing mail fi= lters, visit set= tings.

=
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6841e2f2a85275254a04e2d8ae3= defe4420db8f6
Gerrit-Change-Number: 903
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <lstipakov@...277...>= ;
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-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: stipa <lstipakov@...1663...= .>
Gerrit-Comment-Date: Sat, 11 Oct 2025 11:01:42= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --q3WOcWvoMgY=--