From: "ordex (Code Review)" Date: Thu, 9 Mar 2023 14:21:34 +0000 In-Reply-To: References: Reply-To: a@...2181..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, lstipakov@...277... Message-ID: <68b85d5c6ff254e3fb51e76202292f56fd388d43-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ScbYP621bGE="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dco: don't use NetLink to exchange control packets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel@lists.sourceforge.net, Lev Stipakov , plaisthos --ScbYP621bGE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, plaisthos. ordex has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/28?usp=3Demail ) Change subject: dco: don't use NetLink to exchange control packets ...................................................................... Patch Set 4: (5 comments) File src/openvpn/forward.c: http://gerrit.openvpn.net/c/openvpn/+/28/comment/edcaa03e_7d307609 PS4, Line 1702: */ > Maybe move that comment (the part that still applies) to the new socket_i= s_dco_win method? hmm I'd add a different working because it is not about where to send contr= ol packets, but just checking if DCO is enabled on a link or not. but yeah,= we could definitely add some doc to socket_is_dco_win File src/openvpn/ovpn_dco_linux.h: http://gerrit.openvpn.net/c/openvpn/+/28/comment/be25a0d8_f403b236 PS4, Line 30: OVPN_CMD_NEW_PEER, > Didn't you want to add a length field for the residual TCP buffer and jus= t 0 here to avoid another A [=E2=80=A6] nah, adding a field does not break the API. We can add it later as it fixes= a separate issue. File src/openvpn/socket.h: http://gerrit.openvpn.net/c/openvpn/+/28/comment/fdce9d57_fe86f5e0 PS4, Line 1184: /* unified UDPv4 and UDPv6 and DCO (kernel adds siz= e header) */ > But here we remove the comment, even though it is also true here. again, why do we talk about size header if this is UDP? http://gerrit.openvpn.net/c/openvpn/+/28/comment/af827c3f_5e4fc158 PS4, Line 209: #define SF_DCO_WIN (1<<5) > Is using a flag really better than a bool here? this is Lev's doing :-D Technically we already have the socketflags bitfield, so re-using it is not= a bad idea and it is less invasive compared to adding a member that is use= d by one platform only. http://gerrit.openvpn.net/c/openvpn/+/28/comment/c793d3d9_3d0bef67 PS4, Line 1069: * will strip the length header */ > here the comment is kept (since it is still true) I am confused. this is UDP, how come we talk about length header? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/28?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: Ia1297c3ae9a28b188ed21ad21ae96fff3d02ee4d Gerrit-Change-Number: 28 Gerrit-PatchSet: 4 Gerrit-Owner: ordex Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: stipa Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Comment-Date: Thu, 09 Mar 2023 14:21:34 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: plaisthos Gerrit-MessageType: comment --ScbYP621bGE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, plaisthos.

View Ch= ange

5 comments:

    <= li style=3D"margin: 0; padding: 0;">

    File src/openvpn/forward.c:

    • Patch Set #4, Line 1702:= */

      = Maybe move that comment (the part that still applies) to the new socket_is_= dco_win method?

      hmm I'd add a different working because it is not about= where to send control packets, but just checking if DCO is enabled on a li= nk or not. but yeah, we could definitely add some doc to socket_is_dco_win<= /p>

  • File src/openvpn/= ovpn_dco_linux.h:

    • P= atch Set #4, Line 30: = OVPN_CMD_NEW_PEER,

      Didn't you want to add a lengt= h field for the residual TCP buffer and just 0 here to avoid another A [=E2= =80=A6]

      nah, adding a field does not break the API. We can add it later as = it fixes a separate issue.

  • File src/openvpn/socket.h:

To view, visit change 28. To unsubscribe, or for he= lp writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia1297c3ae9a28b188ed21ad21ae= 96fff3d02ee4d
Gerrit-Change-Number: 28
Gerrit-PatchSet: 4
Gerrit-Owner: ordex <a@...2181...>
Gerrit-Reviewer: cron2
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: stipa <lstipakov@...277...> <= /div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2
Gerrit-Comment-Date: Thu, 09 Mar 2023 14:21:34= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos <arne-openvp= n@...1227...>
Gerrit-MessageType: comment
--ScbYP621bGE=--