Commit Graph
33 Commits
Author SHA1 Message Date
Evgeny a6857d6267 Socket info: show config and netif IP in log, monitor shows interface IP 2026-04-24 01:23:52 +03:00
Evgeny 31fab3b1c7 GUI: Add NAT address to socket display in etcpmon 2026-04-23 22:02:42 +03:00
Evgeny 6cd13fdbf2 GUI: поле действия и кнопка Send для отправки команд в utun
- Добавлен ETCPMON_CMD_ACTION в протокол (32 байта текст)
- В GUI добавлено поле ввода и кнопка Send правее блока Sockets
- Добавлен etcpmon_client_send_action для отправки команд
- Обработка action 'nat' в control_server: запускает NAT check для всех линков
- Сделана route_bgp_start_link_nat_check не-static
- Добавлена route_bgp_request_nat_check_all
- Исправлен баг route_ping.c (request_id -> nonce)
- Исправлена линковка tests/Makefile.am
2026-04-22 20:52:30 +03:00
Evgeny e440e8cde0 Add duplicate packet counter to ACK frames
- Add rx_dup_count (local) and tx_dup_count (remote via ACK) to ETCP_CONN
- Extend ACK section format: add 16-bit rx_dup_count after last_delivered_id
- Reconstruct 32-bit tx_dup_count from received 16-bit diff
- Update etcpmon protocol and control_server to expose counters
- Update packet dumper for new ACK format
2026-04-22 16:04:11 +03:00
Evgeny d413412f55 Fix: use allocated_count from mem.c for busy memory calculation
busy = u_get_allocated_count() - memory_pool_get_total_free_blocks()
2026-04-21 17:41:45 +03:00
Evgeny 348776ead4 GUI: add active timeouts and busy memory blocks counters
- Add timeout_heap_get_size() to get active timer count
- Add global counters in memory_pool: g_total_free and g_total_allocated
- Simplify busy memory calculation to single formula:
  busy = memory_pool_get_total_allocated() - memory_pool_get_total_free_blocks()
- Add new IDC_EDIT_ACTIVE_TIMEOUTS and IDC_EDIT_BUSY_MEMORY to GUI
2026-04-21 17:22:58 +03:00
Evgeny c167cfe442 1 2026-04-14 22:28:25 +03:00
Evgeny 68350dab73 add sockets to gui 2026-04-14 21:50:32 +03:00
Evgeny fe51ffe6de add sockets to gui 2026-04-14 21:17:46 +03:00
jeka c5f94e1327 add inflight to gui 2026-04-09 12:51:55 +03:00
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