Commit Graph
199 Commits
Author SHA1 Message Date
Evgeny eba3bb2be2 Fix compiler warnings: remove incorrect address-of operator and add getpid for Windows
- etcp_connections.c:1142: remove & before addr in sockaddr_storage_to_str call
- test_etcp_simple_traffic.c: add #include <process.h> and #define getpid _getpid for Windows
2026-04-24 14:48:29 +03:00
Evgeny e39cbc41ab Config: Added [allowed_keys] section for client public key authorization on server
- Added CFG_ALLOWED_KEY struct with binary key storage (64 bytes) for fast memcmp comparison
- Implemented parsing of [allowed_keys] section with allow_all flag and per-key entries
- Added key validation in etcp_connections.c server handler (errorcode=8 for rejected keys)
- Default behavior: deny all if [allowed_keys] section is missing or allow_all=0 with no keys
- Added proper memory cleanup and debug logging for allowed_keys configuration
- Updated all test configs to include [allowed_keys] allow_all=1 for backward compatibility
2026-04-24 00:16:30 +03:00
Evgeny 0688a9801d NODEINFO: Add nat_addr/nat_port fields, use interface_addr for addr/port 2026-04-23 23:21:12 +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 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 665f72d7ce Remove accidentally committed binaries and temp files 2026-04-22 11:45:54 +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
Evgeny 170f079485 Add name parameter to uasync_set_timeout for timer identification in dumps 2026-04-21 19:06:45 +03:00
Evgeny 4e49a214cb ping 2026-04-14 19:19:41 +03:00
Evgeny d9aab586ed Add NAT detection with burst ping, test timing, fix port conflicts
- route_ping.c: burst mode - send next ping immediately on response
- route_ping.h: add target_ipv4/target_port/pubkey to BGP_PING_REQUEST
- test_nat_detection.c: add test for ping without embedded pubkey
- test_etcp_simple_traffic.c: use dynamic ports + fix timebase units
- Makefile.am: show test execution time in ms
2026-04-14 14:25:36 +03:00
Evgeny fe4704958e Add NAT detection with STUN-like ping and integration test 2026-04-14 12:02:43 +03:00
Evgeny 25198df326 serializer 2026-04-14 02:03:59 +03:00
Evgeny 33d1a1a9d3 1 2026-04-13 23:56:19 +03:00
Evgeny 7d9aff4ace Add test_serialize to Makefile and include serialize in libuasync.a
- tests/Makefile.am: add test_serialize to check_PROGRAMS
- lib/Makefile.am: add serialize.c/h to libuasync_a_SOURCES
2026-04-13 23:50:32 +03:00
Evgeny 71061f1388 Add serialize library for binary serialization with dynamic allocation
- serialize.h/c: universal binary serialization for structures with
  variable-length fields (ASCIIZ, ARRAY) using pointers
- Auto allocation via u_malloc during deserialization
- Support for header (arbitrary bytes at buffer start)
- serialize_encode(): serialize structure to buffer
- serialize_decode(): deserialize from buffer (without header)
- serialize_free(): free structure and all its pointers
- tests/test_serialize.c: unit tests
2026-04-13 23:08:54 +03:00
Evgeny 4a58b8e030 Add test_route_ping.c test file 2026-04-13 20:42:47 +03:00
Evgeny 3378dba8fc add ping 2026-04-13 20:12:13 +03:00
Evgeny 2594381c7c Fix test_bgp_route_exchange: correct IP byte order constants and platform_compat.h endian include 2026-04-13 14:05:32 +03:00
Evgeny 9157903fa7 WIP: backup before debugging test_bgp_route_exchange 2026-04-13 13:55:21 +03:00
Evgeny 49e006b45d backup: state before full initialization for ping test with real links 2026-04-13 02:09:53 +03:00
Evgeny bcf9f06f1f 1 2026-03-31 13:37:49 +03:00
Evgeny b72d89da2d route redesign + tests 2026-03-30 18:26:56 +03:00
Evgeny 027ccb262b backup: before plan 1 fix for route_lib test (non-overlapping subnets) 2026-03-30 18:25:47 +03:00
Evgeny f32a7c200b fix: update tests for new NODEINFO routing API
- Added route_node.o to test linking
- Simplified test_route_lib to avoid old API calls
- Minor fixes to build system

Branch: feature/nodeinfo-routing
2026-03-29 20:55:40 +03:00
Evgeny a3b7a385f0 queue: add variable size hash
bgp: add to headers new node info
2026-03-28 21:52:46 +03:00
Evgeny dbcd167a85 firewall + random init pkt size 2026-03-26 22:42:22 +03:00
Evgeny 67b4cd7cb1 1 2026-03-25 23:33:11 +03:00
Evgeny 085c609b36 test fix, log update 2026-03-25 22:49:57 +03:00
Evgeny c184d34b8f backup: before adding inflight bytes limit to loadbalancer 2026-03-23 14:28:32 +03:00
Evgeny 7a305b8757 fix: improve test_routing_mesh and fix duplicate init_connections in test_etcp_two_instances
- Refactored test_routing_mesh to use proper ETCP + normalizer flow
- Removed duplicate init_connections() calls that caused 'Address already in use'
- Improved error reporting in etcp_link_new()
- Test now respects single mainloop architecture
2026-03-23 01:56:17 +03:00
Evgeny ad5262a8ea conn fix 2026-03-13 11:28:24 +03:00
Evgeny 470f37b324 1 2026-03-13 00:19:43 +03:00
jeka dbebba7111 bugfix 2026-03-12 04:36:45 +03:00
jeka 6d671a85db route improvements 2026-03-12 02:57:38 +03:00
jeka 1c0f691c3f routing + bgp big update 2026-03-11 15:30:45 +03:00
jeka 9b571b74fa 1 2026-03-10 00:06:46 +03:00
jeka 4606c827b6 routing базово работает 2026-03-09 23:07:38 +03:00
Evgeny d67c1c5680 1 2026-03-08 20:43:53 +03:00
Evgeny 12562d7eb8 1 2026-03-08 20:36:27 +03:00
Evgeny d42ca8bc85 1 2026-03-08 20:20:39 +03:00
jeka 29fd85aad3 1 2026-03-08 17:41:11 +03:00
Evgeny 79f77dd72b 1 2026-03-08 17:40:05 +03:00
jeka 834b65a56c 1 2026-03-08 17:19:38 +03:00
Evgeny 78e1307b1c 1 2026-03-07 15:28:12 +03:00
Evgeny 3283f5dbd5 Test: add etcp_conn_reinit stub to fail standalone test if called 2026-03-07 15:15:21 +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 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