lsquic_sizes.h revision 7d09751d
1/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ 2#ifndef LSQUIC_SIZES_H 3#define LSQUIC_SIZES_H 1 4 5#define IQUIC_SRESET_TOKEN_SZ 16u 6 7#define IQUIC_MIN_SRST_RANDOM_BYTES (1u /* First byte: 01XX XXXX */ \ 8 + 4u /* Random bytes */) 9 10#define IQUIC_MIN_SRST_SIZE (IQUIC_MIN_SRST_RANDOM_BYTES \ 11 + IQUIC_SRESET_TOKEN_SZ /* Token */) 12 13/* Allow some wiggle room */ 14#define IQUIC_MAX_SRST_SIZE (IQUIC_MIN_SRST_SIZE + 40u) 15 16#endif 17