Commit Graph
14 Commits
Author SHA1 Message Date
Evgeny bd3697c0bd revert unnecessary return -1 in void-test ASSERT macros; only test_bgp_route_exchange uses ASSERT in int main() 2026-05-10 00:49:46 +03:00
Evgeny 74e88a40d1 fix ASSERT macros: return -1 instead of bare return in int main() (FreeBSD -Wreturn-mismatch) 2026-05-10 00:44:59 +03:00
Evgeny fd72c6eed6 add IPv6 default route interface auto-detection for permanent/temporary IPv6 without netif
- get_default_route_netif_index(): UDP connect trick + getifaddrs to find default route iface
- etcp_socket_add(): auto-detect netif_index when not specified in config
- queue_new() API: explicit index_offset/index_size params instead of implicit from hash_size
- radix: cleanup types (uint8_t*), replace bzero/bcmp with memset/memcmp, remove kernel ifdefs
- route6_lib: new IPv6 routing library + get_node_v6_routes()
2026-05-10 00:05:23 +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
jeka dbebba7111 bugfix 2026-03-12 04:36:45 +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
jeka c10a2046cc mem 2026-03-06 01:36:57 +03:00
Evgeny 951d389342 BGP: Implement route exchange module between uTun instances
- Add route_bgp.c/h with BGP-like route exchange functionality
- Implement route_bgp_init/destroy for module lifecycle
- Add route_bgp_new_conn to send routing table on connection
- Implement route_bgp_receive_cbk for processing incoming routes
- Add route_table_delete_entry for individual route removal
- Extend ROUTE_ENTRY with endpoint_ip, endpoint_port, destination_node_id
- Add DEBUG_CATEGORY_BGP to debug_config.h
- Integrate BGP initialization into utun_instance_create
- Call route_bgp_new_conn from etcp_connections on link init
- Create integration test test_bgp_route_exchange.c
- Add route_bgp_delete_entry tests to test_route_lib.c
- Update Makefiles to include new module

Route exchange tested and working in both directions (client-server)
2026-02-14 20:37:14 +03:00
Evgeny 8cf8129103 Backup before adding NAT IP:port tracking to ETCP handshake 2026-02-14 11:02:20 +03:00