1 #ifndef PACKETPP_MPLS_LAYER 2 #define PACKETPP_MPLS_LAYER 32 inline mpls_header* getMplsHeader() {
return (mpls_header*)m_Data; }
50 MplsLayer(uint32_t mplsLabel, uint8_t ttl, uint8_t expermentalUseValue,
bool bottomOfStack);
57 inline uint8_t
getTTL() {
return getMplsHeader()->ttl; }
63 inline void setTTL(uint8_t ttl) { getMplsHeader()->ttl = ttl; }
void computeCalculateFields()
OsiModelLayer getOsiModelLayer()
Definition: MplsLayer.h:121
Definition: ProtocolType.h:106
bool setMplsLabel(uint32_t label)
OsiModelLayer
Definition: ProtocolType.h:213
void setTTL(uint8_t ttl)
Definition: MplsLayer.h:63
Definition: ProtocolType.h:220
uint8_t getExperimentalUseValue()
uint8_t getTTL()
Definition: MplsLayer.h:57
void setBottomOfStack(bool val)
bool setExperimentalUseValue(uint8_t val)
Definition: MplsLayer.h:19
size_t getHeaderLen()
Definition: MplsLayer.h:111
The main namespace for the PcapPlusPlus lib.
MplsLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: MplsLayer.h:41