PcapPlusPlus  24.09
ProtocolType.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 
6 
11 namespace pcpp
12 {
17  typedef uint8_t ProtocolType;
18 
23  typedef uint32_t ProtocolTypeFamily;
24 
29 
34 
38  const ProtocolType IPv4 = 2;
39 
43  const ProtocolType IPv6 = 3;
44 
48  const ProtocolTypeFamily IP = 0x203;
49 
53  const ProtocolType TCP = 4;
54 
58  const ProtocolType UDP = 5;
59 
64 
69 
73  const ProtocolTypeFamily HTTP = 0x607;
74 
78  const ProtocolType ARP = 8;
79 
83  const ProtocolType VLAN = 9;
84 
88  const ProtocolType ICMP = 10;
89 
94 
99 
103  const ProtocolTypeFamily PPPoE = 0xb0c;
104 
108  const ProtocolType DNS = 13;
109 
113  const ProtocolType MPLS = 14;
114 
118  const ProtocolType GREv0 = 15;
119 
123  const ProtocolType GREv1 = 16;
124 
128  const ProtocolTypeFamily GRE = 0xf10;
129 
133  const ProtocolType PPP_PPTP = 17;
134 
138  const ProtocolType SSL = 18;
139 
143  const ProtocolType SLL = 19;
144 
148  const ProtocolType DHCP = 20;
149 
154 
158  const ProtocolType IGMPv1 = 22;
159 
163  const ProtocolType IGMPv2 = 23;
164 
168  const ProtocolType IGMPv3 = 24;
169 
173  const ProtocolTypeFamily IGMP = 0x161718;
174 
179 
183  const ProtocolType VXLAN = 26;
184 
189 
194 
198  const ProtocolTypeFamily SIP = 0x1b1c;
199 
203  const ProtocolType SDP = 29;
204 
209 
213  const ProtocolType Radius = 31;
214 
218  const ProtocolType GTPv1 = 32;
219 
223  const ProtocolTypeFamily GTP = 0x20;
224 
229 
233  const ProtocolType BGP = 34;
234 
238  const ProtocolType SSH = 35;
239 
244 
248  const ProtocolType ESP = 37;
249 
253  const ProtocolTypeFamily IPSec = 0x2425;
254 
258  const ProtocolType DHCPv6 = 38;
259 
263  const ProtocolType NTP = 39;
264 
268  const ProtocolType Telnet = 40;
269 
273  const ProtocolType FTP = 41;
274 
278  const ProtocolType ICMPv6 = 42;
279 
283  const ProtocolType STP = 43;
284 
288  const ProtocolType LLC = 44;
289 
293  const ProtocolType SomeIP = 45;
294 
299 
303  const ProtocolType NFLOG = 47;
304 
308  const ProtocolType TPKT = 48;
309 
313  const ProtocolType VRRPv2 = 49;
314 
318  const ProtocolType VRRPv3 = 50;
319 
323  const ProtocolTypeFamily VRRP = 0x3132;
324 
328  const ProtocolType COTP = 51;
329 
333  const ProtocolType SLL2 = 52;
334 
338  const ProtocolType S7COMM = 53;
339 
340  /*
341  * SMTP protocol
342  */
343  const ProtocolType SMTP = 54;
344 
345  /*
346  * LDAP protocol
347  */
348  const ProtocolType LDAP = 55;
349 
354  {
371  };
372 
373 } // namespace pcpp
The main namespace for the PcapPlusPlus lib.
const ProtocolTypeFamily GRE
Definition: ProtocolType.h:128
const ProtocolType STP
Definition: ProtocolType.h:283
const ProtocolType S7COMM
Definition: ProtocolType.h:338
const ProtocolType VRRPv3
Definition: ProtocolType.h:318
const ProtocolTypeFamily VRRP
Definition: ProtocolType.h:323
const ProtocolType TPKT
Definition: ProtocolType.h:308
uint8_t ProtocolType
Definition: ProtocolType.h:17
const ProtocolType DHCPv6
Definition: ProtocolType.h:258
const ProtocolType PPPoESession
Definition: ProtocolType.h:93
const ProtocolType ESP
Definition: ProtocolType.h:248
const ProtocolType GREv0
Definition: ProtocolType.h:118
const ProtocolType MPLS
Definition: ProtocolType.h:113
const ProtocolType WakeOnLan
Definition: ProtocolType.h:298
const ProtocolType COTP
Definition: ProtocolType.h:328
const ProtocolType AuthenticationHeader
Definition: ProtocolType.h:243
const ProtocolType Ethernet
Definition: ProtocolType.h:33
const ProtocolTypeFamily PPPoE
Definition: ProtocolType.h:103
const ProtocolType NTP
Definition: ProtocolType.h:263
const ProtocolTypeFamily HTTP
Definition: ProtocolType.h:73
const ProtocolType PacketTrailer
Definition: ProtocolType.h:208
const ProtocolType IGMPv2
Definition: ProtocolType.h:163
const ProtocolType BGP
Definition: ProtocolType.h:233
const ProtocolType IGMPv3
Definition: ProtocolType.h:168
const ProtocolType PPP_PPTP
Definition: ProtocolType.h:133
const ProtocolType DHCP
Definition: ProtocolType.h:148
const ProtocolType GREv1
Definition: ProtocolType.h:123
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelTransportLayer
Definition: ProtocolType.h:362
@ OsiModelApplicationLayer
Definition: ProtocolType.h:368
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:358
@ OsiModelPhysicalLayer
Definition: ProtocolType.h:356
@ OsiModelSesionLayer
Definition: ProtocolType.h:364
@ OsiModelNetworkLayer
Definition: ProtocolType.h:360
@ OsiModelPresentationLayer
Definition: ProtocolType.h:366
@ OsiModelLayerUnknown
Definition: ProtocolType.h:370
const ProtocolType SomeIP
Definition: ProtocolType.h:293
const ProtocolType SSL
Definition: ProtocolType.h:138
const ProtocolType FTP
Definition: ProtocolType.h:273
const ProtocolType Radius
Definition: ProtocolType.h:213
const ProtocolType NULL_LOOPBACK
Definition: ProtocolType.h:153
const ProtocolType LLC
Definition: ProtocolType.h:288
const ProtocolTypeFamily IP
Definition: ProtocolType.h:48
const ProtocolType TCP
Definition: ProtocolType.h:53
const ProtocolType SSH
Definition: ProtocolType.h:238
const ProtocolType PPPoEDiscovery
Definition: ProtocolType.h:98
uint32_t ProtocolTypeFamily
Definition: ProtocolType.h:23
const ProtocolType IPv4
Definition: ProtocolType.h:38
const ProtocolType SLL2
Definition: ProtocolType.h:333
const ProtocolType GenericPayload
Definition: ProtocolType.h:178
const ProtocolType IPv6
Definition: ProtocolType.h:43
const ProtocolType GTPv1
Definition: ProtocolType.h:218
const ProtocolTypeFamily GTP
Definition: ProtocolType.h:223
const ProtocolType IGMPv1
Definition: ProtocolType.h:158
const ProtocolType SLL
Definition: ProtocolType.h:143
const ProtocolType VXLAN
Definition: ProtocolType.h:183
const ProtocolType VRRPv2
Definition: ProtocolType.h:313
const ProtocolType ICMP
Definition: ProtocolType.h:88
const ProtocolType HTTPRequest
Definition: ProtocolType.h:63
const ProtocolTypeFamily IPSec
Definition: ProtocolType.h:253
const ProtocolType UnknownProtocol
Definition: ProtocolType.h:28
const ProtocolType VLAN
Definition: ProtocolType.h:83
const ProtocolType SIPRequest
Definition: ProtocolType.h:188
const ProtocolType DNS
Definition: ProtocolType.h:108
const ProtocolType UDP
Definition: ProtocolType.h:58
const ProtocolType ARP
Definition: ProtocolType.h:78
const ProtocolType SDP
Definition: ProtocolType.h:203
const ProtocolType Telnet
Definition: ProtocolType.h:268
const ProtocolType HTTPResponse
Definition: ProtocolType.h:68
const ProtocolTypeFamily SIP
Definition: ProtocolType.h:198
const ProtocolType NFLOG
Definition: ProtocolType.h:303
const ProtocolType EthernetDot3
Definition: ProtocolType.h:228
const ProtocolTypeFamily IGMP
Definition: ProtocolType.h:173
const ProtocolType ICMPv6
Definition: ProtocolType.h:278
const ProtocolType SIPResponse
Definition: ProtocolType.h:193