|
|
|
@ -241,7 +241,8 @@ static void route_ping_series_finish(struct route_ping_series_ctx* ctx) { |
|
|
|
e->len = sizeof(struct BGP_PING_RESPONSE); |
|
|
|
e->len = sizeof(struct BGP_PING_RESPONSE); |
|
|
|
etcp_send(ctx->reply_conn, e); |
|
|
|
etcp_send(ctx->reply_conn, e); |
|
|
|
DEBUG_INFO(DEBUG_CATEGORY_BGP, |
|
|
|
DEBUG_INFO(DEBUG_CATEGORY_BGP, |
|
|
|
"PING series done request_id=%016llx sent=%u ok=%u avg_rtt=%u", |
|
|
|
"PING series done %s request_id=%016llx sent=%u ok=%u avg_rtt=%u", |
|
|
|
|
|
|
|
ctx->reply_conn->log_name, |
|
|
|
(unsigned long long)ctx->request_id, |
|
|
|
(unsigned long long)ctx->request_id, |
|
|
|
(unsigned)ctx->count_sent, |
|
|
|
(unsigned)ctx->count_sent, |
|
|
|
(unsigned)ctx->count_ok, |
|
|
|
(unsigned)ctx->count_ok, |
|
|
|
@ -273,7 +274,7 @@ static void route_ping_single_cb(int success, |
|
|
|
ctx->sum_rtt += rtt; |
|
|
|
ctx->sum_rtt += rtt; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
DEBUG_INFO(DEBUG_CATEGORY_BGP, "ping response nonce=%llu", (unsigned long long)nonce); |
|
|
|
DEBUG_INFO(DEBUG_CATEGORY_BGP, "ping response nonce=%016llx", (unsigned long long)nonce); |
|
|
|
|
|
|
|
|
|
|
|
/* Если ещё не все пакеты отправлены — сразу шлём следующий */ |
|
|
|
/* Если ещё не все пакеты отправлены — сразу шлём следующий */ |
|
|
|
if (ctx->count_sent < ctx->count_total) { |
|
|
|
if (ctx->count_sent < ctx->count_total) { |
|
|
|
|