diff --git a/src/route_ping.c b/src/route_ping.c index a6aaf04f..f2a9e6e5 100644 --- a/src/route_ping.c +++ b/src/route_ping.c @@ -171,6 +171,7 @@ int route_ping_send_req_addr(struct ROUTE_BGP* bgp, struct ETCP_CONN* to_conn, static void route_ping_series_finish(struct route_ping_series_ctx* ctx) { if (!ctx || !ctx->reply_conn) { u_free(ctx); + DEBUG_ERROR(DEBUG_CATEGORY_BGP, "zero args"); return; } @@ -226,6 +227,8 @@ static void route_ping_single_cb(int success, ctx->sum_rtt += rtt; } + DEBUG_INFO(DEBUG_CATEGORY_BGP, "ping response id=%zu", request_id); + /* Если ещё не все пакеты отправлены — сразу шлём следующий */ if (ctx->count_sent < ctx->count_total) { int ret = etcp_send_ping_to_socket(