diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-05-23 12:23:05 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-06-16 09:26:27 +1000 |
commit | a3a51d6ec38a8c2fd88e7c64c2f21632e55cbbdf (patch) | |
tree | 9137e77960adfbce0c63d39ebbec2ed068eabfea /include | |
parent | 81b400cf900c530e170a1488222191c5568f6b2d (diff) |
QUIC TXP: Refactor status output to use an extensible structure
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21029)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_txp.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/internal/quic_txp.h b/include/internal/quic_txp.h index b8740f5440..db95b29307 100644 --- a/include/internal/quic_txp.h +++ b/include/internal/quic_txp.h @@ -84,15 +84,20 @@ void ossl_quic_tx_packetiser_free(OSSL_QUIC_TX_PACKETISER *txp); * TX_PACKETISER_RES_NO_PKT if no packets were sent (e.g. because nothing wants * to send anything), and TX_PACKETISER_RES_SENT_PKT if packets were sent. * - * If an ACK-eliciting packet was sent, 1 is written to *sent_ack_eliciting, - * otherwise *sent_ack_eliciting is unchanged. + * *status is filled with status information about the generated packet, if any. + * See QUIC_TXP_STATUS for details. */ #define TX_PACKETISER_RES_FAILURE 0 #define TX_PACKETISER_RES_NO_PKT 1 #define TX_PACKETISER_RES_SENT_PKT 2 + +typedef struct quic_txp_status_st { + int sent_ack_eliciting; /* Was an ACK-eliciting packet sent? */ +} QUIC_TXP_STATUS; + int ossl_quic_tx_packetiser_generate(OSSL_QUIC_TX_PACKETISER *txp, uint32_t archetype, - int *sent_ack_eliciting); + QUIC_TXP_STATUS *status); /* * Returns 1 if one or more packets would be generated if |