mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-17 08:51:09 +01:00
Such a warning appeared after having added quic_retry.h which includes only
headers for types (quic_cid-t.h, clock-t.h...)
In file included from include/haproxy/quic_retry.h:12,
from src/quic_retry.c:5:
include/haproxy/quic_cid-t.h:26:26: error: field ‘seq_num’ has incomplete type
26 | struct eb64_node seq_num;
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
#ifndef _HAPROXY_QUIC_CID_T_H
|
|
#define _HAPROXY_QUIC_CID_T_H
|
|
|
|
#include <import/ebtree-t.h>
|
|
#include <haproxy/quic_tp-t.h>
|
|
|
|
/* QUIC connection ID maximum length for version 1. */
|
|
#define QUIC_CID_MAXLEN 20 /* bytes */
|
|
|
|
/* QUIC connection id data.
|
|
*
|
|
* This struct is used by ebmb_node structs as last member of flexible arrays.
|
|
* So do not change the order of the member of quic_cid struct.
|
|
* <data> member must be the first one.
|
|
*/
|
|
struct quic_cid {
|
|
unsigned char data[QUIC_CID_MAXLEN];
|
|
unsigned char len; /* size of QUIC CID */
|
|
};
|
|
|
|
/* QUIC connection id attached to a QUIC connection.
|
|
*
|
|
* This structure is used to match received packets DCIDs with the
|
|
* corresponding QUIC connection.
|
|
*/
|
|
struct quic_connection_id {
|
|
struct eb64_node seq_num;
|
|
uint64_t retire_prior_to;
|
|
unsigned char stateless_reset_token[QUIC_STATELESS_RESET_TOKEN_LEN];
|
|
|
|
struct ebmb_node node; /* node for receiver tree, cid.data as key */
|
|
struct quic_cid cid; /* CID data */
|
|
|
|
struct quic_conn *qc; /* QUIC connection using this CID */
|
|
uint tid; /* Attached Thread ID for the connection. */
|
|
};
|
|
|
|
#endif /* _HAPROXY_QUIC_CID_T_H */
|