Commit Graph
565 Commits
Author SHA1 Message Date
Evgeny f587e9842f 1 2026-04-22 21:16:46 +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 29b295298f 1 2026-04-22 20:35:05 +03:00
Evgeny f44fbb0eb0 mass_update: по умолчанию запускает fast без аргументов 2026-04-22 18:29:31 +03:00
Evgeny 4a9ca67200 Исправлен byte order для IP адресов в NAT detection flow
- etcp_connections.c: парсинг NAT IP через memcpy (сохраняет NBO)
- route_bgp.c: убраны ntohl() для IP в NAT detection и route_bgp_send_nat_info
- route_ping.c: убран htonl() для IP в ping request
- тесты: обновлены ожидания NBO для nat_ip
2026-04-22 18:23:32 +03:00
Evgeny a0daaca9f3 Добавлено поле interface_addr в ETCP_SOCKET и interface_ip/port в BGP_NAT_CHECK_REQ
- platform_compat: get_interface_ip_by_index() для получения IP по ifindex
- ETCP_SOCKET: interface_addr заполняется из конфига/interface/default route
- BGP_NAT_CHECK_REQ: добавлены interface_ip/interface_port (network byte order)
- route_bgp_send_nat_check_req: отправляет interface_addr линка
- route_bgp_handle_nat_check_req: принимает interface данные в sockaddr-заглушку
2026-04-22 18:16:49 +03:00
Evgeny 1d0a0ea4ff Add RX/TX dup counters to ETCP monitor GUI
- Add IDC_EDIT_ETCP_RX_DUP and IDC_EDIT_ETCP_TX_DUP controls
- Insert RX Dup / TX Dup fields after Retrans in ETCP Metrics group
- Update tooltips, metrics display and clear functions
2026-04-22 16:28:33 +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 ac56b1da3e Update: mass_update.py - config in script dir, per-server SSH keys 2026-04-22 14:37:10 +03:00
Evgeny 8e57446f4c Fix: read PID from pidfile instead of using shell $! 2026-04-22 13:16:26 +03:00
Evgeny 5e639ebe9b Suppress route command output to console 2026-04-22 12:42:52 +03:00
Evgeny e465206071 1 2026-04-22 12:37:02 +03:00
Evgeny 2449b1f221 1 2026-04-22 12:35:51 +03:00
Evgeny 98dcd2fd4a Add remote update scripts for mass deployment
- utun_update.sh: Shell script for updating single instance
  * fast mode: git pull + make clean + make
  * full mode: complete rebuild with autotools
  * Auto-detects project root from script location
  * Handles PID-based process stop/start
  * Supports Linux and BSD (nproc/sysctl)
  * Returns proper exit codes (0-4)

- mass_update.py: Python script for parallel SSH updates
  * Parallel execution via ThreadPoolExecutor
  * Configurable via JSON (~/.utun_servers.json)
  * Supports custom port/user per server
  * Timeout and error handling
  * Summary output per server

Tools for remote mass deployment of uTun updates via SSH.
2026-04-22 12:24:48 +03:00
Evgeny dbb147c966 Update .gitignore to prevent accidental binary commits 2026-04-22 11:47:34 +03:00
Evgeny 665f72d7ce Remove accidentally committed binaries and temp files 2026-04-22 11:45:54 +03:00
Evgeny 8c0904e00c Merge branch 'master' of http://git.syqiq.tech/jeka/utun2 2026-04-22 11:40:24 +03:00
Evgeny ec1e3fab9d Fix: round-robin link selection + byte order fixes + local_node update 2026-04-22 11:39:50 +03:00
Evgeny f45508628e WIP: debug byte order diagnostics 2026-04-22 02:14:47 +03:00
jeka fc954581c1 1 2026-04-22 00:46:00 +03:00
Evgeny 783aed308b channel select: round-robin and inflight 2026-04-22 00:04:20 +03:00
Evgeny 9dc3e2665d etcpmon: translate tooltips to English 2026-04-21 20:47:09 +03:00
Evgeny 799a0b8132 etcpmon: add tooltips for all metrics fields with variable names and descriptions 2026-04-21 20:21:08 +03:00
Evgeny d2ca59e5e4 Fix: free pkt_pool memory for keepalive packets (data_len=0) 2026-04-21 19:27:17 +03:00
Charlie Root db2774fa81 1 2026-04-21 16:14:03 +00:00
Evgeny 170f079485 Add name parameter to uasync_set_timeout for timer identification in dumps 2026-04-21 19:06:45 +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
Charlie Root 8bec4fbe1e 1 2026-04-21 17:13:11 +03:00
Evgeny 8183d38838 mem: add allocations and frees counters with u_mem_get_counters() 2026-04-21 15:35:46 +03:00
Charlie Root 876e480f33 1 2026-04-21 15:33:46 +03:00
jeka bda6adb2a7 1 2026-04-21 15:18:09 +03:00
Charlie Root 89419a9cee 1 2026-04-21 02:29:31 +03:00
Evgeny ab828f80cd Memory: use DEBUG for hex_dump output instead of printf 2026-04-21 02:27:33 +03:00
Evgeny 8297c57ef4 Memory: refactor hex_dump to use buffer with DEBUG output 2026-04-21 02:26:27 +03:00
Evgeny b793406b28 1 2026-04-21 02:20:53 +03:00
Charlie Root d7481bfa8f 1 2026-04-21 01:56:48 +03:00
Evgeny 4855768884 Memory: add hex dump for unfreed blocks in u_report_unfreed_blocks 2026-04-21 01:54:20 +03:00
Evgeny d572b51eb0 Memory: add location tracking to pool alloc/free with debug logging 2026-04-20 22:48:27 +03:00
jeka aa432686f1 ping refactor 2026-04-18 22:26:54 +03:00
Evgeny b46608d6ae 1 2026-04-15 20:57:09 +03:00
Evgeny 52461ca94c 1 2026-04-15 19:12:47 +03:00
jeka 73203972cb 1 2026-04-15 19:10:18 +03:00
Evgeny 67c7ca93fe 1 2026-04-15 17:40:42 +03:00
Evgeny eb6197bacb 1 2026-04-15 17:17:00 +03:00
Evgeny 173f2c33c7 1 2026-04-15 16:53:39 +03:00
Evgeny 5d8f8fba83 1 2026-04-15 16:30:11 +03:00
Evgeny 7c294b73a0 1 2026-04-15 16:21:15 +03:00
Evgeny 1f54a26308 1 2026-04-15 16:20:14 +03:00
Evgeny 0e305f374d 1 2026-04-15 16:19:05 +03:00