@ -21,7 +21,7 @@
struct route_ping_series_ctx {
struct ETCP_CONN * reply_conn ;
uint64 _t request_id ;
uint32 _t request_id ;
struct sockaddr_storage target_addr ;
uint8_t pubkey [ SC_PUBKEY_SIZE ] ;
struct ETCP_SOCKET * local_sock ;
@ -37,7 +37,7 @@ struct route_ping_series_ctx {
struct route_ping_pending {
struct route_ping_pending * next ;
struct ROUTE_BGP * bgp ;
uint64 _t request_id ;
uint32 _t request_id ;
route_ping_callback_t callback ;
void * arg ;
void * timeout_timer ;
@ -76,8 +76,8 @@ void route_ping_handle_resp(struct ROUTE_BGP* bgp, struct ETCP_CONN* from_conn,
return ;
}
const struct BGP_PING_RESPONSE * resp = ( const struct BGP_PING_RESPONSE * ) data ;
DEBUG_INFO ( DEBUG_CATEGORY_BGP , " from=%s request_id=%016ll x sent=%u ok=%u avg_rtt=%u " ,
from_conn - > log_name , ( unsigned long long ) resp - > request_id ,
DEBUG_INFO ( DEBUG_CATEGORY_BGP , " from=%s request_id=%08 x sent=%u ok=%u avg_rtt=%u " ,
from_conn - > log_name , ( unsigned ) resp - > request_id ,
( unsigned ) resp - > count_sent , ( unsigned ) resp - > count_ok , ( unsigned ) resp - > avg_rtt ) ;
struct route_ping_pending * * cur = & bgp - > ping_pending ;
@ -98,8 +98,8 @@ void route_ping_handle_resp(struct ROUTE_BGP* bgp, struct ETCP_CONN* from_conn,
}
cur = & ( * cur ) - > next ;
}
DEBUG_WARN ( DEBUG_CATEGORY_BGP , " request_id=%016ll x not found in pending list " ,
( unsigned long long ) resp - > request_id ) ;
DEBUG_WARN ( DEBUG_CATEGORY_BGP , " request_id=%08 x not found in pending list " ,
( unsigned ) resp - > request_id ) ;
}
void route_ping_cancel_for_conn ( struct ROUTE_BGP * bgp , struct ETCP_CONN * conn ) {
@ -119,7 +119,7 @@ void route_ping_cancel_for_conn(struct ROUTE_BGP* bgp, struct ETCP_CONN* conn) {
struct nat_check_arg * na = ( struct nat_check_arg * ) p - > arg ;
DEBUG_DEBUG ( DEBUG_CATEGORY_BGP , " checking pending req_id=%016llx via=%s link->etcp=%s " ,
( unsigned long long ) p - > request_id ,
( unsigned ) p - > request_id ,
p - > via_conn ? p - > via_conn - > log_name : " NULL " ,
( na & & na - > link & & na - > link - > etcp ) ? na - > link - > etcp - > log_name : " NULL " ) ;
@ -134,7 +134,7 @@ void route_ping_cancel_for_conn(struct ROUTE_BGP* bgp, struct ETCP_CONN* conn) {
u_free ( p ) ;
cancelled + + ;
DEBUG_INFO ( DEBUG_CATEGORY_BGP , " cancel_for_conn: cancelled req_id=%016llx " ,
( unsigned long long ) p - > request_id ) ;
( unsigned ) p - > request_id ) ;
} else {
cur = & ( * cur ) - > next ;
}
@ -207,8 +207,8 @@ int route_ping_send_req_addr(struct ROUTE_BGP* bgp, struct ETCP_CONN* to_conn,
pending - > timeout_timer = uasync_set_timeout ( bgp - > instance - > ua , wait_timeout_ms * 10 , pending , route_ping_pending_timeout , " route_ping " ) ;
DEBUG_INFO ( DEBUG_CATEGORY_BGP , " request_id=%016ll x ip=%s port=%u pubkey=%s " ,
( unsigned long long ) pending - > request_id ,
DEBUG_INFO ( DEBUG_CATEGORY_BGP , " request_id=%08 x ip=%s port=%u pubkey=%s " ,
( unsigned ) pending - > request_id ,
ip_to_str ( & target_ip , AF_INET ) . str , ( unsigned ) target_port , pubkey ? " yes " : " no " ) ;
return 0 ;
}
@ -241,9 +241,9 @@ static void route_ping_series_finish(struct route_ping_series_ctx* ctx) {
e - > len = sizeof ( struct BGP_PING_RESPONSE ) ;
etcp_send ( ctx - > reply_conn , e ) ;
DEBUG_INFO ( DEBUG_CATEGORY_BGP ,
" PING series done %s request_id=%016ll x sent=%u ok=%u avg_rtt=%u " ,
" PING series done %s request_id=%08 x sent=%u ok=%u avg_rtt=%u " ,
ctx - > reply_conn - > log_name ,
( unsigned long long ) ctx - > request_id ,
( unsigned ) ctx - > request_id ,
( unsigned ) ctx - > count_sent ,
( unsigned ) ctx - > count_ok ,
( unsigned ) avg_rtt ) ;
@ -366,8 +366,8 @@ void route_ping_handle_req(struct ROUTE_BGP* bgp,
}
DEBUG_INFO ( DEBUG_CATEGORY_BGP ,
" PING series start request_id=%016ll x target=%s:%u count=%u timeout=%u " ,
( unsigned long long ) ctx - > request_id ,
" PING series start request_id=%08 x target=%s:%u count=%u timeout=%u " ,
( unsigned ) ctx - > request_id ,
ip_to_str ( & sin - > sin_addr , AF_INET ) . str ,
ntohs ( sin - > sin_port ) ,
( unsigned ) ctx - > count_total ,