summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2022-11-17 15:30:22 +0000
committerHugo Landau <hlandau@openssl.org>2023-01-13 13:20:15 +0000
commit198d97c14e60ef112d443a619378233bd789e743 (patch)
treea30495741db1badee4df0a6db6fb4cd5c2f5bd4a
parentcbe7f586ad42b7cf6d16b11a6d614798df0a5d29 (diff)
QUIC: Add miscellaneous QUIC constants
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19703)
-rw-r--r--include/internal/quic_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/internal/quic_types.h b/include/internal/quic_types.h
index 95c0508624..7e1a3c2c6a 100644
--- a/include/internal/quic_types.h
+++ b/include/internal/quic_types.h
@@ -84,4 +84,11 @@ static ossl_unused ossl_inline int ossl_quic_conn_id_eq(const QUIC_CONN_ID *a,
#define QUIC_DEFAULT_ACK_DELAY_EXP 3
#define QUIC_MAX_ACK_DELAY_EXP 20
+#define QUIC_DEFAULT_MAX_ACK_DELAY 25
+
+#define QUIC_MIN_ACTIVE_CONN_ID_LIMIT 2
+
+/* Arbitrary choice of default idle timeout (not an RFC value). */
+#define QUIC_DEFAULT_IDLE_TIMEOUT 30000
+
#endif