Evgeny 69112ffde1 feat: NAT_DIRECT detection during INIT handshake + refactor init packet structs
- Extract ETCP_INIT_REQUEST_PKT / ETCP_INIT_RESPONSE_PKT named structs
- Replace anonymous structs and manual offset parsing with typed struct access
- Add src_ipv4/src_port fields (V2) to INIT REQUEST for DIRECT detection
- Server compares reported client addr with observed src; match + public IP → NAT_TYPE_DIRECT
- Skip STUN NAT check for DIRECT links
- route_bgp: handle NAT_TYPE_DIRECT → NAT_VERIFIED_DIRECT in handle_nat_info
2026-06-29 23:15:38 +03:00
1
2026-04-21 16:14:03 +00:00
1
2026-02-28 16:25:01 +03:00
1
2026-03-08 18:52:53 +03:00
1
2026-02-28 16:25:01 +03:00
1
2026-03-08 19:59:42 +03:00
2026-03-06 15:55:16 +03:00
S
Description
No description provided
GPL-3.0
472 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 64.6%
C++ 17.1%
Kotlin 9.4%
HTML 5.8%
Python 1.2%
Other 1.7%