From f4c5c7bdbb9abffe7ce3c104153e2f4d72361fcc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 25 Aug 2021 16:11:00 +0200 Subject: [PATCH] MINOR: quic: Wrong short packet minimum length There is no destination connection ID length field in the short packet header. --- include/haproxy/xprt_quic-t.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index 022768c4f..95d96f64d 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -68,9 +68,9 @@ #define QUIC_LONG_PACKET_MINLEN 7 /* * All QUIC packets with short headers are made of at least (in bytes): - * flags(1), DCID length(1), DCID(0..20) + * flags(1), DCID(0..20) */ -#define QUIC_SHORT_PACKET_MINLEN 2 +#define QUIC_SHORT_PACKET_MINLEN 1 /* Byte 0 of QUIC packets. */ #define QUIC_PACKET_LONG_HEADER_BIT 0x80 /* Long header format if set, short if not. */ #define QUIC_PACKET_FIXED_BIT 0x40 /* Must always be set for all the headers. */ -- 2.47.3