30 mpls_header* getMplsHeader()
const
32 return (mpls_header*)m_Data;
43 :
Layer(data, dataLen, prevLayer, packet,
MPLS)
54 MplsLayer(uint32_t mplsLabel, uint8_t ttl, uint8_t experimentalUseValue,
bool bottomOfStack);
64 return getMplsHeader()->ttl;
73 getMplsHeader()->ttl = ttl;
124 return sizeof(mpls_header);
Definition: MplsLayer.h:19
uint8_t getTTL() const
Definition: MplsLayer.h:62
bool setMplsLabel(uint32_t label)
size_t getHeaderLen() const
Definition: MplsLayer.h:122
uint8_t getExperimentalUseValue() const
OsiModelLayer getOsiModelLayer() const
Definition: MplsLayer.h:135
bool setExperimentalUseValue(uint8_t val)
MplsLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: MplsLayer.h:42
void setTTL(uint8_t ttl)
Definition: MplsLayer.h:71
bool isBottomOfStack() const
uint32_t getMplsLabel() const
void computeCalculateFields()
void setBottomOfStack(bool val)
MplsLayer(uint32_t mplsLabel, uint8_t ttl, uint8_t experimentalUseValue, bool bottomOfStack)
std::string toString() const
The main namespace for the PcapPlusPlus lib.
const ProtocolType MPLS
Definition: ProtocolType.h:113
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelNetworkLayer
Definition: ProtocolType.h:360