Commit Graph
4254 Commits
Author SHA1 Message Date
evgeny f17c8bd9b6 Merge branch 'master' of http://git.syqiq.tech/jeka/utun2 2026-10-21 21:22:49 +02:00
evgeny 09a919a606 Fix TUN packet ownership, lifecycle and backend consistency
Unify TUN initialization and raw-IP writes, preserve socketpair directions, and bound reader delivery with queue backpressure. Make deferred packet ownership safe across close and uasync teardown, and apply per-interface MTU limits to lwIP MSS.

Validation: full check.sh passed 172 tests, 9 proxy integration checks, burst and load. TUN ASAN/UBSAN regressions passed 30 cases; TCP exchange passed with asymmetric and minimum MTUs. Sanitized NAT integration exposed an existing unaligned uint16_t read in eim_nat.c; that separate defect remains unchanged. Native Windows and FreeBSD validation remains outstanding.
2026-10-21 21:19:42 +02:00
evgeny 4d24f77d64 Merge branch 'master' of http://git.syqiq.tech/jeka/utun2 2026-10-21 20:26:26 +02:00
evgeny 4bb6fe5c23 Fix queue extraction in NTP regression cleanup 2026-10-21 20:18:49 +02:00
evgeny 6bc980fa15 Improve NTP failure diagnostics and source transition coverage 2026-10-21 20:18:17 +02:00
evgeny de86ce96c0 Document NTP contracts and verify corrected wall time 2026-10-21 20:16:38 +02:00
evgeny 39d03a2ffb Cover NTP correction, retries, faults and peer lifecycle 2026-10-21 20:15:17 +02:00
evgeny 0dd6506d35 Fix peer time cache ownership and callback teardown 2026-10-21 20:12:04 +02:00
evgeny f8eea78db5 Fix NTP offset and bound asynchronous polling cycles 2026-10-21 20:11:04 +02:00
evgeny 792c8830c0 Record recurring attachment test timeout during control validation 2026-10-21 20:06:51 +02:00
evgeny 476bc9d126 Finalize control server regression fixture cleanup 2026-10-21 20:04:30 +02:00
evgeny 45f0d68a85 Cover control server regressions and correct API documentation 2026-10-21 20:04:30 +02:00
evgeny 7c6c5d0578 Fix control server buffer bounds and client resource ownership 2026-10-21 20:04:19 +02:00
evgeny a163d73f69 Keep firewall reload regression on the selective path 2026-10-21 20:00:28 +02:00
evgeny cccb2a71a6 Set router packet length in firewall integration fixture 2026-10-21 19:59:34 +02:00
evgeny 53add352d2 Align firewall examples with symmetric destination filtering 2026-10-21 19:53:50 +02:00
evgeny 5fe6545acb Cover firewall parsing, bidirectional TUN filtering and reload failures 2026-10-21 19:52:51 +02:00
evgeny 000305e467 Filter both directions of the main TUN and remove obsolete firewall guide 2026-10-21 19:49:32 +02:00
evgeny 3d23c8c54e Reject invalid firewall configuration and preserve policy on reload failure 2026-10-21 19:48:54 +02:00
evgeny 0f2d3f81cd Make firewall rule replacement atomic and validate IPv4 packets 2026-10-21 19:48:19 +02:00
evgeny 87a778200f Report precise INI read failures and identity repair reasons 2026-10-21 19:09:03 +02:00
evgeny ef7a02f303 Bound edited INI growth and cover effective duplicate values 2026-10-21 19:06:59 +02:00
evgeny 98187c5dc8 Describe shared INI parsing and distribute its internal header 2026-10-21 19:04:54 +02:00
evgeny 7c18764381 Document config identity and publication guarantees 2026-10-21 19:04:53 +02:00
evgeny f6ab0f5551 Verify config updates preserve files and allocations under OOM 2026-10-21 19:03:39 +02:00
evgeny 6e246cf393 Bound INI buffers to allocator limits and log allocation errors 2026-10-21 19:03:38 +02:00
evgeny 7c4444b74d Test identity preservation and failed config publication 2026-10-21 19:02:20 +02:00
evgeny 6409d89899 Preserve config identity and publish verified updates safely 2026-10-21 19:00:06 +02:00
evgeny 0b1ebb141b Share INI parsing and validate complete configuration values 2026-10-21 18:54:43 +02:00
evgeny 78db7dbbb1 Test emulator forwarding and partial initialization cleanup 2026-10-21 18:14:03 +02:00
evgeny 7a7e655abb Update emulator uasync lifecycle and document forwarding rules 2026-10-21 18:12:06 +02:00
evgeny 7686ed129a Test broadcast UUID lifetime and callback registration contracts 2026-10-21 18:10:43 +02:00
evgeny f4c57de4bb Preserve broadcast UUIDs until TTL and document callback contracts 2026-10-21 18:08:50 +02:00
evgeny ea24363222 Consolidate TCP queue and resource lifecycle documentation in header 2026-10-21 17:59:08 +02:00
evgeny 690f2e97db Consolidate queue usage and backpressure documentation in header 2026-10-21 17:57:34 +02:00
evgeny c69dd5bb48 Consolidate debug configuration documentation in header 2026-10-21 17:56:13 +02:00
evgeny c6bafd0acd Consolidate socket lifecycle and wrapper documentation in header 2026-10-21 17:55:27 +02:00
evgeny 7aa202ed16 Consolidate platform adapter documentation in header 2026-10-21 17:55:27 +02:00
evgeny 19680e230e Consolidate serialization format and ownership documentation in header 2026-10-21 17:54:20 +02:00
evgeny d3e3372d96 Consolidate timeout heap ownership and complexity documentation 2026-10-21 17:54:20 +02:00
evgeny 3d52f2f245 Consolidate pool lifecycle and diagnostics documentation in header 2026-10-21 17:53:00 +02:00
evgeny 36e386c8b3 Consolidate memory ownership and allocation documentation in header 2026-10-21 17:53:00 +02:00
evgeny f8cf519a40 Consolidate sliding minimum documentation in header 2026-10-21 17:52:02 +02:00
evgeny aee1fac4d8 Consolidate outgoing IP documentation in header 2026-10-21 17:52:02 +02:00
evgeny ab0f69850a Clarify CPU indicator polling and pending responses 2026-10-21 17:48:35 +02:00
evgeny 30d6f57025 Document uasync scheduling, ownership and lifecycle contracts 2026-10-21 17:40:20 +02:00
evgeny 87d85c3334 Clarify queue callback scheduling and ownership contracts 2026-10-21 17:27:04 +02:00
evgeny fe68a967e8 Fix debug timestamps, default output and log reopening 2026-10-21 17:10:44 +02:00
evgeny c2aef94933 Fix allocation size overflow, zero-size OOM and debug category parsing 2026-10-21 17:07:11 +02:00
evgeny 1eecff981a Document POSIX descriptor zero exception in socket close 2026-10-21 16:57:44 +02:00