Commit Graph
184 Commits
Author SHA1 Message Date
Evgeny e31d70d556 Fix: seq counter overflow handling in etcp_output_try_assembly 2026-03-07 12:34:35 +03:00
jeka 3dedd7ce2d race condition fix (win tun) 2026-03-07 12:21:01 +03:00
jeka 5569fb7ad4 проверки thread в ll_queue 2026-03-06 22:45:00 +03:00
jeka 283de28970 +queue names 2026-03-06 21:01:24 +03:00
jeka da4d7d3892 доработки роутинга 2026-03-06 19:24:29 +03:00
jeka a313d748ea 1 2026-03-06 16:40:19 +03:00
jeka 401cfb6d51 +memory check module
fix double free @routing
2026-03-06 15:55:16 +03:00
jeka c10a2046cc mem 2026-03-06 01:36:57 +03:00
jeka 3d0b7fcc13 дочистка очередей 2026-03-05 21:54:01 +03:00
jeka faf67c1b6a 1 2026-03-05 21:30:30 +03:00
jeka e39798261d dump 2026-03-05 21:16:02 +03:00
jeka 54a2a4a3d0 1 2026-03-05 20:26:40 +03:00
jeka a2004dd52c add normalizer reset from etcp connection reset 2026-03-05 19:59:11 +03:00
Evgeny b41bec4d04 тесты проходят добавлен mtu в link 2026-03-05 17:16:34 +03:00
jeka 312c5d3330 1 2026-03-05 11:50:27 +03:00
jeka 5e1feccb1f len fix 2026-03-05 02:31:57 +03:00
jeka 603c1e87d3 +bping +gui rtt 2026-03-04 23:14:32 +03:00
jeka 939f8d2504 ts 2026-03-04 20:43:43 +03:00
jeka 2ee77d17b6 cleanup tests (winsock) 2026-03-04 17:27:33 +03:00
Evgeny b61b5e1024 linux routing + debug output 2026-03-04 14:59:38 +03:00
jeka 0843c11268 1 2026-03-04 11:38:42 +03:00
jeka 785b739d69 config 2026-03-04 01:53:17 +03:00
jeka 491d9253c9 reinit 2026-03-03 23:45:34 +03:00
jeka 9ef705fd3c +keepalive/reset interval sync 2026-03-03 19:15:34 +03:00
jeka f25e59e75d reset fix 2026-03-03 18:41:39 +03:00
jeka 8baf1ee03b logs 2026-03-03 15:15:34 +03:00
jeka 50c58b4f81 r 2026-03-02 22:05:21 +03:00
jeka 5968108227 tun/win шлёт в routing. 2026-03-02 20:22:34 +03:00
jeka 55e1ea444e 1 2026-03-01 17:57:24 +03:00
jeka 57b444c5cf 1 2026-03-01 17:55:33 +03:00
jeka 0afd75a228 obf 2026-03-01 17:19:47 +03:00
jeka 5d33343db7 пердайт icmp в tun 2026-03-01 02:48:03 +03:00
jeka 157ba374a7 Fix: Add ifindex field for Linux
- Move ifindex field outside WIN32 conditional block
- Initialize ifindex in Linux tun_platform_init()
2026-02-28 16:31:04 +03:00
jeka 1fbe744e20 Fix: Suppress netsh output 2026-02-28 16:23:23 +03:00
jeka c29d718d32 Fix: Delete system routes on shutdown
- Add tun_route_del_all() to delete routes from config
- Use netsh for route deletion on Windows (like add)
- Store route_subnets in UTUN_INSTANCE for cleanup
- Delete routes in utun_instance_destroy() before tun_close()
2026-02-28 16:20:16 +03:00
jeka 6802df1393 Fix: Use netsh for adding routes on Windows (wintun)
- Get wintun interface index directly after adapter creation
- Use netsh instead of CreateIpForwardEntry (doesn't work with wintun)
- Fallback to CreateIpForwardEntry if netsh fails
2026-02-28 16:08:06 +03:00
jeka ff6d4de89e refactor 2026-02-28 15:15:34 +03:00
jeka 75676127e5 1 2026-02-22 23:28:11 +03:00
jeka 0a94788fd5 1 2026-02-22 00:49:47 +03:00
jeka a6aa8bc377 route 2026-02-21 23:44:22 +03:00
jeka 363f3e07b3 routing - local routes (id,ip) 2026-02-21 21:57:17 +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
Evgeny 4060cd175e fix build for linux 2026-02-20 22:39:58 +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
Evgeny d0576e8043 ETCP: реализация восстановления связи при падении всех линков
- Добавлена функция etcp_loadbalancer_get_link_status() для проверки состояния связи
- Клиент: при падении всех линков запускается отправка ETCP_INIT_REQUEST_NOINIT (0x04)
- Сервер: при приеме NOINIT отвечает ETCP_INIT_RESPONSE_NOINIT (0x05) без сброса если линк initialized
- При приеме любого пакета отменяется таймер восстановления
- ETCP_INIT_RESPONSE (0x03) вызывает сброс всего ETCP_CONN
- Переименованы константы: ETCP_CHANNEL_INIT -> ETCP_INIT_REQUEST_NOINIT,
  ETCP_CHANNEL_RESPONSE -> ETCP_INIT_RESPONSE_NOINIT

Все 23 теста проходят
2026-02-17 01:41:05 +03:00