Commit 8812e4d26f for bind

commit 8812e4d26f4e7366bc7863496fb49f5d4c8cf838
Author: Aydın Mercan <aydin@isc.org>
Date:   Tue Sep 22 10:56:52 2026 +0300

    Add the QUIC packet limit constant

    This constant specified the size of the buffer required to hold any QUIC
    packet consumed or generated by the state machine.

diff --git a/lib/isc/include/isc/quic.h b/lib/isc/include/isc/quic.h
index da8cd698fa..9d7f84bbf6 100644
--- a/lib/isc/include/isc/quic.h
+++ b/lib/isc/include/isc/quic.h
@@ -49,6 +49,14 @@
  */
 #define ISC_QUIC_STATELESS_TOKEN_LENGTH 16

+/**
+ * \brief
+ * Maximum size of UDP packet currently supported for use in QUIC connections.
+ *
+ * Specified in RFC9000, Section 14.2.
+ */
+#define ISC_QUIC_PACKET_MAX_LENGTH 1200
+
 /**
  * \brief
  * Infinite timeout or an invalid timestamp.
diff --git a/lib/isc/quic/connection.c b/lib/isc/quic/connection.c
index 830e00e1c5..ebdb10903c 100644
--- a/lib/isc/quic/connection.c
+++ b/lib/isc/quic/connection.c
@@ -528,6 +528,9 @@ static const uint8_t salt_v2[] = {
 	0x81, 0xBE, 0x6E, 0x26, 0x9D, 0xCB, 0xF9, 0xBD, 0x2E, 0xD9,
 };

+STATIC_ASSERT(ISC_QUIC_PACKET_MAX_LENGTH <= NGTCP2_MAX_UDP_PAYLOAD_SIZE,
+	      "QUIC maximum packet size greater than ngtcp2's own limit");
+
 static void
 destroy(isc_quic_conn_t *conn) {
 	isc_mem_t *mctx;