Define largest value to ensure that the sizeof(type) does not change
@@ -288,7 +288,8 @@ typedef enum {
NGTCP2_FRAME_PATH_CHALLENGE = 0x1a,
NGTCP2_FRAME_PATH_RESPONSE = 0x1b,
NGTCP2_FRAME_CONNECTION_CLOSE = 0x1c,
- NGTCP2_FRAME_CONNECTION_CLOSE_APP = 0x1d
+ NGTCP2_FRAME_CONNECTION_CLOSE_APP = 0x1d,
+ NGTCP2_FRAME_TYPE_MAX = UINT64_MAX
} ngtcp2_frame_type;
typedef enum {
@@ -304,7 +305,8 @@ typedef enum {
NGTCP2_PROTOCOL_VIOLATION = 0xau,
NGTCP2_INVALID_MIGRATION = 0xcu,
NGTCP2_CRYPTO_BUFFER_EXCEEDED = 0xdu,
- NGTCP2_CRYPTO_ERROR = 0x100
+ NGTCP2_CRYPTO_ERROR = 0x100,
+ NGTCP2_TRANSPORT_ERROR_MAX = UINT64_MAX
} ngtcp2_transport_error;
typedef enum {
@@ -579,7 +581,8 @@ typedef enum {
NGTCP2_TRANSPORT_PARAM_MAX_ACK_DELAY = 0x000b,
NGTCP2_TRANSPORT_PARAM_DISABLE_MIGRATION = 0x000c,
NGTCP2_TRANSPORT_PARAM_PREFERRED_ADDRESS = 0x000d,
- NGTCP2_TRANSPORT_PARAM_ACTIVE_CONNECTION_ID_LIMIT = 0x000e
+ NGTCP2_TRANSPORT_PARAM_ACTIVE_CONNECTION_ID_LIMIT = 0x000e,
+ NGTCP2_TRANSPORT_PARAM_ID_MAX = UINT16_MAX
} ngtcp2_transport_param_id;
typedef enum {
