@@ -376,7 +376,7 @@ uint8_t * picoquic_format_new_connection_id_frame(picoquic_cnx_t* cnx, picoquic_
376
376
int * more_data , int * is_pure_ack , picoquic_local_cnxid_t * l_cid )
377
377
{
378
378
uint8_t * bytes0 = bytes ;
379
- unsigned int is_mp = cnx -> is_unique_path_id_enabled ;
379
+ unsigned int is_mp = cnx -> is_multipath_enabled ;
380
380
381
381
if (l_cid != NULL && l_cid -> cnx_id .id_len > 0 ) {
382
382
if ((bytes = picoquic_frames_varint_encode (bytes , bytes_max ,
@@ -617,7 +617,7 @@ int picoquic_queue_retire_connection_id_frame(picoquic_cnx_t * cnx, uint64_t uni
617
617
int is_pure_ack = 1 ;
618
618
int more_data = 0 ;
619
619
uint8_t * bytes_next = picoquic_format_retire_connection_id_frame (frame_buffer , frame_buffer + sizeof (frame_buffer ),
620
- & more_data , & is_pure_ack , cnx -> is_unique_path_id_enabled , unique_path_id , sequence );
620
+ & more_data , & is_pure_ack , cnx -> is_multipath_enabled , unique_path_id , sequence );
621
621
622
622
if ((consumed = bytes_next - frame_buffer ) > 0 ) {
623
623
ret = picoquic_queue_misc_frame (cnx , frame_buffer , consumed , is_pure_ack );
@@ -1777,7 +1777,7 @@ uint8_t* picoquic_format_available_stream_frames(picoquic_cnx_t* cnx, picoquic_p
1777
1777
{
1778
1778
uint8_t * bytes_previous = bytes_next ;
1779
1779
picoquic_stream_head_t * stream = picoquic_find_ready_stream_path (cnx ,
1780
- (cnx -> is_unique_path_id_enabled || cnx -> is_simple_multipath_enabled )?path_x : NULL );
1780
+ (cnx -> is_multipath_enabled || cnx -> is_simple_multipath_enabled )?path_x : NULL );
1781
1781
int more_stream_data = 0 ;
1782
1782
1783
1783
while (* ret == 0 && stream != NULL && stream -> stream_priority <= current_priority && bytes_next < bytes_max ) {
@@ -1786,7 +1786,7 @@ uint8_t* picoquic_format_available_stream_frames(picoquic_cnx_t* cnx, picoquic_p
1786
1786
1787
1787
if (* ret == 0 ) {
1788
1788
stream = picoquic_find_ready_stream_path (cnx ,
1789
- (cnx -> is_unique_path_id_enabled || cnx -> is_simple_multipath_enabled )?path_x : NULL );
1789
+ (cnx -> is_multipath_enabled || cnx -> is_simple_multipath_enabled )?path_x : NULL );
1790
1790
if (stream != NULL && bytes_next + 17 >= bytes_max ) {
1791
1791
more_stream_data = 1 ;
1792
1792
break ;
@@ -2447,7 +2447,7 @@ picoquic_packet_t* picoquic_check_spurious_retransmission(picoquic_cnx_t* cnx,
2447
2447
old_path -> path_packet_acked_time_sent = p -> send_time ;
2448
2448
old_path -> path_packet_acked_received = current_time ;
2449
2449
if (old_path -> nb_retransmit > 0 &&
2450
- ((!cnx -> is_unique_path_id_enabled &&
2450
+ ((!cnx -> is_multipath_enabled &&
2451
2451
!cnx -> is_simple_multipath_enabled ) ||
2452
2452
(old_path -> path_packet_last == NULL ||
2453
2453
p -> path_packet_number >= old_path -> path_packet_last -> path_packet_number ))) {
@@ -2702,7 +2702,7 @@ static uint64_t picoquic_compute_ack_gap(picoquic_cnx_t* cnx, uint64_t data_rate
2702
2702
ack_gap = ack_gap_min ;
2703
2703
}
2704
2704
else if (ack_gap > 32 ) {
2705
- if (cnx -> is_simple_multipath_enabled || cnx -> is_unique_path_id_enabled ||
2705
+ if (cnx -> is_simple_multipath_enabled || cnx -> is_multipath_enabled ||
2706
2706
cnx -> congestion_alg == NULL ||
2707
2707
cnx -> congestion_alg -> congestion_algorithm_number == PICOQUIC_CC_ALGO_NUMBER_NEW_RENO ||
2708
2708
cnx -> congestion_alg -> congestion_algorithm_number == PICOQUIC_CC_ALGO_NUMBER_FAST
@@ -3054,7 +3054,7 @@ int picoquic_process_ack_of_ack_mp_frame(
3054
3054
3055
3055
if (ret == 0 ) {
3056
3056
picoquic_ack_context_t * ack_ctx = NULL ;
3057
- if (cnx -> is_unique_path_id_enabled ) {
3057
+ if (cnx -> is_multipath_enabled ) {
3058
3058
int path_index = picoquic_find_path_by_unique_id (cnx , path_id );
3059
3059
if (path_index >= 0 ) {
3060
3060
ack_ctx = & cnx -> path [path_index ]-> ack_ctx ;
@@ -3522,7 +3522,7 @@ static int picoquic_process_ack_range(
3522
3522
old_path -> path_packet_acked_time_sent = p -> send_time ;
3523
3523
old_path -> path_packet_acked_received = current_time ;
3524
3524
if (old_path -> nb_retransmit > 0 &&
3525
- ((!cnx -> is_unique_path_id_enabled &&
3525
+ ((!cnx -> is_multipath_enabled &&
3526
3526
!cnx -> is_simple_multipath_enabled ) ||
3527
3527
(old_path -> path_packet_last == NULL ||
3528
3528
p -> path_packet_number >= old_path -> path_packet_last -> path_packet_number ))) {
@@ -3591,7 +3591,7 @@ const uint8_t* picoquic_decode_ack_frame(picoquic_cnx_t* cnx, const uint8_t* byt
3591
3591
else
3592
3592
{
3593
3593
if (pc == picoquic_packet_context_application ) {
3594
- if (cnx -> is_unique_path_id_enabled ) {
3594
+ if (cnx -> is_multipath_enabled ) {
3595
3595
int path_index = picoquic_find_path_by_unique_id (cnx , path_id );
3596
3596
if (path_index < 0 ) {
3597
3597
/* No such path ID. Ignore frame. TODO: error if never seen? */
@@ -3860,7 +3860,7 @@ uint8_t * picoquic_format_ack_frame(picoquic_cnx_t* cnx, uint8_t* bytes, uint8_t
3860
3860
int need_time_stamp = (pc == picoquic_packet_context_application && cnx -> is_time_stamp_sent );
3861
3861
picoquic_ack_context_t * ack_ctx = NULL ;
3862
3862
3863
- if (cnx -> is_unique_path_id_enabled && pc == picoquic_packet_context_application ) {
3863
+ if (cnx -> is_multipath_enabled && pc == picoquic_packet_context_application ) {
3864
3864
int ack_still_needed = 0 ;
3865
3865
int ack_after_fin = 0 ;
3866
3866
for (int path_id = 0 ; path_id < cnx -> nb_paths ; path_id ++ ) {
@@ -3899,7 +3899,7 @@ void picoquic_set_ack_needed(picoquic_cnx_t* cnx, uint64_t current_time, picoqui
3899
3899
picoquic_path_t * path_x , int is_immediate_ack_required )
3900
3900
{
3901
3901
if (pc == picoquic_packet_context_application &&
3902
- cnx -> is_unique_path_id_enabled ) {
3902
+ cnx -> is_multipath_enabled ) {
3903
3903
/* TODO: this code seems wrong */
3904
3904
path_x -> ack_ctx .act [0 ].is_immediate_ack_required |= is_immediate_ack_required ;
3905
3905
if (!path_x -> ack_ctx .act [0 ].ack_needed ) {
@@ -3921,7 +3921,7 @@ void picoquic_set_ack_needed(picoquic_cnx_t* cnx, uint64_t current_time, picoqui
3921
3921
uint64_t picoquic_ack_gap_override_if_needed (picoquic_cnx_t * cnx , int path_index )
3922
3922
{
3923
3923
uint64_t ack_gap = cnx -> ack_gap_remote ;
3924
- if (cnx -> is_unique_path_id_enabled ) {
3924
+ if (cnx -> is_multipath_enabled ) {
3925
3925
if (!cnx -> path [path_index ]-> path_is_demoted &&
3926
3926
!cnx -> path [path_index ]-> challenge_failed &&
3927
3927
!cnx -> path [path_index ]-> response_required &&
@@ -4002,7 +4002,7 @@ int picoquic_is_ack_needed(picoquic_cnx_t* cnx, uint64_t current_time, uint64_t*
4002
4002
pc , is_opportunistic );
4003
4003
4004
4004
if (pc == picoquic_packet_context_application ) {
4005
- if (cnx -> is_unique_path_id_enabled ) {
4005
+ if (cnx -> is_multipath_enabled ) {
4006
4006
for (int i = 0 ; ret == 0 && i < cnx -> nb_paths ; i ++ ) {
4007
4007
ret |= picoquic_is_ack_needed_in_ctx (cnx , & cnx -> path [i ]-> ack_ctx , current_time , i ,
4008
4008
next_wake_time , pc , is_opportunistic );
@@ -5265,14 +5265,14 @@ const uint8_t* picoquic_decode_path_abandon_frame(const uint8_t* bytes, const ui
5265
5265
5266
5266
/* This code assumes that the frame type is already skipped */
5267
5267
5268
- if (!cnx -> is_simple_multipath_enabled && !cnx -> is_unique_path_id_enabled ) {
5268
+ if (!cnx -> is_simple_multipath_enabled && !cnx -> is_multipath_enabled ) {
5269
5269
/* Frame is unexpected */
5270
5270
picoquic_connection_error_ex (cnx , PICOQUIC_TRANSPORT_FRAME_FORMAT_ERROR ,
5271
5271
picoquic_frame_type_path_abandon , "multipath not negotiated" );
5272
5272
}
5273
5273
else if ((bytes = picoquic_parse_path_abandon_frame (bytes , bytes_max , & path_id , & reason )) != NULL ) {
5274
5274
/* process the abandon frame */
5275
- int path_number = (cnx -> is_unique_path_id_enabled )?
5275
+ int path_number = (cnx -> is_multipath_enabled )?
5276
5276
picoquic_find_path_by_unique_id (cnx , path_id ):
5277
5277
picoquic_find_path_by_cnxid_id (cnx , 1 , path_id );
5278
5278
if (path_number < 0 ) {
@@ -5347,7 +5347,7 @@ int picoquic_queue_path_available_or_standby_frame(
5347
5347
uint64_t frame_type = (status == picoquic_path_status_available ) ?
5348
5348
picoquic_frame_type_path_available : picoquic_frame_type_path_standby ;
5349
5349
uint64_t sequence = cnx -> status_sequence_to_send_next ++ ;
5350
- uint64_t path_id = (cnx -> is_unique_path_id_enabled )?
5350
+ uint64_t path_id = (cnx -> is_multipath_enabled )?
5351
5351
path_x -> unique_path_id :
5352
5352
path_x -> p_remote_cnxid -> sequence ;
5353
5353
int is_pure_ack = 0 ;
@@ -5389,7 +5389,7 @@ const uint8_t* picoquic_decode_path_available_or_standby_frame(const uint8_t* by
5389
5389
5390
5390
/* This code assumes that the frame type is already skipped */
5391
5391
5392
- if (!cnx -> is_simple_multipath_enabled && !cnx -> is_unique_path_id_enabled ) {
5392
+ if (!cnx -> is_simple_multipath_enabled && !cnx -> is_multipath_enabled ) {
5393
5393
/* Frame is unexpected */
5394
5394
picoquic_connection_error_ex (cnx , PICOQUIC_TRANSPORT_FRAME_FORMAT_ERROR ,
5395
5395
frame_id64 , "multipath not negotiated" );
@@ -5401,7 +5401,7 @@ const uint8_t* picoquic_decode_path_available_or_standby_frame(const uint8_t* by
5401
5401
}
5402
5402
else {
5403
5403
/* process the status frame */
5404
- int path_number = (cnx -> is_unique_path_id_enabled )?
5404
+ int path_number = (cnx -> is_multipath_enabled )?
5405
5405
picoquic_find_path_by_unique_id (cnx , path_id ):
5406
5406
picoquic_find_path_by_cnxid_id (cnx , 1 , path_id );
5407
5407
if (path_number < 0 ) {
@@ -5440,7 +5440,7 @@ int picoquic_path_available_or_standby_frame_need_repeat(picoquic_cnx_t* cnx, co
5440
5440
}
5441
5441
else {
5442
5442
/* check whether this is the last frame sent on path */
5443
- int path_number = (cnx -> is_unique_path_id_enabled )?
5443
+ int path_number = (cnx -> is_multipath_enabled )?
5444
5444
picoquic_find_path_by_unique_id (cnx , path_id ):
5445
5445
picoquic_find_path_by_cnxid_id (cnx , 1 , path_id );
5446
5446
if (path_number < 0 ||
@@ -5500,7 +5500,7 @@ const uint8_t* picoquic_decode_max_paths_frame(const uint8_t* bytes, const uint8
5500
5500
5501
5501
/* This code assumes that the frame type is already skipped */
5502
5502
5503
- if (!cnx -> is_unique_path_id_enabled ) {
5503
+ if (!cnx -> is_multipath_enabled ) {
5504
5504
/* Frame is unexpected */
5505
5505
picoquic_connection_error_ex (cnx , PICOQUIC_TRANSPORT_FRAME_FORMAT_ERROR ,
5506
5506
picoquic_frame_type_max_paths , "unique path_id not negotiated" );
0 commit comments