--- etcp_connections.c.backup +++ etcp_connections.c @@ -409,6 +409,7 @@ uint8_t enc_buf[1600]; size_t enc_buf_len; dgram->timestamp=get_current_timestamp(); + printf("[ETCP DEBUG] About to encrypt: data_len=%d, noencrypt_len=%d, len=%d\\n", dgram->data_len, dgram->noencrypt_len, len); // DUMP: Show packet before encryption dump_packet_bytes("BEFORE ENCRYPT", dgram->data, dgram->data_len);