Commit Graph
90 Commits
Author SHA1 Message Date
Evgeny 8271ec3ecb 1 2026-03-26 00:01:47 +03:00
Evgeny 35cb85a537 1 2026-03-25 23:49:59 +03:00
Evgeny 085c609b36 test fix, log update 2026-03-25 22:49:57 +03:00
jeka ebf3b10379 1 2026-03-25 20:39:12 +03:00
jeka 5d467097f6 1 2026-03-25 20:35:45 +03:00
jeka 9b29cb3c71 +ip change 2026-03-25 18:39:31 +03:00
jeka 036e642b55 1 2026-03-15 01:44:37 +03:00
jeka 87218a60e0 fix ack timestamp 2026-03-13 22:35:26 +03:00
jeka a54c6c82be 1 2026-03-13 16:19:58 +03:00
jeka 6d671a85db route improvements 2026-03-12 02:57:38 +03:00
jeka 4606c827b6 routing базово работает 2026-03-09 23:07:38 +03:00
Evgeny 27ab2b1eb2 1 2026-03-08 19:05:31 +03:00
Evgeny 264382f1a2 1 2026-03-08 18:52:53 +03:00
jeka e917ec7ecf 1 2026-03-08 17:35:00 +03:00
jeka d2e0aafd5e 1 2026-03-08 17:31:56 +03:00
jeka 834b65a56c 1 2026-03-08 17:19:38 +03:00
jeka 23cab26ef6 1 2026-03-08 16:52:24 +03:00
jeka 4be6025e91 1 2026-03-07 20:47:15 +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
Evgeny 012f3df21d c 2026-03-06 16:19:30 +03:00
jeka b758c45e50 1 2026-03-06 15:56:41 +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 e39798261d dump 2026-03-05 21:16:02 +03:00
jeka b90f59721e 1 2026-03-05 15:05:20 +03:00
jeka cb53800055 1 2026-03-05 15:03:27 +03:00
jeka 6aa12ead14 queue add check consistency 2026-03-05 14:56:23 +03:00
jeka 5e1feccb1f len fix 2026-03-05 02:31:57 +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 785b739d69 config 2026-03-04 01:53:17 +03:00
jeka 8baf1ee03b logs 2026-03-03 15:15:34 +03:00
jeka 5968108227 tun/win шлёт в routing. 2026-03-02 20:22:34 +03:00
jeka 5d33343db7 пердайт icmp в tun 2026-03-01 02:48:03 +03:00
jeka ff6d4de89e refactor 2026-02-28 15:15:34 +03:00
jeka 75676127e5 1 2026-02-22 23:28:11 +03:00
Evgeny 8d49c2e8bf compile fixes 2026-02-21 21:30:39 +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
jeka 37242e8fe8 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 84c9131d53 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 d74937e754 Fix Windows test failures: proper WSAPoll error handling and FD_SETSIZE check 2026-02-16 10:33:43 +03:00
jeka 7e30aa6347 1 2026-02-16 08:44:05 +03:00
jeka b09f10712b 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
Evgeny 4314b7d8eb Fix Windows: use sys/time.h for gettimeofday, remove custom implementation 2026-02-15 12:57:53 +03:00
Evgeny f67a138714 Fix Windows build: skip gettimeofday on MSYS2, force recompile ecc_platform_specific 2026-02-15 12:26:32 +03:00
Evgeny 57e771f64d Fix Windows build: use WSAPoll instead of poll for linking 2026-02-15 03:54:35 +03:00
Evgeny 5d6e5f0ac6 Fix Windows build: POSIX dependencies (netdb.h, fork, setsid, SIGHUP, etc.)
- Wrap POSIX headers (netdb.h, ifaddrs.h, net/if.h) in #ifndef _WIN32 in config_parser.c
- Add Windows stub for get_netif_index() - returns 0 (no interface binding)
- Wrap daemonize() function for Windows - returns 0 (no fork/setsid support)
- Replace setlinebuf() with setvbuf() for Windows compatibility
- Wrap SIGHUP signal handler in #ifndef _WIN32
- Add explicit poll() declaration for Windows in platform_compat.h
- All 22 tests pass on Linux
2026-02-15 03:26:02 +03:00