forked from vpnhood/VpnHood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeneralEventId.cs
53 lines (50 loc) · 2.23 KB
/
GeneralEventId.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Microsoft.Extensions.Logging;
namespace VpnHood.Tunneling;
public static class GeneralEventId
{
public static EventId Essential = new((int)EventCode.Essential, nameof(Essential));
public static EventId Session = new((int)EventCode.Session, nameof(Session));
public static EventId SessionTrack = new((int)EventCode.SessionTrack, nameof(SessionTrack));
public static EventId Nat = new((int)EventCode.Nat, nameof(Nat));
public static EventId Ping = new((int)EventCode.Ping, nameof(Ping));
public static EventId Dns = new((int)EventCode.Dns, nameof(Dns));
public static EventId Tcp = new((int)EventCode.Tcp, nameof(Tcp));
public static EventId Tls = new((int)EventCode.Tls, nameof(Tls));
public static EventId Udp = new((int)EventCode.Udp, nameof(Udp));
public static EventId Packet = new((int)EventCode.Packet, nameof(Packet));
public static EventId Track = new((int)EventCode.Track, nameof(Track));
public static EventId StreamProxyChannel = new((int)EventCode.StreamChannel, nameof(StreamProxyChannel));
public static EventId DatagramChannel = new((int)EventCode.DatagramChannel, EventCode.DatagramChannel.ToString());
public static EventId AccessManager = new((int)EventCode.AccessManager, nameof(AccessManager));
public static EventId NetProtect = new((int)EventCode.NetProtect, nameof(NetProtect));
public static EventId NetFilter = new((int)EventCode.NetFilter, nameof(NetFilter));
public static EventId Request = new((int)EventCode.Request, nameof(Request));
public static EventId TcpLife = new((int)EventCode.TcpLife, nameof(TcpLife));
public static EventId Test = new((int)EventCode.Test, nameof(Test));
public static EventId UdpSign = new((int)EventCode.UdpSign, nameof(UdpSign));
public static EventId DnsChallenge = new((int)EventCode.DnsChallenge, nameof(DnsChallenge));
private enum EventCode
{
Essential = 10,
Session,
Nat,
Ping,
Dns,
Packet,
Tcp,
Udp,
UdpSign,
StreamChannel,
DatagramChannel,
Track,
Tls,
AccessManager,
NetProtect,
NetFilter,
SessionTrack,
Request,
TcpLife,
DnsChallenge,
Test
}
}