aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/ngtcp2/lib/ngtcp2_pkt.h
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2025-03-10 19:42:22 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2025-03-10 19:56:23 +0300
commitfc6cd7d48282fba73b60215b3fd31fc0a8825982 (patch)
treebcb36b06098e700fd726b6b19c89e6fae7d429e2 /contrib/libs/ngtcp2/lib/ngtcp2_pkt.h
parent21c1cc59ef7d0910313ef39ca737c78380ef3ec3 (diff)
downloadydb-fc6cd7d48282fba73b60215b3fd31fc0a8825982.tar.gz
Update contrib/libs/ngtcp2 to 1.11.0
commit_hash:3beea54841aa142a4af33f802d5bdb7d6010b68d
Diffstat (limited to 'contrib/libs/ngtcp2/lib/ngtcp2_pkt.h')
-rw-r--r--contrib/libs/ngtcp2/lib/ngtcp2_pkt.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/libs/ngtcp2/lib/ngtcp2_pkt.h b/contrib/libs/ngtcp2/lib/ngtcp2_pkt.h
index 86ebecef7b..756076e7a7 100644
--- a/contrib/libs/ngtcp2/lib/ngtcp2_pkt.h
+++ b/contrib/libs/ngtcp2/lib/ngtcp2_pkt.h
@@ -57,6 +57,10 @@
#define NGTCP2_STREAM_LEN_BIT 0x02
#define NGTCP2_STREAM_OFF_BIT 0x04
+/* NGTCP2_MIN_QUIC_PKTLEN is the minimum length of a valid QUIC
+ packet. */
+#define NGTCP2_MIN_QUIC_PKTLEN 21
+
/* NGTCP2_STREAM_OVERHEAD is the maximum number of bytes required
other than payload for STREAM frame. That is from type field to
the beginning of the payload. */
@@ -407,13 +411,11 @@ void ngtcp2_pkt_chain_del(ngtcp2_pkt_chain *pc, const ngtcp2_mem *mem);
* |dcid| and/or |scid| is NULL, Destination Connection ID and/or
* Source Connection ID of |hd| is empty respectively. |pkt_numlen|
* is the number of bytes used to encode |pkt_num| and either 1, 2, or
- * 4. |version| is QUIC version for long header. |len| is the length
- * field of Initial, 0RTT, and Handshake packets.
+ * 4. |version| is QUIC version for long header.
*/
void ngtcp2_pkt_hd_init(ngtcp2_pkt_hd *hd, uint8_t flags, uint8_t type,
const ngtcp2_cid *dcid, const ngtcp2_cid *scid,
- int64_t pkt_num, size_t pkt_numlen, uint32_t version,
- size_t len);
+ int64_t pkt_num, size_t pkt_numlen, uint32_t version);
/*
* ngtcp2_pkt_encode_hd_long encodes |hd| as QUIC long header into