30 mpls_header* getMplsHeader()
const
32 return reinterpret_cast<mpls_header*
>(m_Data);
43 :
Layer(data, dataLen, prevLayer, packet,
MPLS)
54 MplsLayer(uint32_t mplsLabel, uint8_t ttl, uint8_t experimentalUseValue,
bool bottomOfStack);
63 return getMplsHeader()->ttl;
72 getMplsHeader()->ttl = ttl;
123 return sizeof(mpls_header);
Definition: MplsLayer.h:19
uint8_t getTTL() const
Definition: MplsLayer.h:61
bool setMplsLabel(uint32_t label)
void parseNextLayer() override
uint8_t getExperimentalUseValue() const
bool setExperimentalUseValue(uint8_t val)
void computeCalculateFields() override
MplsLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: MplsLayer.h:42
void setTTL(uint8_t ttl)
Definition: MplsLayer.h:70
OsiModelLayer getOsiModelLayer() const override
Definition: MplsLayer.h:134
size_t getHeaderLen() const override
Definition: MplsLayer.h:121
bool isBottomOfStack() const
uint32_t getMplsLabel() const
void setBottomOfStack(bool val)
MplsLayer(uint32_t mplsLabel, uint8_t ttl, uint8_t experimentalUseValue, bool bottomOfStack)
std::string toString() const override
The main namespace for the PcapPlusPlus lib.
const ProtocolType MPLS
Definition: ProtocolType.h:113
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelNetworkLayer
Definition: ProtocolType.h:370