16 #if (BYTE_ORDER == LITTLE_ENDIAN)
65 static_assert(
sizeof(
vxlan_header) == 8,
"vxlan_header size is not 8 bytes");
78 :
Layer(data, dataLen, prevLayer, packet,
VXLAN)
88 explicit VxlanLayer(uint32_t vni = 0, uint16_t groupPolicyID = 0,
bool setGbpFlag =
false,
89 bool setPolicyAppliedFlag =
false,
bool setDontLearnFlag =
false);
Definition: VxlanLayer.h:70
void computeCalculateFields() override
Does nothing for this layer.
Definition: VxlanLayer.h:127
std::string toString() const override
vxlan_header * getVxlanHeader() const
Definition: VxlanLayer.h:96
void parseNextLayer() override
Next layer for VXLAN is always Ethernet.
OsiModelLayer getOsiModelLayer() const override
Definition: VxlanLayer.h:132
VxlanLayer(uint32_t vni=0, uint16_t groupPolicyID=0, bool setGbpFlag=false, bool setPolicyAppliedFlag=false, bool setDontLearnFlag=false)
static bool isVxlanPort(uint16_t port)
Definition: VxlanLayer.h:110
size_t getHeaderLen() const override
Definition: VxlanLayer.h:121
void setVNI(uint32_t vni)
VxlanLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: VxlanLayer.h:77
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
An enum representing OSI model layers.
Definition: ProtocolType.h:225
@ OsiModelDataLinkLayer
Data link layer (layer 2)
Definition: ProtocolType.h:229
const ProtocolType VXLAN
VXLAN protocol.
Definition: ProtocolType.h:113