From f0e221ac989d0dc13791ac4f9a02ef0c39dd89bc Mon Sep 17 00:00:00 2001 From: evgeny Date: Fri, 4 Sep 2026 16:39:23 +0300 Subject: [PATCH] =?UTF-8?q?etcp=5Frouter:=20=D0=BF=D1=80=D0=B8=20no=20rout?= =?UTF-8?q?e=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B8=D1=82=D1=8C=20=D1=81?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D1=83=D0=B7=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D1=8B=20(<10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routing_layer/etcp_router.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/routing_layer/etcp_router.c b/src/routing_layer/etcp_router.c index 17a6ad096..5c9a94278 100644 --- a/src/routing_layer/etcp_router.c +++ b/src/routing_layer/etcp_router.c @@ -969,10 +969,21 @@ static void router_forward_transit(struct UTUN_INSTANCE* inst, struct ll_entry* struct TOPO_GROUP* group = topo_groups_find(inst->topo_groups, hdr->group_id); struct ETCP_CONN* next = topo_group_find_conn_for_node(group, hdr->dst_node_id); if (!next) { + int node_count = group && group->nodes ? queue_entry_count(group->nodes) : -1; DEBUG_WARN(DEBUG_CATEGORY_ETCPROUTE, "etcp_router: no route to %016llx svc_id=%u, dropping (group=%016llx nodes=%d)", (unsigned long long)hdr->dst_node_id, hdr->svc_id, - (unsigned long long)hdr->group_id, - group && group->nodes ? queue_entry_count(group->nodes) : -1); + (unsigned long long)hdr->group_id, node_count); + if (group && group->nodes && node_count > 0 && node_count < 10) { + char list[512]; int pos = 0; + struct ll_entry* e = group->nodes->head; + while (e) { + struct TOPO_GROUP_NODE* nq = (struct TOPO_GROUP_NODE*)e; + pos += snprintf(list + pos, sizeof(list) - pos, "%s%016llx(up=%02x)", + pos ? "," : "", (unsigned long long)nq->node_id, nq->conn_up); + e = e->next; + } + DEBUG_WARN(DEBUG_CATEGORY_ETCPROUTE, "etcp_router: group nodes: %s", list); + } free_entry(entry); return; } struct TRANSIT_QUEUE* tq = transit_queue_find(next, hdr->group_id, hdr->src_node_id, hdr->dst_node_id);