From: "its_Giaan (Code Review)" Date: Tue, 5 Aug 2025 07:56:28 +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="bHABOEz2lFE="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: multipeer: introduce asymmetric peer-id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: plaisthos , flichtenheld , openvpn-devel --bHABOEz2lFE= 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. ( http://gerrit.openvpn.net/c= /openvpn/+/1089?usp=3Demail ) Change subject: multipeer: introduce asymmetric peer-id ...................................................................... Patch Set 2: (5 comments) File src/openvpn/multi.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/d20f4c46_6ddf1dff : PS2, Line 1816: uint32_t peer_id =3D extract_asymmetric_peer_id(pee= r_info); > I am somehow missing the client side/p2p that does the same and also call= s extract_asymmetric_peer_i [=E2=80=A6] Acknowledged File src/openvpn/push.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/dfe60a3c_ec0e72ed : PS2, Line 657: tls_multi->rx_peer_id); > This will instruct the client to use that peer-id on both send/receive. [= =E2=80=A6] ok but what about the mapping? we're using the current peer-id assigned by = the server as index to keep track of the instances, should we implement a d= ifferent kind of mapping? Of curse on server side I will prepend to the buf= fer the tx_peer_id (if supported) along with the opcode but yeah the client= will keep prepending the old one. File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/7a3b0954_5bc84265 : PS2, Line 2043: buf_printf(&out, "ID=3D%x\n", peer_id); > This need to be guarded by the actual DCO capability. [=E2=80=A6] Acknowledged File src/openvpn/ssl_ncp.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/1f01bfff_92f0595e : PS2, Line 431: multi->tx_peer_id =3D 2033; > Why the hardcoded 2033 here? Shouldn't be also 0x76706e; /* 'v' 'p' 'n' = */ ? yeah that was just for testing purposes, will fix this. http://gerrit.openvpn.net/c/openvpn/+/1089/comment/32efaf15_5871df14 : PS2, Line 474: multi->rx_peer_id =3D (peerid[0] << 16) + (p= eerid[1] << 8) + peerid[2]; > Shouldn't there be code here So you're saying we should keep the peer_id field and also the rx_peer_id a= nd tx_peer_id but use them only if supported? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1089?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: I0a13ee90b6706acf20eabcee3bab3f2dff639bf9 Gerrit-Change-Number: 1089 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: Tue, 05 Aug 2025 07:56:28 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: plaisthos Gerrit-MessageType: comment --bHABOEz2lFE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

View = Change

5 comments:

To view, visit change 1089. To unsubscribe, or = for help writing mail filters, visit settings.

<= /div>
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0a13ee90b6706acf20eabcee3ba= b3f2dff639bf9
Gerrit-Change-Number: 1089
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: Tue, 05 Aug 2025 07:56:28= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos <arne-openvp= n@...1227...>
Gerrit-MessageType: comment
--bHABOEz2lFE=--