diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:54 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:11 +0100 |
commit | 54562e899c5394505417adc1e0c6410f6a0677f3 (patch) | |
tree | f9f75b3c4ff1b8363107f6cd6db00974ce3f38d6 /ssl | |
parent | c6c0432cca9c46bde56a9480796762f25d2a18a7 (diff) |
QUIC CHANNEL: Clarify role of RX TPs in preparation of storing TX TPs
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_channel.c | 6 | ||||
-rw-r--r-- | ssl/quic/quic_channel_local.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index 5d72ac82a3..47d9b970bd 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -845,7 +845,7 @@ static int ch_on_transport_params(const unsigned char *params, * This is correct; the BIDI_LOCAL TP governs streams created by * the endpoint which sends the TP, i.e., our peer. */ - ch->init_max_stream_data_bidi_remote = v; + ch->rx_init_max_stream_data_bidi_remote = v; got_initial_max_stream_data_bidi_local = 1; break; @@ -865,7 +865,7 @@ static int ch_on_transport_params(const unsigned char *params, * This is correct; the BIDI_REMOTE TP governs streams created * by the endpoint which receives the TP, i.e., us. */ - ch->init_max_stream_data_bidi_local = v; + ch->rx_init_max_stream_data_bidi_local = v; /* Apply to stream 0. */ ossl_quic_txfc_bump_cwm(&ch->stream0->txfc, v); @@ -884,7 +884,7 @@ static int ch_on_transport_params(const unsigned char *params, goto malformed; } - ch->init_max_stream_data_uni_remote = v; + ch->rx_init_max_stream_data_uni_remote = v; got_initial_max_stream_data_uni = 1; break; diff --git a/ssl/quic/quic_channel_local.h b/ssl/quic/quic_channel_local.h index 555e6117d8..18b50313f4 100644 --- a/ssl/quic/quic_channel_local.h +++ b/ssl/quic/quic_channel_local.h @@ -124,9 +124,9 @@ struct quic_channel_st { QUIC_CONN_ID cur_local_dcid; /* Transport parameter values received from server. */ - uint64_t init_max_stream_data_bidi_local; - uint64_t init_max_stream_data_bidi_remote; - uint64_t init_max_stream_data_uni_remote; + uint64_t rx_init_max_stream_data_bidi_local; + uint64_t rx_init_max_stream_data_bidi_remote; + uint64_t rx_init_max_stream_data_uni_remote; uint64_t rx_max_ack_delay; /* ms */ unsigned char rx_ack_delay_exp; |