]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Correctly calculate packet id size when epoch packet format is in use master
authorArne Schwabe <arne@rfc2549.org>
Wed, 29 Jul 2026 06:41:52 +0000 (08:41 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 29 Jul 2026 16:28:20 +0000 (18:28 +0200)
commit2c8baca423b236ab12f7519b68ed88b4a709d0d1
treede8ccaa586178b9583d6c8e5a49ed1bb5d8076d5
parent74c2a965d39fea89c2fe392663eb699fb1324611
Correctly calculate packet id size when epoch packet format is in use

The code assumed that always when tls mode (without CFB/OFB) is in use
that the packet size is 4 bytes. With epoch packet format is incorrect
as that uses 64 bit.

Even thought packet_id_long_form has a the same size (8 byte) it is not
the same header format (32 bit time + 32 bit IV) as the epoch
format (16 bit epoch + 48 IV). Use a simple sizeof(uint64_t) to
avoid suggesting that it might be the same.

Github: closes OpenVPN/openvpn#1074

Change-Id: I5b862eabe032eb4d2229ff5b2f4f6af7406f6f4e
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@mandelbit.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1829
Message-Id: <20260729064158.15731-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg37983.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/mtu.c