From: "plaisthos (Code Review)" Date: Sat, 4 Jan 2025 22:52:09 +0000 References: Reply-To: 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="dPT02GnWBHw="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: fixup! Add methods to read/write packet ids for epoch data List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --dPT02GnWBHw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/849?usp=3Demail to review the following change. Change subject: fixup! Add methods to read/write packet ids for epoch data ...................................................................... fixup! Add methods to read/write packet ids for epoch data Change-Id: Ie60a0a427ca810e28ab9049a8599510423f79bc1 --- M tests/unit_tests/openvpn/test_packet_id.c 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/49/849/1 diff --git a/tests/unit_tests/openvpn/test_packet_id.c b/tests/unit_tests/o= penvpn/test_packet_id.c index a24580b..312a6b3d 100644 --- a/tests/unit_tests/openvpn/test_packet_id.c +++ b/tests/unit_tests/openvpn/test_packet_id.c @@ -238,7 +238,8 @@ uint8_t expected_header_48[8] =3D { 0xff, 0xfe, 0xfa, 0x07, 0x9a, 0xb9= , 0xd2, 0xe9}; assert_memory_equal(BPTR(&buf_48), expected_header_48, 8); - /* test writing/checking the 48 bit overflow */ + /* test writing/checking the 48 bit per epoch packet counter + * overflow */ data->pis.id =3D 0xfffffffffffe; struct buffer buf_of =3D alloc_buf_gc(128, &data->gc); assert_true(packet_id_write_epoch(&data->pis, 0xf00f, &buf_of)); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/849?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: Ie60a0a427ca810e28ab9049a8599510423f79bc1 Gerrit-Change-Number: 849 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --dPT02GnWBHw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

fixup! Add methods to read/write packet ids for epoch data
Change-Id: Ie60a0a427ca810e28ab9049a8599510423f79bc1
---
M tests= /unit_tests/openvpn/test_packet_id.c
1 file changed, 2 insertions(+), 1 = deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/=
changes/49/849/1
diff --git a/tests/unit_tests/openvpn/test_packet_=
id.c b/tests/unit_tests/openvpn/test_packet_id.c
index a245= 80b..312a6b3d 100644
--- a/tests/unit_tests/openvpn/test_pa= cket_id.c
+++ b/tests/unit_tests/openvpn/test_packet_id.c
@@ -238,7 +238,8 @@
uint8_t expected_he= ader_48[8] =3D { 0xff, 0xfe, 0xfa, 0x07, 0x9a, 0xb9, 0xd2, 0xe9}; assert_memory_equal(BPTR(&buf_48), expected_header_48, 8);<= /span>

- = /* test writing/checking the 48 bit overflow */
+ /* test writing/checking the 48 bit per epo= ch packet counter
+ = * overflow */
data->pis.id =3D 0xfffffffffffe;
struct buffer buf_of =3D alloc_buf_gc(128, &data-&g= t;gc);
assert_true(packet_id_write_epoch(&data->= ;pis, 0xf00f, &buf_of));

To view, v= isit chan= ge 849. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie60a0a427ca810e28ab9049a859= 9510423f79bc1
Gerrit-Change-Number: 849
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--dPT02GnWBHw=--