add NTP time synchronization module

This commit is contained in:
Evgeny committed 2026-07-14 20:14:00 +03:00
1 parent f3719a28df
commit 1a0229fd4f
8 files changed
+385 -2

No files matched your search

+4
View File
@@ -20,6 +20,7 @@ extern "C" {
#include "proxy/tcp_proxy_client.h"
#include "etcp_router.h"
#include "proxy/tcp_proxy_server.h"
#include "ntp_time.h"
#include "etcp_api.h"
#include "config_parser.h"
@@ -145,6 +146,9 @@ struct UTUN_INSTANCE {
// Pending background connections (etcp_connect API)
struct ETCP_CONNECT* pending_connects;
uint32_t etcp_connect_timeout_tb; // Initial timeout in 0.1ms units, default 20000 (2s)
// NTP time synchronization
struct NTP_TIME ntp;
};
// Functions