You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Evgeny
7f5325ac24
etcp_router: fix inflight underflow by splitting rx_acked into tx_acked + last_sent_ack_seq
...
rx_acked was used for two conflicting purposes:
1. remote ack of our sends (inflight = tx_seq - rx_acked)
2. our last sent ACK seq (dedup: rx_seq != rx_acked)
When the ack timer fired and set rx_acked = rx_seq, it overwrote
the inflight-tracking value. If rx_seq > tx_seq, the computation
tx_seq - rx_acked underflowed (e.g. 18 - 24 = 0xFFFFFFFA),
permanently blocking router_drain_send_q and causing send_q to
grow indefinitely.
Fix:
- Split rx_acked into tx_acked (remote ack, for inflight) and
last_sent_ack_seq (our ACK, for dedup)
- Incoming ACK handler only advances tx_acked forward (stale guard)
- Use int32_t cast on all inflight comparisons to handle stale states
- Add etcp_router architecture diagram (doc/etcp_router_arch.md)
4 months ago
.opencode
add framed read for raw fd (2-byte len prefix), TCP_NODELAY, fix test half-close ordering
5 months ago
doc
etcp_router: fix inflight underflow by splitting rx_acked into tx_acked + last_sent_ack_seq
4 months ago
lib
fix: move debug logs before async operations (queue_put, timer_set, resume) for meaningful log ordering
4 months ago
net_emulator
Add name parameter to uasync_set_timeout for timer identification in dumps
5 months ago
src
etcp_router: fix inflight underflow by splitting rx_acked into tx_acked + last_sent_ack_seq
4 months ago
tests
etcp_router: fix inflight underflow by splitting rx_acked into tx_acked + last_sent_ack_seq
4 months ago
tinycrypt
Build: incremental build support, Windows uasync fixes, TUN cross-platform refactoring
7 months ago
tools
etcpmon: widen debug level labels by 30% and shift radio buttons right
4 months ago
.gitignore
fix tcp_proxy deadlock: send CLOSE on TUN FIN + full proxy diagnostics
4 months ago
AGENTS.md
ag
4 months ago
AUDIT_FINDINGS.txt
add audit findings document (51 issues across 12 modules)
5 months ago
INSTALL.autotools
…
Makefile
build: out-of-tree VPATH build, tests run once with colored timing
5 months ago
Makefile.am
build: out-of-tree VPATH build, tests run once with colored timing
5 months ago
build.bat
1
7 months ago
build.sh
add inflight data return to normalizer on reinit + configurable inflight min/max limits + test
5 months ago
build_bsd_full.sh
1
5 months ago
build_direct.sh
Build: incremental build support, Windows uasync fixes, TUN cross-platform refactoring
7 months ago
build_full.bat
1
7 months ago
build_linux_full.sh
1
7 months ago
check.bat
…
configure.ac
1
7 months ago
filelist.txt
+memory check module
7 months ago
nat.txt
Добавлено поле interface_addr в ETCP_SOCKET и interface_ip/port в BGP_NAT_CHECK_REQ
5 months ago
utun.conf.sample
proxy: rename + simplify + backpressure
4 months ago
utun.exe.manifest
…
utun.md
Fix: Add bounds/mtu checks, underflow protection and null deref fix for ETCP robustness
5 months ago
utun_start.sh
…
utun_stop.sh
…
utun_stop1.sh
…