summaryrefslogtreecommitdiffstats
path: root/include/internal/quic_ackm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/internal/quic_ackm.h')
-rw-r--r--include/internal/quic_ackm.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/internal/quic_ackm.h b/include/internal/quic_ackm.h
index 1188e30177..492b0d8ca9 100644
--- a/include/internal/quic_ackm.h
+++ b/include/internal/quic_ackm.h
@@ -14,6 +14,7 @@
# include "internal/quic_types.h"
# include "internal/quic_wire.h"
# include "internal/time.h"
+# include "internal/list.h"
typedef struct ossl_ackm_st OSSL_ACKM;
@@ -35,7 +36,8 @@ void ossl_ackm_set_ack_deadline_callback(OSSL_ACKM *ackm,
void *arg),
void *arg);
-typedef struct ossl_ackm_tx_pkt_st {
+typedef struct ossl_ackm_tx_pkt_st OSSL_ACKM_TX_PKT;
+struct ossl_ackm_tx_pkt_st {
/* The packet number of the transmitted packet. */
QUIC_PN pkt_num;
@@ -89,15 +91,15 @@ typedef struct ossl_ackm_tx_pkt_st {
/*
* (Internal use fields; must be zero-initialized.)
*
- * prev and next link us into the TX history list, anext is used to manifest
+ * Keep a TX history list, anext is used to manifest
* a singly-linked list of newly-acknowledged packets, and lnext is used to
* manifest a singly-linked list of newly lost packets.
*/
- struct ossl_ackm_tx_pkt_st *prev;
- struct ossl_ackm_tx_pkt_st *next;
+ OSSL_LIST_MEMBER(tx_history, OSSL_ACKM_TX_PKT);
+
struct ossl_ackm_tx_pkt_st *anext;
struct ossl_ackm_tx_pkt_st *lnext;
-} OSSL_ACKM_TX_PKT;
+};
int ossl_ackm_on_tx_packet(OSSL_ACKM *ackm, OSSL_ACKM_TX_PKT *pkt);
int ossl_ackm_on_rx_datagram(OSSL_ACKM *ackm, size_t num_bytes);