PcapPlusPlus  21.05
ProtocolType.h
Go to the documentation of this file.
1 #ifndef PCAPPP_PROTOCOL_TYPES
2 #define PCAPPP_PROTOCOL_TYPES
3 
4 #include <stdint.h>
5 
7 
12 namespace pcpp
13 {
18  typedef uint64_t ProtocolType;
19 
23  const ProtocolType UnknownProtocol = 0x00;
24 
28  const ProtocolType Ethernet = 0x01;
29 
33  const ProtocolType IPv4 = 0x02;
34 
38  const ProtocolType IPv6 = 0x04;
39 
43  const ProtocolType IP = 0x06;
44 
48  const ProtocolType TCP = 0x08;
49 
53  const ProtocolType UDP = 0x10;
54 
58  const ProtocolType HTTPRequest = 0x20;
59 
63  const ProtocolType HTTPResponse = 0x40;
64 
68  const ProtocolType HTTP = 0x60;
69 
73  const ProtocolType ARP = 0x80;
74 
78  const ProtocolType VLAN = 0x100;
79 
83  const ProtocolType ICMP = 0x200;
84 
88  const ProtocolType PPPoESession = 0x400;
89 
93  const ProtocolType PPPoEDiscovery = 0x800;
94 
98  const ProtocolType PPPoE = 0xc00;
99 
103  const ProtocolType DNS = 0x1000;
104 
108  const ProtocolType MPLS = 0x2000;
109 
113  const ProtocolType GREv0 = 0x4000;
114 
118  const ProtocolType GREv1 = 0x8000;
119 
123  const ProtocolType GRE = 0xc000;
124 
128  const ProtocolType PPP_PPTP = 0x10000;
129 
133  const ProtocolType SSL = 0x20000;
134 
138  const ProtocolType SLL = 0x40000;
139 
143  const ProtocolType DHCP = 0x80000;
144 
148  const ProtocolType NULL_LOOPBACK = 0x100000;
149 
153  const ProtocolType IGMP = 0xE00000;
154 
158  const ProtocolType IGMPv1 = 0x200000;
159 
163  const ProtocolType IGMPv2 = 0x400000;
164 
168  const ProtocolType IGMPv3 = 0x800000;
169 
173  const ProtocolType GenericPayload = 0x1000000;
174 
178  const ProtocolType VXLAN = 0x2000000;
179 
183  const ProtocolType SIPRequest = 0x4000000;
184 
188  const ProtocolType SIPResponse = 0x8000000;
189 
193  const ProtocolType SIP = 0xc000000;
194 
198  const ProtocolType SDP = 0x10000000;
199 
203  const ProtocolType PacketTrailer = 0x20000000;
204 
208  const ProtocolType Radius = 0x40000000;
209 
213  const ProtocolType GTPv1 = 0x80000000;
214 
218  const ProtocolType GTP = 0x80000000;
219 
223  const ProtocolType EthernetDot3 = 0x100000000;
224 
228  const ProtocolType BGP = 0x200000000;
229 
233  const ProtocolType SSH = 0x400000000;
234 
238  const ProtocolType AuthenticationHeader = 0x800000000;
239 
243  const ProtocolType ESP = 0x1000000000;
244 
248  const ProtocolType IPSec = 0x1800000000;
249 
254  {
271  };
272 
273 } //namespace pcpp
274 
275 #endif
const ProtocolType HTTP
Definition: ProtocolType.h:68
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:253
const ProtocolType PPPoEDiscovery
Definition: ProtocolType.h:93
const ProtocolType IGMPv2
Definition: ProtocolType.h:163
const ProtocolType IPSec
Definition: ProtocolType.h:248
const ProtocolType SDP
Definition: ProtocolType.h:198
const ProtocolType UDP
Definition: ProtocolType.h:53
const ProtocolType GenericPayload
Definition: ProtocolType.h:173
Definition: ProtocolType.h:258
Definition: ProtocolType.h:268
const ProtocolType SSL
Definition: ProtocolType.h:133
const ProtocolType PPPoESession
Definition: ProtocolType.h:88
const ProtocolType DHCP
Definition: ProtocolType.h:143
const ProtocolType SSH
Definition: ProtocolType.h:233
const ProtocolType VLAN
Definition: ProtocolType.h:78
const ProtocolType SIP
Definition: ProtocolType.h:193
const ProtocolType IGMP
Definition: ProtocolType.h:153
const ProtocolType PPPoE
Definition: ProtocolType.h:98
const ProtocolType UnknownProtocol
Definition: ProtocolType.h:23
Definition: ProtocolType.h:270
Definition: ProtocolType.h:260
const ProtocolType Radius
Definition: ProtocolType.h:208
uint64_t ProtocolType
Definition: ProtocolType.h:18
const ProtocolType HTTPRequest
Definition: ProtocolType.h:58
const ProtocolType SLL
Definition: ProtocolType.h:138
const ProtocolType MPLS
Definition: ProtocolType.h:108
const ProtocolType GREv1
Definition: ProtocolType.h:118
const ProtocolType GTPv1
Definition: ProtocolType.h:213
const ProtocolType PPP_PPTP
Definition: ProtocolType.h:128
const ProtocolType SIPRequest
Definition: ProtocolType.h:183
const ProtocolType HTTPResponse
Definition: ProtocolType.h:63
const ProtocolType Ethernet
Definition: ProtocolType.h:28
Definition: ProtocolType.h:262
Definition: ProtocolType.h:256
const ProtocolType ICMP
Definition: ProtocolType.h:83
const ProtocolType IGMPv1
Definition: ProtocolType.h:158
const ProtocolType GREv0
Definition: ProtocolType.h:113
const ProtocolType DNS
Definition: ProtocolType.h:103
const ProtocolType GRE
Definition: ProtocolType.h:123
Definition: ProtocolType.h:264
const ProtocolType PacketTrailer
Definition: ProtocolType.h:203
const ProtocolType VXLAN
Definition: ProtocolType.h:178
const ProtocolType TCP
Definition: ProtocolType.h:48
const ProtocolType NULL_LOOPBACK
Definition: ProtocolType.h:148
const ProtocolType ESP
Definition: ProtocolType.h:243
const ProtocolType IGMPv3
Definition: ProtocolType.h:168
const ProtocolType IPv6
Definition: ProtocolType.h:38
const ProtocolType GTP
Definition: ProtocolType.h:218
const ProtocolType IPv4
Definition: ProtocolType.h:33
const ProtocolType SIPResponse
Definition: ProtocolType.h:188
const ProtocolType ARP
Definition: ProtocolType.h:73
Definition: ProtocolType.h:266
const ProtocolType AuthenticationHeader
Definition: ProtocolType.h:238
const ProtocolType BGP
Definition: ProtocolType.h:228
const ProtocolType IP
Definition: ProtocolType.h:43
const ProtocolType EthernetDot3
Definition: ProtocolType.h:223