ad8bc0ae0042129f4f53001ee483dbdbd14bc27d
- 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
64.6%
C++
17.1%
Kotlin
9.4%
HTML
5.8%
Python
1.2%
Other
1.7%