PcapPlusPlus  20.08
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 
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 
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 
234  {
251  };
252 
253 } //namespace pcpp
254 
255 #endif
pcpp::PPPoEDiscovery
const ProtocolType PPPoEDiscovery
Definition: ProtocolType.h:93
pcpp::IGMPv2
const ProtocolType IGMPv2
Definition: ProtocolType.h:163
pcpp::UDP
const ProtocolType UDP
Definition: ProtocolType.h:53
pcpp::OsiModelLayer
OsiModelLayer
Definition: ProtocolType.h:233
pcpp::ARP
const ProtocolType ARP
Definition: ProtocolType.h:73
pcpp::OsiModelDataLinkLayer
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:238
pcpp::OsiModelApplicationLayer
@ OsiModelApplicationLayer
Definition: ProtocolType.h:248
pcpp::BGP
const ProtocolType BGP
Definition: ProtocolType.h:228
pcpp::HTTP
const ProtocolType HTTP
Definition: ProtocolType.h:68
pcpp::SSL
const ProtocolType SSL
Definition: ProtocolType.h:133
pcpp::PPPoE
const ProtocolType PPPoE
Definition: ProtocolType.h:98
pcpp::PPPoESession
const ProtocolType PPPoESession
Definition: ProtocolType.h:88
pcpp::SIP
const ProtocolType SIP
Definition: ProtocolType.h:193
pcpp::VLAN
const ProtocolType VLAN
Definition: ProtocolType.h:78
pcpp::SDP
const ProtocolType SDP
Definition: ProtocolType.h:198
pcpp::GenericPayload
const ProtocolType GenericPayload
Definition: ProtocolType.h:173
pcpp::Radius
const ProtocolType Radius
Definition: ProtocolType.h:208
pcpp::IGMP
const ProtocolType IGMP
Definition: ProtocolType.h:153
pcpp::DHCP
const ProtocolType DHCP
Definition: ProtocolType.h:143
pcpp::OsiModelNetworkLayer
@ OsiModelNetworkLayer
Definition: ProtocolType.h:240
pcpp::ProtocolType
uint64_t ProtocolType
Definition: ProtocolType.h:18
pcpp::OsiModelLayerUnknown
@ OsiModelLayerUnknown
Definition: ProtocolType.h:250
pcpp::SLL
const ProtocolType SLL
Definition: ProtocolType.h:138
pcpp::Ethernet
const ProtocolType Ethernet
Definition: ProtocolType.h:28
pcpp::UnknownProtocol
const ProtocolType UnknownProtocol
Definition: ProtocolType.h:23
pcpp::GTPv1
const ProtocolType GTPv1
Definition: ProtocolType.h:213
pcpp::SIPRequest
const ProtocolType SIPRequest
Definition: ProtocolType.h:183
pcpp::ICMP
const ProtocolType ICMP
Definition: ProtocolType.h:83
pcpp::GREv0
const ProtocolType GREv0
Definition: ProtocolType.h:113
pcpp::OsiModelPhysicalLayer
@ OsiModelPhysicalLayer
Definition: ProtocolType.h:236
pcpp::HTTPRequest
const ProtocolType HTTPRequest
Definition: ProtocolType.h:58
pcpp::MPLS
const ProtocolType MPLS
Definition: ProtocolType.h:108
pcpp::GREv1
const ProtocolType GREv1
Definition: ProtocolType.h:118
pcpp::PPP_PPTP
const ProtocolType PPP_PPTP
Definition: ProtocolType.h:128
pcpp::PacketTrailer
const ProtocolType PacketTrailer
Definition: ProtocolType.h:203
pcpp::OsiModelTransportLayer
@ OsiModelTransportLayer
Definition: ProtocolType.h:242
pcpp::HTTPResponse
const ProtocolType HTTPResponse
Definition: ProtocolType.h:63
pcpp
The main namespace for the PcapPlusPlus lib.
pcpp::IGMPv1
const ProtocolType IGMPv1
Definition: ProtocolType.h:158
pcpp::IGMPv3
const ProtocolType IGMPv3
Definition: ProtocolType.h:168
pcpp::OsiModelSesionLayer
@ OsiModelSesionLayer
Definition: ProtocolType.h:244
pcpp::GRE
const ProtocolType GRE
Definition: ProtocolType.h:123
pcpp::VXLAN
const ProtocolType VXLAN
Definition: ProtocolType.h:178
pcpp::TCP
const ProtocolType TCP
Definition: ProtocolType.h:48
pcpp::IPv4
const ProtocolType IPv4
Definition: ProtocolType.h:33
pcpp::IPv6
const ProtocolType IPv6
Definition: ProtocolType.h:38
pcpp::DNS
const ProtocolType DNS
Definition: ProtocolType.h:103
pcpp::IP
const ProtocolType IP
Definition: ProtocolType.h:43
pcpp::GTP
const ProtocolType GTP
Definition: ProtocolType.h:218
pcpp::OsiModelPresentationLayer
@ OsiModelPresentationLayer
Definition: ProtocolType.h:246
pcpp::NULL_LOOPBACK
const ProtocolType NULL_LOOPBACK
Definition: ProtocolType.h:148
pcpp::SIPResponse
const ProtocolType SIPResponse
Definition: ProtocolType.h:188
pcpp::EthernetDot3
const ProtocolType EthernetDot3
Definition: ProtocolType.h:223