projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca9d32c
)
MINOR: quic: Wrong short packet minimum length
author
Frédéric Lécaille
<flecaille@haproxy.com>
Wed, 25 Aug 2021 14:11:00 +0000
(16:11 +0200)
committer
Amaury Denoyelle
<adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000
(15:27 +0200)
There is no destination connection ID length field in the short packet header.
include/haproxy/xprt_quic-t.h
patch
|
blob
|
history
diff --git
a/include/haproxy/xprt_quic-t.h
b/include/haproxy/xprt_quic-t.h
index
022768c
..
95d96f6
100644
(file)
--- 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. */