|
|
|
|
@ -24,15 +24,6 @@ static void etcp_connections_read_callback_socket(socket_t sock, void* arg);
|
|
|
|
|
struct ETCP_CONN* etcp_connection_create(struct UTUN_INSTANCE* instance); |
|
|
|
|
static void etcp_link_remove_from_connections(struct ETCP_SOCKET* conn, struct ETCP_LINK* link); |
|
|
|
|
|
|
|
|
|
// Unified packet dump function - uses configured format
|
|
|
|
|
static void packet_dump(const char* prefix, const uint8_t* data, size_t len, struct ETCP_LINK* link) { |
|
|
|
|
DEBUG_TRACE(DEBUG_CATEGORY_CONNECTION, ""); |
|
|
|
|
if (!data || len == 0) return; |
|
|
|
|
|
|
|
|
|
// Full multi-line format (legacy)
|
|
|
|
|
log_dump(prefix, data, len); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void etcp_link_send_init(struct ETCP_LINK* link, uint8_t reset); |
|
|
|
|
static int etcp_link_send_reset(struct ETCP_LINK* link); |
|
|
|
|
static void etcp_link_init_timer_cbk(void* arg); |
|
|
|
|
@ -1115,7 +1106,7 @@ process_decrypted:
|
|
|
|
|
return; // INIT_RESPONSE is handled, no further processing needed
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// packet_dump("RECV decrypted:", pkt->data, pkt->data_len, link);
|
|
|
|
|
// log_dump("RECV decrypted:", pkt->data, pkt->data_len, link);
|
|
|
|
|
|
|
|
|
|
etcp_conn_input(pkt); |
|
|
|
|
return; |
|
|
|
|
|