|
PcapPlusPlus
20.08
|
Go to the documentation of this file. 1 #ifndef PACKETPP_MPLS_LAYER
2 #define PACKETPP_MPLS_LAYER
32 mpls_header* getMplsHeader()
const {
return (mpls_header*)m_Data; }
50 MplsLayer(uint32_t mplsLabel, uint8_t ttl, uint8_t expermentalUseValue,
bool bottomOfStack);
57 uint8_t
getTTL()
const {
return getMplsHeader()->ttl; }
63 void setTTL(uint8_t ttl) { getMplsHeader()->ttl = ttl; }
OsiModelLayer getOsiModelLayer() const
Definition: MplsLayer.h:121
OsiModelLayer
Definition: ProtocolType.h:233
Definition: MplsLayer.h:19
uint8_t getExperimentalUseValue() const
void setBottomOfStack(bool val)
void setTTL(uint8_t ttl)
Definition: MplsLayer.h:63
bool isBottomOfStack() const
@ OsiModelNetworkLayer
Definition: ProtocolType.h:240
bool setExperimentalUseValue(uint8_t val)
uint8_t getTTL() const
Definition: MplsLayer.h:57
const ProtocolType MPLS
Definition: ProtocolType.h:108
The main namespace for the PcapPlusPlus lib.
MplsLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: MplsLayer.h:41
size_t getHeaderLen() const
Definition: MplsLayer.h:111
bool setMplsLabel(uint32_t label)
void computeCalculateFields()
std::string toString() const
uint32_t getMplsLabel() const