Evgeny 2a14075a88 ETCP: Add NAT IP:port tracking to handshake protocol
- Add peer_ipv4 (4 bytes) and peer_port (2 bytes) to INIT_RESPONSE packet
- Server now returns client's external IP:port in handshake response
- Client parses and stores NAT address in ETCP_LINK structure
- Track NAT address changes with nat_changes_count counter
- Track NAT address matches with nat_hits_count counter
- Legacy protocol support: detect old format without NAT info
- Add DEBUG logging for NAT address initialization/changes/hits

This allows clients behind NAT to discover their external address
during the ETCP handshake process.

All 21 tests pass successfully.
2026-02-14 11:07:00 +03:00
2026-02-13 18:12:26 +03:00
…
…
S
Description
No description provided
GPL-3.0
447 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 77.9%
C++ 12.7%
Kotlin 5.3%
HTML 2.6%
Python 0.5%
Other 0.7%