@@ -3055,13 +3055,13 @@ impl Connection {
3055
3055
}
3056
3056
},
3057
3057
3058
- frame::Frame::ACKMP {
3058
+ frame::Frame::MPACK {
3059
3059
space_identifier,
3060
3060
ranges,
3061
3061
..
3062
3062
} => {
3063
3063
// Stop acknowledging packets less than or equal to the
3064
- // largest acknowledged in the sent ACK_MP frame that,
3064
+ // largest acknowledged in the sent MP_ACK frame that,
3065
3065
// in turn, got acked.
3066
3066
if let Some(largest_acked) = ranges.last() {
3067
3067
self.pkt_num_spaces
@@ -3609,7 +3609,7 @@ impl Connection {
3609
3609
self.ids.mark_retire_dcid_seq(path_id, seq_num, true);
3610
3610
},
3611
3611
3612
- frame::Frame::ACKMP {
3612
+ frame::Frame::MPACK {
3613
3613
space_identifier, ..
3614
3614
} => {
3615
3615
self.pkt_num_spaces
@@ -3826,14 +3826,14 @@ impl Connection {
3826
3826
}
3827
3827
}
3828
3828
3829
- // Create ACK_MP frames if needed.
3829
+ // Create MP_ACK frames if needed.
3830
3830
if multiple_application_data_pkt_num_spaces &&
3831
3831
!is_closing &&
3832
3832
path.active()
3833
3833
{
3834
- // We first check if we should bundle the ACK_MP belonging to our
3835
- // path. We only bundle additional ACK_MP from other paths if we
3836
- // need to send one. This avoids sending ACK_MP frames endlessly.
3834
+ // We first check if we should bundle the MP_ACK belonging to our
3835
+ // path. We only bundle additional MP_ACK from other paths if we
3836
+ // need to send one. This avoids sending MP_ACK frames endlessly.
3837
3837
let mut wrote_ack_mp = false;
3838
3838
let pns = self.pkt_num_spaces.spaces.get_mut(epoch, path_id)?;
3839
3839
if pns.recv_pkt_need_ack.len() > 0 &&
@@ -3846,7 +3846,7 @@ impl Connection {
3846
3846
self.local_transport_params.ack_delay_exponent as u32,
3847
3847
);
3848
3848
3849
- let frame = frame::Frame::ACKMP {
3849
+ let frame = frame::Frame::MPACK {
3850
3850
space_identifier: path_id,
3851
3851
ack_delay,
3852
3852
ranges: pns.recv_pkt_need_ack.clone(),
@@ -3855,10 +3855,10 @@ impl Connection {
3855
3855
};
3856
3856
3857
3857
// When a PING frame needs to be sent, avoid sending the
3858
- // ACK_MP if there is not enough cwnd
3858
+ // MP_ACK if there is not enough cwnd
3859
3859
// available for both (note that PING
3860
3860
// frames are always 1 byte, so we just need to check that the
3861
- // ACK_MP 's length is lower than cwnd).
3861
+ // MP_ACK 's length is lower than cwnd).
3862
3862
if (pns.ack_elicited ||
3863
3863
(left_before_packing_ack_frame - left) + frame.wire_len() <
3864
3864
cwnd_available) &&
@@ -3894,7 +3894,7 @@ impl Connection {
3894
3894
as u32,
3895
3895
);
3896
3896
3897
- let frame = frame::Frame::ACKMP {
3897
+ let frame = frame::Frame::MPACK {
3898
3898
space_identifier: space_id,
3899
3899
ack_delay,
3900
3900
ranges: pns.recv_pkt_need_ack.clone(),
@@ -3910,7 +3910,7 @@ impl Connection {
3910
3910
push_frame_to_pkt!(b, frames, frame, left)
3911
3911
{
3912
3912
// Continue advertising until we send the
3913
- // ACK_MP
3913
+ // MP_ACK
3914
3914
// on
3915
3915
// its own path, unless the path is not
3916
3916
// active.
@@ -7893,7 +7893,7 @@ impl Connection {
7893
7893
7894
7894
frame::Frame::DatagramHeader { .. } => unreachable!(),
7895
7895
7896
- frame::Frame::ACKMP {
7896
+ frame::Frame::MPACK {
7897
7897
space_identifier,
7898
7898
ranges,
7899
7899
ack_delay,
@@ -7918,7 +7918,7 @@ impl Connection {
7918
7918
7919
7919
let handshake_status = self.handshake_status();
7920
7920
7921
- // If an endpoint receives an ACK_MP frame with a packet number
7921
+ // If an endpoint receives an MP_ACK frame with a packet number
7922
7922
// space ID which was never issued by endpoints (i.e., with a
7923
7923
// sequence number larger than the largest one advertised), it
7924
7924
// MUST treat this as a connection error of type
@@ -7927,10 +7927,10 @@ impl Connection {
7927
7927
return Err(Error::MultiPathViolation);
7928
7928
}
7929
7929
7930
- // If an endpoint receives an ACK_MP frame with a packet number
7930
+ // If an endpoint receives an MP_ACK frame with a packet number
7931
7931
// space ID which is no more active (e.g., retired by a
7932
7932
// RETIRE_CONNECTION_ID frame or belonging to closed paths), it
7933
- // MUST ignore the ACK_MP frame without causing a connection
7933
+ // MUST ignore the MP_ACK frame without causing a connection
7934
7934
// error.
7935
7935
if let Some(path_id) =
7936
7936
self.paths.pid_from_path_id(space_identifier)
@@ -8399,7 +8399,7 @@ impl Connection {
8399
8399
}
8400
8400
}
8401
8401
8402
- // When using multiple packet number spaces, let's force ACK_MP sending
8402
+ // When using multiple packet number spaces, let's force MP_ACK sending
8403
8403
// on their corresponding paths.
8404
8404
if self.is_multipath_enabled() {
8405
8405
if let Some(pid) = self
@@ -18019,7 +18019,7 @@ mod tests {
18019
18019
assert_eq!(path_s2c_0.active(), true);
18020
18020
assert_eq!(path_s2c_1.active(), true);
18021
18021
18022
- // Flush the ACK_MP on the newly active path.
18022
+ // Flush the MP_ACK on the newly active path.
18023
18023
assert_eq!(pipe.advance(), Ok(()));
18024
18024
18025
18025
// Emit enough data to use both paths, but no more than their initial
0 commit comments