@@ -5508,9 +5508,9 @@ int picoquic_queue_path_abandon_frame(picoquic_cnx_t* cnx,
5508
5508
return ret ;
5509
5509
}
5510
5510
5511
- /* Multipath PATH STANDBY and AVAILABLE frames
5511
+ /* Multipath PATH BACKUP and AVAILABLE frames
5512
5512
*/
5513
- uint8_t * picoquic_format_path_available_or_standby_frame (
5513
+ uint8_t * picoquic_format_path_available_or_backup_frame (
5514
5514
uint8_t * bytes , const uint8_t * bytes_max , uint64_t frame_type ,
5515
5515
uint64_t path_id , uint64_t sequence , int * more_data )
5516
5516
{
@@ -5525,7 +5525,7 @@ uint8_t* picoquic_format_path_available_or_standby_frame(
5525
5525
return bytes ;
5526
5526
}
5527
5527
5528
- int picoquic_queue_path_available_or_standby_frame (
5528
+ int picoquic_queue_path_available_or_backup_frame (
5529
5529
picoquic_cnx_t * cnx , picoquic_path_t * path_x , picoquic_path_status_enum status )
5530
5530
{
5531
5531
int ret = 0 ;
@@ -5544,7 +5544,7 @@ int picoquic_queue_path_available_or_standby_frame(
5544
5544
path_x -> p_remote_cnxid -> sequence ;
5545
5545
int is_pure_ack = 0 ;
5546
5546
int more_data = 0 ;
5547
- uint8_t * bytes_next = picoquic_format_path_available_or_standby_frame (
5547
+ uint8_t * bytes_next = picoquic_format_path_available_or_backup_frame (
5548
5548
frame_buffer , frame_buffer + sizeof (frame_buffer ), frame_type , path_id , sequence , & more_data );
5549
5549
size_t consumed = bytes_next - frame_buffer ;
5550
5550
ret = picoquic_queue_misc_frame (cnx , frame_buffer , consumed , is_pure_ack ,
@@ -5557,7 +5557,7 @@ int picoquic_queue_path_available_or_standby_frame(
5557
5557
return ret ;
5558
5558
}
5559
5559
5560
- const uint8_t * picoquic_skip_path_available_or_standby_frame (const uint8_t * bytes , const uint8_t * bytes_max )
5560
+ const uint8_t * picoquic_skip_path_available_or_backup_frame (const uint8_t * bytes , const uint8_t * bytes_max )
5561
5561
{
5562
5562
/* This code assumes that the frame type is already skipped */
5563
5563
if ((bytes = picoquic_frames_varint_skip (bytes , bytes_max )) != NULL ){
@@ -5566,7 +5566,7 @@ const uint8_t* picoquic_skip_path_available_or_standby_frame(const uint8_t* byte
5566
5566
return bytes ;
5567
5567
}
5568
5568
5569
- const uint8_t * picoquic_parse_path_available_or_standby_frame (const uint8_t * bytes , const uint8_t * bytes_max ,
5569
+ const uint8_t * picoquic_parse_path_available_or_backup_frame (const uint8_t * bytes , const uint8_t * bytes_max ,
5570
5570
uint64_t * path_id , uint64_t * sequence )
5571
5571
{
5572
5572
if ((bytes = picoquic_frames_varint_decode (bytes , bytes_max , path_id )) != NULL ){
@@ -5575,7 +5575,7 @@ const uint8_t* picoquic_parse_path_available_or_standby_frame(const uint8_t* byt
5575
5575
return bytes ;
5576
5576
}
5577
5577
5578
- const uint8_t * picoquic_decode_path_available_or_standby_frame (const uint8_t * bytes , const uint8_t * bytes_max ,
5578
+ const uint8_t * picoquic_decode_path_available_or_backup_frame (const uint8_t * bytes , const uint8_t * bytes_max ,
5579
5579
uint64_t frame_id64 , picoquic_cnx_t * cnx , uint64_t current_time )
5580
5580
{
5581
5581
uint64_t path_id ;
@@ -5588,7 +5588,7 @@ const uint8_t* picoquic_decode_path_available_or_standby_frame(const uint8_t* by
5588
5588
picoquic_connection_error_ex (cnx , PICOQUIC_TRANSPORT_FRAME_FORMAT_ERROR ,
5589
5589
frame_id64 , "multipath not negotiated" );
5590
5590
}
5591
- else if ((bytes = picoquic_parse_path_available_or_standby_frame (bytes , bytes_max , & path_id , & sequence )) == NULL ) {
5591
+ else if ((bytes = picoquic_parse_path_available_or_backup_frame (bytes , bytes_max , & path_id , & sequence )) == NULL ) {
5592
5592
/* Bad frame encoding */
5593
5593
picoquic_connection_error_ex (cnx , PICOQUIC_TRANSPORT_FRAME_FORMAT_ERROR ,
5594
5594
frame_id64 , "bad status frame" );
@@ -5599,18 +5599,18 @@ const uint8_t* picoquic_decode_path_available_or_standby_frame(const uint8_t* by
5599
5599
if (path_number < 0 ) {
5600
5600
/* Invalid path ID. Just ignore this frame. Add line in log for debug */
5601
5601
picoquic_log_app_message (cnx , "Ignore path %s frame with invalid ID: %" PRIu64 ,
5602
- (frame_id64 == picoquic_frame_type_path_available )?"available" :"standby " , path_id );
5602
+ (frame_id64 == picoquic_frame_type_path_available )?"available" :"backup " , path_id );
5603
5603
}
5604
5604
else {
5605
5605
if (cnx -> path [path_number ]-> status_sequence_to_receive_next > sequence ) {
5606
5606
/* Old frame, ignore. */
5607
5607
}
5608
5608
else {
5609
- /* Status will be set to 1 for standby, 2 for available.
5610
- * Default status is 0?
5609
+ /* Status will be set to 1 for backup, 0 for available.
5610
+ * Default status is 0.
5611
5611
*/
5612
5612
cnx -> path [path_number ]-> status_sequence_to_receive_next = sequence + 1 ;
5613
- cnx -> path [path_number ]-> path_is_standby = (frame_id64 == picoquic_frame_type_path_available ) ? 0 :1 ;
5613
+ cnx -> path [path_number ]-> path_is_backup = (frame_id64 == picoquic_frame_type_path_available ) ? 0 :1 ;
5614
5614
}
5615
5615
}
5616
5616
}
@@ -5626,7 +5626,7 @@ int picoquic_path_available_or_backup_frame_need_repeat(picoquic_cnx_t* cnx, con
5626
5626
5627
5627
* no_need_to_repeat = 0 ;
5628
5628
5629
- if ((bytes = picoquic_parse_path_available_or_standby_frame (bytes , bytes_max , & path_id , & sequence )) == NULL ){
5629
+ if ((bytes = picoquic_parse_path_available_or_backup_frame (bytes , bytes_max , & path_id , & sequence )) == NULL ){
5630
5630
/* Malformed frame, do not retransmit */
5631
5631
* no_need_to_repeat = 1 ;
5632
5632
}
@@ -6541,7 +6541,7 @@ int picoquic_decode_frames(picoquic_cnx_t* cnx, picoquic_path_t * path_x, const
6541
6541
break ;
6542
6542
case picoquic_frame_type_path_backup :
6543
6543
case picoquic_frame_type_path_available :
6544
- bytes = picoquic_decode_path_available_or_standby_frame (bytes , bytes_max , frame_id64 , cnx , current_time );
6544
+ bytes = picoquic_decode_path_available_or_backup_frame (bytes , bytes_max , frame_id64 , cnx , current_time );
6545
6545
ack_needed = 1 ;
6546
6546
break ;
6547
6547
case picoquic_frame_type_max_path_id :
@@ -6889,7 +6889,7 @@ int picoquic_skip_frame(const uint8_t* bytes, size_t bytes_maxsize, size_t* cons
6889
6889
break ;
6890
6890
case picoquic_frame_type_path_backup :
6891
6891
case picoquic_frame_type_path_available :
6892
- bytes = picoquic_skip_path_available_or_standby_frame (bytes , bytes_max );
6892
+ bytes = picoquic_skip_path_available_or_backup_frame (bytes , bytes_max );
6893
6893
* pure_ack = 0 ;
6894
6894
break ;
6895
6895
case picoquic_frame_type_max_path_id :
0 commit comments