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_base.h" 5 : 6 23472 : #define FD_QUIC_PARSE_FAIL (~(ulong)0) 7 96450 : #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_conn fd_quic_conn_t; 16 : typedef struct fd_quic_config fd_quic_config_t; 17 : typedef struct fd_quic_tls_cfg fd_quic_tls_cfg_t; 18 : typedef struct fd_quic_tls fd_quic_tls_t; 19 : typedef struct fd_quic_tls_hs fd_quic_tls_hs_t; 20 : typedef struct fd_quic_tls_secret fd_quic_tls_secret_t; 21 : typedef struct fd_quic_tls_hs_data fd_quic_tls_hs_data_t; 22 : typedef struct fd_quic_pkt fd_quic_pkt_t; 23 : 24 : struct __attribute__((aligned(16))) fd_quic_range { 25 : /* offset in [ offset_lo, offset_hi ) is considered inside the range */ 26 : /* a zero-initialized range will be empty [0,0) */ 27 : ulong offset_lo; 28 : ulong offset_hi; 29 : }; 30 : 31 : typedef struct fd_quic_range fd_quic_range_t; 32 : 33 : #endif /* HEADER_fd_src_waltz_quic_fd_quic_common_h */ 34 :