diff --git a/tests/test_etcp_api.c b/tests/test_etcp_api.c index 6777ede9..d8cd5a51 100644 --- a/tests/test_etcp_api.c +++ b/tests/test_etcp_api.c @@ -27,20 +27,9 @@ #include "../lib/debug_config.h" #define TEST_TIMEOUT_MS 3000 // 3 second timeout -/* - * NOTE: This test demonstrates ETCP API usage (etcp_send/etcp_bind). - * - * CURRENT LIMITATION: The test may fail because pkt_normalizer packer aggregates - * packets into ~1536 byte chunks, which exceeds ETCP's max payload of 1480 bytes. - * This causes encrypt_send to fail with "error 1" (len > 1480). - * - * The test is functional for demonstrating the API pattern, but full packet - * transfer requires fixing the packer to respect frag_size=mtu-100=1400. - */ - #define TOTAL_PACKETS 100 // Total packets to send #define MIN_PACKET_SIZE 10 // Minimum packet size -#define MAX_TEST_PACKET_SIZE 500 // Maximum packet size - packer aggregates packets +#define MAX_TEST_PACKET_SIZE 500 // Maximum packet size (packer aggregates) // Packet header size: seq(2) + size(2) + checksum(2) = 6 bytes #define PACKET_HEADER_SIZE 6 @@ -463,8 +452,7 @@ int main() { total_bytes, (float)total_bytes / TOTAL_PACKETS / 1024); debug_config_init(); -// debug_set_level(DEBUG_LEVEL_WARN); - debug_set_level(DEBUG_LEVEL_TRACE); + debug_set_level(DEBUG_LEVEL_WARN); debug_set_categories(DEBUG_CATEGORY_ALL); utun_instance_set_tun_init_enabled(0);