Diagnose adopted transports and isolate traffic test commands

This commit is contained in:
evgeny committed 2026-10-22 22:39:43 +02:00
1 parent 34e346463d
commit 17c92e1745
2 files changed
+8 -4

No files matched your search

+2
View File
@@ -832,6 +832,8 @@ int node_conn_direct_open(struct UTUN_INSTANCE* inst, uint64_t node_id,
if (!entry) { DEBUG_ERROR(DEBUG_CATEGORY_NCD, "[ncd] alloc entry failed node=0x%016llx", (unsigned long long)node_id); return NCD_ERR; }
entry->node_id = node_id; entry->conn = conn; entry->ua = inst->ua;
entry->up = (uint8_t)(conn->links_up ? 1 : 0);
DEBUG_DEBUG(DEBUG_CATEGORY_NCD, "[ncd] adopt conn=%p node=%016llx state=%d links_up=%u initialized=%u tx=%u",
(void*)conn, (unsigned long long)node_id, conn->state, conn->links_up, conn->initialized, conn->tx_state);
if (ncd_registry_add(inst, entry) < 0) { u_free(entry); return NCD_ERR; }
struct NODE_CONN_DIRECT* h = u_calloc(1, sizeof(*h));