Commit Graph
23 Commits
Author SHA1 Message Date
Evgeny 45dccf2e87 Control: harden socket against malformed data and buffer overflows
- immediate close on bad size/type/payload
- recv_len guard to prevent overflow
- unknown commands now close without response
2026-04-02 20:27:08 +03:00
Evgeny b4edbaf887 1 2026-03-31 16:24:50 +03:00
Evgeny 730b70df95 1 2026-03-30 22:50:54 +03:00
jeka 6f7e8cb5e6 add per-link inflight 2026-03-22 20:08:16 +03:00
jeka cf37f27e9f 1 2026-03-19 22:24:16 +03:00
jeka 0a096d9eef control socket disconnect fix 2026-03-17 15:37:51 +03:00
jeka 54d2b65167 monitor to new protocol 2026-03-14 05:46:20 +03:00
jeka 23cab26ef6 1 2026-03-08 16:52:24 +03:00
jeka bfcc806bfe 1 2026-03-08 00:47:02 +03:00
jeka 41a6f8e067 1 2026-03-07 22:44:19 +03:00
jeka 4be6025e91 1 2026-03-07 20:47:15 +03:00
jeka 0d1c357158 add metrics to monitor 2026-03-07 19:01:14 +03:00
Evgeny d47f3783a8 etcpmon: add queue metrics, error counters, timer flags and peer_node_id
- Added queue bytes/packets for all 6 ETCP queues
- Added error counters: reinit_count, reset_count, pkt_format_errors
- Added timer active flags for connection and link timers
- Added peer_node_id to identify connection in metrics
2026-03-07 17:27:02 +03:00
jeka c10a2046cc mem 2026-03-06 01:36:57 +03:00
jeka 603c1e87d3 +bping +gui rtt 2026-03-04 23:14:32 +03:00
jeka ff6d4de89e refactor 2026-02-28 15:15:34 +03:00
Evgeny 8d49c2e8bf compile fixes 2026-02-21 21:30:39 +03:00
jeka 6df3abb48e gr restore v2 2026-02-21 21:24:09 +03:00
jeka 3e48480726 восстановление морды (частичное) 2026-02-21 21:04:11 +03:00
Evgeny deb0bf5acf Fix: INVALID_SOCKET usage in POSIX code and remove missing test
- control_server.c: Use -1 instead of INVALID_SOCKET on lines 241 and 511
- Makefile.am: Remove test_control_server reference (source file missing)
2026-02-21 18:09:47 +03:00
jeka 3ec3f54191 gui + small fixes 2026-02-21 17:55:20 +03:00
jeka abc62b08d3 Build: incremental build support, Windows uasync fixes, TUN cross-platform refactoring
- build.sh: added --full flag for full rebuild (autoreconf + configure + make)
- build_direct.sh: incremental compilation (skips unchanged files)
- build_full.bat: new Windows batch for full rebuild
- configure.ac: fixed Windows detection using AC_COMPILE_IFELSE
- lib/u_async.c/h: Windows wakeup socket support, uasync_post for thread-safe callbacks
- src/tun_if.c/h: cross-platform TUN refactoring, Windows read thread support
- src/tun_windows.c: Windows TUN implementation improvements
- src/control_server.c: removed premature return statement
- src/routing.c: include ordering fix
- src/utun.c: windows compat includes
- Deleted obsolete net_emulator/Makefile and tinycrypt/Makefile
2026-02-20 21:20:50 +03:00
jeka 6e04959af8 Control: Add monitoring server with ETCP protocol support
- Implement control_server.c/h for monitoring and management
- Add Windows-compatible uasync_poll using select() instead of WSAPoll
- Fix Wintun adapter creation to open existing adapters first
- Add debug category for control server operations
- Update build files to include control server in compilation
- Add test_control_server to test suite
2026-02-19 01:24:42 +03:00