Commit Graph
94 Commits
Author SHA1 Message Date
Evgeny 189a93c71d fix cpu consume at idle 2026-04-03 03:29:51 +03:00
Evgeny 9f13cf5459 route redesign + tests 2026-03-30 18:26:56 +03:00
Evgeny 097e1acc6d queue: add variable size hash
bgp: add to headers new node info
2026-03-28 21:52:46 +03:00
Evgeny 8030161ea6 -warn 2026-03-27 15:14:07 +03:00
Evgeny b10fd59b6d 1 2026-03-26 00:01:47 +03:00
Evgeny 14bf6328a6 1 2026-03-25 23:49:59 +03:00
Evgeny 98f886b8a8 test fix, log update 2026-03-25 22:49:57 +03:00
jeka e87f09cff8 1 2026-03-25 20:39:12 +03:00
jeka adcebcc31b 1 2026-03-25 20:35:45 +03:00
jeka ceb6ee2103 +ip change 2026-03-25 18:39:31 +03:00
jeka be037780a5 1 2026-03-15 01:44:37 +03:00
jeka 65b6b6c150 fix ack timestamp 2026-03-13 22:35:26 +03:00
jeka e670715c8e 1 2026-03-13 16:19:58 +03:00
jeka aa5171bcd1 route improvements 2026-03-12 02:57:38 +03:00
jeka 473190281a routing базово работает 2026-03-09 23:07:38 +03:00
Evgeny f168f1dc8b 1 2026-03-08 19:05:31 +03:00
Evgeny daba3b96a0 1 2026-03-08 18:52:53 +03:00
jeka 60d97a90b1 1 2026-03-08 17:35:00 +03:00
jeka 2beb945bb0 1 2026-03-08 17:31:56 +03:00
jeka 5816fbea70 1 2026-03-08 17:19:38 +03:00
jeka 8880db0ca2 1 2026-03-08 16:52:24 +03:00
jeka 0e9a91729c 1 2026-03-07 20:47:15 +03:00
jeka 5d4cef0c3e race condition fix (win tun) 2026-03-07 12:21:01 +03:00
jeka 5dfd1ea5fe проверки thread в ll_queue 2026-03-06 22:45:00 +03:00
jeka 1811764f6d +queue names 2026-03-06 21:01:24 +03:00
Evgeny 55828da328 c 2026-03-06 16:19:30 +03:00
jeka 7c29349de9 1 2026-03-06 15:56:41 +03:00
jeka 066a9aa89e +memory check module
fix double free @routing
2026-03-06 15:55:16 +03:00
jeka 15c7968c8c mem 2026-03-06 01:36:57 +03:00
jeka 76555f019b dump 2026-03-05 21:16:02 +03:00
jeka 69d33636bf 1 2026-03-05 15:05:20 +03:00
jeka 357169a38a 1 2026-03-05 15:03:27 +03:00
jeka 5e4db00d4b queue add check consistency 2026-03-05 14:56:23 +03:00
jeka 32090cfa1d len fix 2026-03-05 02:31:57 +03:00
jeka de053a00c0 cleanup tests (winsock) 2026-03-04 17:27:33 +03:00
Evgeny 1aec884c2d linux routing + debug output 2026-03-04 14:59:38 +03:00
jeka b20bff32dd config 2026-03-04 01:53:17 +03:00
jeka 61d575f09b logs 2026-03-03 15:15:34 +03:00
jeka c271084d35 tun/win шлёт в routing. 2026-03-02 20:22:34 +03:00
jeka c420b8f18e пердайт icmp в tun 2026-03-01 02:48:03 +03:00
jeka 9d0223d3fa refactor 2026-02-28 15:15:34 +03:00
jeka b27ea97055 1 2026-02-22 23:28:11 +03:00
Evgeny 8502451ec7 compile fixes 2026-02-21 21:30:39 +03:00
jeka d10bddd1f7 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 734851329f 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
jeka 3ab19094d0 Fix: segfault in ETCP tests and add wintun.dll to gitignore
- Fix segfault in ETCP tests by initializing uECC RNG in sc_init_local_keys()
- Fix segfault during cleanup by adding reference counting to socket_platform_cleanup()
- Add wintun.dll to .gitignore
- Update AGENTS.md and platform compatibility headers

All 19 tests now pass successfully.
2026-02-16 23:36:50 +03:00
jeka 4a3c5724b7 Windows: Исправлен запуск utun - TUN, логирование, права администратора
- Добавлен platform_compat.c с кроссплатформенной генерацией случайных чисел
- Исправлена генерация ключей и node_id на Windows (вместо /dev/urandom)
- PID файл отключен по умолчанию на Windows
- Добавлено двойное логирование: файл utun.log + консоль
- Добавлен манифест Windows для запроса прав администратора
- Исправлено завершение программы при ошибках отправки (Network unreachable)
- TUN инициализация включена по умолчанию
- Исправлен main loop (instance->running = 1)
2026-02-16 14:31:16 +03:00
jeka 78dfdde400 Fix Windows test failures: proper WSAPoll error handling and FD_SETSIZE check 2026-02-16 10:33:43 +03:00
jeka 6dfeac03a8 1 2026-02-16 08:44:05 +03:00
jeka c8af35c4b9 Fix u_async: Windows socket registration, timers, and poll issues
- Remove FD_SETSIZE check for Windows sockets (can have any value)
- Fix process_timeouts to handle all expired timers (continue instead of break)
- Handle case when no sockets to poll (sleep instead of calling poll)
- Disable wakeup pipe on Windows (incompatible with WSAPoll)
- Add gettimeofday and ssize_t implementations for Windows
2026-02-15 17:38:45 +03:00