@@ -851,8 +851,9 @@ int TEST_ICE_ctr_binding_resp_recv = 0; // binding responses we received
851851int TEST_ICE_ctr_allocate_send = 0 ; // TURN allocate requests sent
852852int TEST_ICE_ctr_send_ind_send = 0 ; // TURN send indications sent (data out via relay)
853853int TEST_ICE_ctr_data_ind_recv = 0 ; // TURN data indications received (data in via relay)
854- int TEST_ICE_ctr_binding_req_retx = 0 ; // binding request retransmissions (not counting initial send)
855- int TEST_ICE_ctr_allocate_retx = 0 ; // TURN allocate request retransmissions
854+ int TEST_ICE_ctr_binding_req_retx = 0 ; // binding request retransmissions (not counting initial send)
855+ int TEST_ICE_ctr_allocate_retx = 0 ; // TURN allocate request retransmissions
856+ int TEST_ICE_ctr_create_permission_retx = 0 ; // TURN CreatePermission request retransmissions
856857
857858void TEST_ICE_ctr_Reset ()
858859{
@@ -864,8 +865,9 @@ void TEST_ICE_ctr_Reset()
864865 TEST_ICE_ctr_allocate_send = 0 ;
865866 TEST_ICE_ctr_send_ind_send = 0 ;
866867 TEST_ICE_ctr_data_ind_recv = 0 ;
867- TEST_ICE_ctr_binding_req_retx = 0 ;
868- TEST_ICE_ctr_allocate_retx = 0 ;
868+ TEST_ICE_ctr_binding_req_retx = 0 ;
869+ TEST_ICE_ctr_allocate_retx = 0 ;
870+ TEST_ICE_ctr_create_permission_retx = 0 ;
869871}
870872
871873void TEST_ICE_ctr_Print ()
@@ -877,8 +879,9 @@ void TEST_ICE_ctr_Print()
877879 SpewMsg ( " TEST_ICE_ctr_allocate_send=%d\n " , TEST_ICE_ctr_allocate_send );
878880 SpewMsg ( " TEST_ICE_ctr_send_ind_send=%d\n " , TEST_ICE_ctr_send_ind_send );
879881 SpewMsg ( " TEST_ICE_ctr_data_ind_recv=%d\n " , TEST_ICE_ctr_data_ind_recv );
880- SpewMsg ( " TEST_ICE_ctr_binding_req_retx=%d\n " , TEST_ICE_ctr_binding_req_retx );
881- SpewMsg ( " TEST_ICE_ctr_allocate_retx=%d\n " , TEST_ICE_ctr_allocate_retx );
882+ SpewMsg ( " TEST_ICE_ctr_binding_req_retx=%d\n " , TEST_ICE_ctr_binding_req_retx );
883+ SpewMsg ( " TEST_ICE_ctr_allocate_retx=%d\n " , TEST_ICE_ctr_allocate_retx );
884+ SpewMsg ( " TEST_ICE_ctr_create_permission_retx=%d\n " , TEST_ICE_ctr_create_permission_retx );
882885}
883886
884887// Compare IP addresses, ignoring the port.
@@ -988,6 +991,8 @@ void CSteamNetworkingSocketsSTUNRequest::Think( SteamNetworkingMicroseconds usec
988991 ++TEST_ICE_ctr_binding_req_retx;
989992 else if ( nMsgType == k_nTURN_AllocateRequest )
990993 ++TEST_ICE_ctr_allocate_retx;
994+ else if ( nMsgType == k_nTURN_CreatePermissionRequest )
995+ ++TEST_ICE_ctr_create_permission_retx;
991996 else
992997 AssertMsg ( false , " Untracked STUN retransmit type 0x%x" , nMsgType );
993998 }
0 commit comments