mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-02-21 10:00:09 +03:00
Cedar/Proto: add ProtoLog(), write message to log on session creation/deletion
Example: [OpenVPN] 192.168.122.100:47390 -> 0.0.0.0:1194 (UDP): Session created. [OpenVPN] 192.168.122.100:47390 -> 0.0.0.0:1194 (UDP): Session deleted. [OpenVPN] 192.168.122.100:49866 -> 192.168.122.1:1194 (TCP): Session created. [OpenVPN] 192.168.122.100:49866 -> 192.168.122.1:1194 (TCP): Session deleted.
This commit is contained in:
@ -78,6 +78,8 @@ typedef struct PROTO_SESSION
|
||||
volatile bool Halt;
|
||||
} PROTO_SESSION;
|
||||
|
||||
void ProtoLog(const PROTO *proto, const PROTO_SESSION *session, const char *name, ...);
|
||||
|
||||
int ProtoOptionCompare(void *p1, void *p2);
|
||||
int ProtoContainerCompare(void *p1, void *p2);
|
||||
int ProtoSessionCompare(void *p1, void *p2);
|
||||
|
||||
Reference in New Issue
Block a user