Evgeny
dd4644776d
Refactor: Add dgram fields to ll_queue, remove ref_count, integrate pkt_normalizer
...
- ll_queue: Add dgram, dgram_free_fn, dgram_pool, len fields to ll_entry
- ll_queue: Remove ref_count, simplify memory management
- etcp: Add normalizer pointer to ETCP_CONN struct
- pkt_normalizer: Major refactoring for queue integration
- tests: Update for new ll_entry structure
- cleanup: Remove backup files
8 months ago
Evgeny
fbc8e3d9e4
Fix: Add pkt_normalizer.o to test LDADD and update simple_traffic test to use normalizer queues
8 months ago
Evgeny
985ed5c4b1
Fix ETCP test: server connection registration and packet handling
...
- etcp_connections.c: Add incoming server connections to instance->connections list
- test_etcp_simple_traffic.c: Fix ETCP_FRAGMENT handling in check_packet_received()
- test_etcp_simple_traffic.c: Fix packet size check (ETCP adds headers to payload)
- Reduced debug verbosity in ll_queue.c and debug_config.c
8 months ago
Evgeny
3ddfb79338
Backup before replacing all printf with DEBUG_ macros in tests
8 months ago
Evgeny
1bafe6a681
Backup before fixing etcp_connections list addition
8 months ago
Evgeny
d74f76a5a0
Fix: Resolved double free in timeout_heap_pop() and test_etcp_simple_traffic bind conflict
...
- Fixed incorrect init_connections() call in test_etcp_simple_traffic.c (was calling server_instance instead of client_instance)
- Fixed double free in timeout_heap_pop() when handling deleted elements
- Enhanced NULL pointer safety in uasync_print_resources() by removing complex heap manipulation
- Added debug logging to timeout_heap_pop() for better error tracking
Test results: test_etcp_simple_traffic now passes without double free errors
8 months ago
Evgeny
64489fa194
Add comprehensive ETCP traffic flow debugging tests
...
Implemented multiple levels of ETCP traffic debugging tests:
1. test_etcp_minimal.c - Basic packet analysis and section parsing:
- Single section payload packets
- Multi-section packets (TIMESTAMP, ACK, PAYLOAD)
- Connection establishment packets (INIT_REQUEST, INIT_RESPONSE)
- Detailed section-by-section analysis with timing
2. test_etcp_simple_traffic.c - TUN-less traffic simulation:
- Direct packet injection and analysis
- Connection state simulation
- Traffic generation and processing
- Comprehensive packet capture and analysis
3. test_etcp_traffic_flow.c - Full instance simulation:
- Two-instance setup with traffic analysis
- Packet capture hooks in ETCP pipeline
- Traffic analyzer with detailed metrics
- Connection establishment debugging
Key debugging features added:
- Section-by-section packet parsing and validation
- Packet ID tracking and sequence analysis
- ACK processing with timestamp correlation
- Connection handshake simulation
- Retransmission request handling
- Multi-section packet composition analysis
- Traffic flow metrics and timing analysis
All tests use comprehensive DEBUG_* output for detailed traffic flow tracing:
- Packet type identification
- Section length validation
- Payload content analysis
- Connection state tracking
- Timing and sequence verification
This enables thorough debugging of ETCP protocol traffic flow, packet processing,
and connection establishment without requiring TUN devices or network setup.
8 months ago