lsquic_sizes.h revision 92f6e17b
15392f7a3SLiteSpeed Tech/* Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc. See LICENSE. */ 25392f7a3SLiteSpeed Tech#ifndef LSQUIC_SIZES_H 35392f7a3SLiteSpeed Tech#define LSQUIC_SIZES_H 1 45392f7a3SLiteSpeed Tech 55392f7a3SLiteSpeed Tech#define IQUIC_SRESET_TOKEN_SZ 16u 65392f7a3SLiteSpeed Tech 792f6e17bSDmitri Tikhonov#define IQUIC_MIN_SRST_RANDOM_BYTES (1u /* First byte: 01XX XXXX */ \ 892f6e17bSDmitri Tikhonov + 4u /* Random bytes */) 95392f7a3SLiteSpeed Tech 105392f7a3SLiteSpeed Tech#define IQUIC_MIN_SRST_SIZE (IQUIC_MIN_SRST_RANDOM_BYTES \ 115392f7a3SLiteSpeed Tech + IQUIC_SRESET_TOKEN_SZ /* Token */) 125392f7a3SLiteSpeed Tech 1392f6e17bSDmitri Tikhonov/* Allow some wiggle room */ 1492f6e17bSDmitri Tikhonov#define IQUIC_MAX_SRST_SIZE (IQUIC_MIN_SRST_SIZE + 40u) 1592f6e17bSDmitri Tikhonov 165392f7a3SLiteSpeed Tech#endif 17