add proxy server/client indicator (S/C) in connection monitor
This commit is contained in:
1 parent
f1941e61a2
commit
cf956cf2f0
6 files changed
+50
-4
No files matched your search
@@ -48,7 +48,7 @@ struct ip {
|
||||
#define ICMP_DEF_TTL 64
|
||||
#define ICMP_TIMEOUT_TB 50000 // 5s for echo reply
|
||||
|
||||
static struct icmp_proxy_ctx* g_icmp_ctx = NULL;
|
||||
struct icmp_proxy_ctx* g_icmp_ctx = NULL;
|
||||
|
||||
static void req_expire_timer_cb(void* arg);
|
||||
static void req_expire(struct icmp_proxy_ctx* ctx);
|
||||
|
||||
@@ -50,6 +50,8 @@ struct icmp_proxy_ctx {
|
||||
void* expire_timer; // периодический таймер очистки истёкших запросов
|
||||
};
|
||||
|
||||
extern struct icmp_proxy_ctx* g_icmp_ctx;
|
||||
|
||||
int icmp_proxy_init(struct UTUN_INSTANCE* inst, struct UASYNC* ua);
|
||||
void icmp_proxy_destroy(struct UTUN_INSTANCE* inst);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#define UDP_FLOW_TIMEOUT_TB 600000 // 60с
|
||||
|
||||
static struct udp_proxy_ctx* g_udp_ctx = NULL;
|
||||
struct udp_proxy_ctx* g_udp_ctx = NULL;
|
||||
|
||||
static void flow_expire_timer_cb(void* arg);
|
||||
static void flow_expire(struct udp_proxy_ctx* ctx);
|
||||
|
||||
@@ -48,6 +48,8 @@ struct udp_proxy_ctx {
|
||||
void* expire_timer; // периодический таймер очистки истёкших потоков
|
||||
};
|
||||
|
||||
extern struct udp_proxy_ctx* g_udp_ctx;
|
||||
|
||||
int udp_proxy_init(struct UTUN_INSTANCE* inst, struct UASYNC* ua);
|
||||
void udp_proxy_destroy(struct UTUN_INSTANCE* inst);
|
||||
|
||||
|
||||
Reference in new issue
Block a user