1
This commit is contained in:
1 parent
4c3ca00aee
commit
3382bca77f
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);
|
||||
} else {
|
||||
if (nq->paths && nq->paths->head) {
|
||||
struct ll_entry* path_entry = nq->paths->head;
|
||||
conn = (struct ETCP_CONN*)path_entry->data;
|
||||
struct NODEINFO_PATH* path = (struct NODEINFO_PATH*)nq->paths->head;
|
||||
conn = path->conn;
|
||||
}
|
||||
if (!conn) {
|
||||
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
|
||||
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);
|
||||
DEBUG_TRACE(DEBUG_CATEGORY_ROUTING, "send retcode=%d", send_err);
|
||||
if (send_err != 0) {
|
||||
DEBUG_WARN(DEBUG_CATEGORY_ROUTING, "route_pkt: etcp_send failed: dst=%s err=%d",
|
||||
ip_to_str(&addr, AF_INET).str, send_err);
|
||||
|
||||
Reference in new issue
Block a user