mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
REORG: quic: QUIC connection types header cleaning
Move UDP datagram definitions from quic_conn-t.h to quic_sock-t.h Move debug quic_rx_crypto_frm struct from quic_conn-t.h to quic_trace-t.h
This commit is contained in:
parent
0fc0d45745
commit
f949f7df83
@ -231,38 +231,9 @@ extern const struct quic_version *preferred_version;
|
||||
/* The maximum number of dgrams which may be sent upon PTO expirations. */
|
||||
#define QUIC_MAX_NB_PTO_DGRAMS 2
|
||||
|
||||
/* QUIC datagram */
|
||||
struct quic_dgram {
|
||||
void *owner;
|
||||
unsigned char *buf;
|
||||
size_t len;
|
||||
unsigned char *dcid;
|
||||
size_t dcid_len;
|
||||
struct sockaddr_storage saddr;
|
||||
struct sockaddr_storage daddr;
|
||||
struct quic_conn *qc;
|
||||
|
||||
struct list recv_list; /* elemt to quic_receiver_buf <dgram_list>. */
|
||||
struct mt_list handler_list; /* elem to quic_dghdlr <dgrams>. */
|
||||
};
|
||||
|
||||
/* The QUIC packet numbers are 62-bits integers */
|
||||
#define QUIC_MAX_PACKET_NUM ((1ULL << 62) - 1)
|
||||
|
||||
/* QUIC datagram handler */
|
||||
struct quic_dghdlr {
|
||||
struct mt_list dgrams;
|
||||
struct tasklet *task;
|
||||
};
|
||||
|
||||
/* Structure to store enough information about the RX CRYPTO frames. */
|
||||
struct quic_rx_crypto_frm {
|
||||
struct eb64_node offset_node;
|
||||
uint64_t len;
|
||||
const unsigned char *data;
|
||||
struct quic_rx_packet *pkt;
|
||||
};
|
||||
|
||||
#define QUIC_CRYPTO_BUF_SHIFT 10
|
||||
#define QUIC_CRYPTO_BUF_MASK ((1UL << QUIC_CRYPTO_BUF_SHIFT) - 1)
|
||||
/* The maximum allowed size of CRYPTO data buffer provided by the TLS stack. */
|
||||
|
@ -23,5 +23,26 @@ struct quic_receiver_buf {
|
||||
struct mt_list rxbuf_el; /* list element into receiver.rxbuf_list. */
|
||||
};
|
||||
|
||||
/* QUIC datagram */
|
||||
struct quic_dgram {
|
||||
void *owner;
|
||||
unsigned char *buf;
|
||||
size_t len;
|
||||
unsigned char *dcid;
|
||||
size_t dcid_len;
|
||||
struct sockaddr_storage saddr;
|
||||
struct sockaddr_storage daddr;
|
||||
struct quic_conn *qc;
|
||||
|
||||
struct list recv_list; /* elemt to quic_receiver_buf <dgram_list>. */
|
||||
struct mt_list handler_list; /* elem to quic_dghdlr <dgrams>. */
|
||||
};
|
||||
|
||||
/* QUIC datagram handler */
|
||||
struct quic_dghdlr {
|
||||
struct mt_list dgrams;
|
||||
struct tasklet *task;
|
||||
};
|
||||
|
||||
#endif /* USE_QUIC */
|
||||
#endif /* _HAPROXY_QUIC_SOCK_T_H */
|
||||
|
@ -38,6 +38,14 @@ struct enc_debug_info {
|
||||
uint64_t pn;
|
||||
};
|
||||
|
||||
/* Structure to store enough information about the RX CRYPTO frames. */
|
||||
struct quic_rx_crypto_frm {
|
||||
struct eb64_node offset_node;
|
||||
uint64_t len;
|
||||
const unsigned char *data;
|
||||
struct quic_rx_packet *pkt;
|
||||
};
|
||||
|
||||
#define QUIC_EV_CONN_NEW (1ULL << 0)
|
||||
#define QUIC_EV_CONN_INIT (1ULL << 1)
|
||||
#define QUIC_EV_CONN_ISEC (1ULL << 2)
|
||||
|
Loading…
Reference in New Issue
Block a user