94cf07ee3d4ecbd22fbd2ef05a03768decd2e398
- Fix port encoding: PCB stores ports in host byte order, tcp_create_segment uses htons - Fix tcp_bind/tcp_connect: ntohs incoming network-order ports - Fix demux comparisons: use host-order sport/dport statics instead of in-place ntohs - Fix tcp_output_alloc_header_common: htons for port output - Add static sport/dport variables (host byte order) to avoid tcphdr corruption - Fix sock_transport_error_callback: handle EPOLLERR during non-blocking connect - Fix mapping local_port: store host-order port for find_mapping_by_port - Fix tcp_proxy_raw_read/tun_input: use IP total length for packet boundaries - test_tcp_proxy: reduce size to 2KB, fix port, add debug_init, add echo server log - test_tcp_proxy handshake and basic data flow now working (known: cwnd/poll throughput tuning needed)
Languages
C
63.6%
C++
17.3%
Kotlin
9.4%
HTML
6.5%
Python
1.2%
Other
1.7%