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
This commit is contained in:
jeka committed 2026-02-19 01:24:42 +03:00
1 parent 96100663e7
commit 734851329f
11 files changed
+1147 -23

No files matched your search

+6
View File
@@ -24,6 +24,7 @@ check_PROGRAMS = \
test_bgp_route_exchange \
test_routing_mesh \
test_etcp_dummynet \
test_control_server \
bench_timeout_heap \
bench_uasync_timeouts
@@ -209,6 +210,11 @@ bench_uasync_timeouts_SOURCES = bench_uasync_timeouts.c
bench_uasync_timeouts_CFLAGS = -I$(top_srcdir)/lib
bench_uasync_timeouts_LDADD = $(COMMON_LIBS)
# Control Server Test - Tests the ETCP monitoring protocol
test_control_server_SOURCES = test_control_server.c
test_control_server_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib -I$(top_srcdir)/tools/etcpmon
test_control_server_LDADD = $(top_builddir)/src/utun-control_server.o $(COMMON_LIBS)
# Build tinycrypt objects before tests that need them
BUILT_SOURCES = $(TINYCRYPT_BUILT)