Line data Source code
1 : #ifndef HEADER_fd_src_waltz_quic_fd_quic_common_h 2 : #define HEADER_fd_src_waltz_quic_fd_quic_common_h 3 : 4 : #include "../../util/fd_util.h" 5 : 6 18199189 : #define FD_QUIC_PARSE_FAIL (~(ulong)0) 7 96324 : #define FD_QUIC_ENCODE_FAIL ( ~(ulong)0) 8 : 9 : /* the max supported versions we could receive in a version packet */ 10 : #define FD_QUIC_MAX_VERSIONS 8 11 : 12 : 13 : /* forward decls */ 14 : typedef struct fd_quic fd_quic_t; 15 : typedef struct fd_quic_config fd_quic_config_t; 16 : typedef struct fd_quic_tls_cfg fd_quic_tls_cfg_t; 17 : typedef struct fd_quic_tls fd_quic_tls_t; 18 : typedef struct fd_quic_tls_hs fd_quic_tls_hs_t; 19 : typedef struct fd_quic_tls_secret fd_quic_tls_secret_t; 20 : typedef struct fd_quic_tls_hs_data fd_quic_tls_hs_data_t; 21 : typedef struct fd_quic_pkt fd_quic_pkt_t; 22 : 23 : struct __attribute__((aligned(16))) fd_quic_range { 24 : /* offset in [ offset_lo, offset_hi ) is considered inside the range */ 25 : /* a zero-initialized range will be empty [0,0) */ 26 : ulong offset_lo; 27 : ulong offset_hi; 28 : }; 29 : 30 : typedef struct fd_quic_range fd_quic_range_t; 31 : 32 : #endif /* HEADER_fd_src_waltz_quic_fd_quic_common_h */ 33 :