diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-12-16 10:53:02 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-01-30 09:44:59 +0100 |
commit | e2212b20bcf96c62c17a5e124c3bd61a98b8fcfd (patch) | |
tree | d6f34c3c9e40b79295e658697883c46b21ddbb6b /ssl | |
parent | 8ca3baa9bdf972b963a70769780db67ebcbdf779 (diff) | |
download | openssl-new-e2212b20bcf96c62c17a5e124c3bd61a98b8fcfd.tar.gz |
QUIC ACKM: Rework probe reporting to allow use for bookkeeping
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19925)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_ackm.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ssl/quic/quic_ackm.c b/ssl/quic/quic_ackm.c index 2c01757494..7e692a27ee 100644 --- a/ssl/quic/quic_ackm.c +++ b/ssl/quic/quic_ackm.c @@ -943,7 +943,7 @@ static void ackm_on_pkts_lost(OSSL_ACKM *ackm, int pkt_space, if (pseudo) /* - * If this is psuedo-loss (e.g. during connection retry) we do not + * If this is pseudo-loss (e.g. during connection retry) we do not * inform the CC as it is not a real loss and not reflective of network * conditions. */ @@ -1316,15 +1316,9 @@ OSSL_TIME ossl_ackm_get_loss_detection_deadline(OSSL_ACKM *ackm) return ackm->loss_detection_deadline; } -int ossl_ackm_get_probe_request(OSSL_ACKM *ackm, int clear, - OSSL_ACKM_PROBE_INFO *info) +OSSL_ACKM_PROBE_INFO *ossl_ackm_get_probe_request(OSSL_ACKM *ackm) { - *info = ackm->pending_probe; - - if (clear != 0) - memset(&ackm->pending_probe, 0, sizeof(ackm->pending_probe)); - - return 1; + return &ackm->pending_probe; } int ossl_ackm_get_largest_unacked(OSSL_ACKM *ackm, int pkt_space, QUIC_PN *pn) |