1
This commit is contained in:
1 parent
2f97196ffd
commit
491f44e05e
1 file changed
+5
-3
+5
-3
@@ -147,8 +147,8 @@ static void route_pkt(struct UTUN_INSTANCE* instance, struct ll_entry* entry, ui
|
|||||||
DEBUG_TRACE(DEBUG_CATEGORY_ROUTING, "Local route to %s", ip_to_str(&addr, AF_INET).str);
|
DEBUG_TRACE(DEBUG_CATEGORY_ROUTING, "Local route to %s", ip_to_str(&addr, AF_INET).str);
|
||||||
} else {
|
} else {
|
||||||
if (nq->paths && nq->paths->head) {
|
if (nq->paths && nq->paths->head) {
|
||||||
struct ll_entry* path_entry = nq->paths->head;
|
struct NODEINFO_PATH* path = (struct NODEINFO_PATH*)nq->paths->head;
|
||||||
conn = (struct ETCP_CONN*)path_entry->data;
|
conn = path->conn;
|
||||||
}
|
}
|
||||||
if (!conn) {
|
if (!conn) {
|
||||||
DEBUG_WARN(DEBUG_CATEGORY_ROUTING, "route_pkt: no path for node %016llx dst=%s conn=%s",
|
DEBUG_WARN(DEBUG_CATEGORY_ROUTING, "route_pkt: no path for node %016llx dst=%s conn=%s",
|
||||||
@@ -190,8 +190,10 @@ static void route_pkt(struct UTUN_INSTANCE* instance, struct ll_entry* entry, ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send to ETCP
|
// Send to ETCP
|
||||||
DEBUG_TRACE(DEBUG_CATEGORY_ROUTING, "route_pkt: sending %zu bytes to ETCP %s", ip_len, conn->log_name);
|
DEBUG_TRACE(DEBUG_CATEGORY_ROUTING, "route_pkt: sending %zu bytes to ETCP %s dst=%s",
|
||||||
|
ip_len, conn->log_name[0] ? conn->log_name : "unknown", ip_to_str(&addr, AF_INET).str);
|
||||||
int send_err = etcp_send(conn, entry);
|
int send_err = etcp_send(conn, entry);
|
||||||
|
DEBUG_TRACE(DEBUG_CATEGORY_ROUTING, "send retcode=%d", send_err);
|
||||||
if (send_err != 0) {
|
if (send_err != 0) {
|
||||||
DEBUG_WARN(DEBUG_CATEGORY_ROUTING, "route_pkt: etcp_send failed: dst=%s err=%d",
|
DEBUG_WARN(DEBUG_CATEGORY_ROUTING, "route_pkt: etcp_send failed: dst=%s err=%d",
|
||||||
ip_to_str(&addr, AF_INET).str, send_err);
|
ip_to_str(&addr, AF_INET).str, send_err);
|
||||||
|
|||||||
Reference in new issue
Block a user