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 setTTL(uint8_t ttl)
Definition: MplsLayer.h:63
uint8_t getExperimentalUseValue()
MplsLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: MplsLayer.h:41
void setBottomOfStack(bool val)
The main namespace for the PcapPlusPlus lib.
bool setMplsLabel(uint32_t label)
OsiModelLayer getOsiModelLayer()
Definition: MplsLayer.h:121
OsiModelLayer
Definition: ProtocolType.h:208
void computeCalculateFields()
Definition: MplsLayer.h:19
Definition: ProtocolType.h:106
bool setExperimentalUseValue(uint8_t val)
size_t getHeaderLen()
Definition: MplsLayer.h:111
Definition: ProtocolType.h:215
uint8_t getTTL()
Definition: MplsLayer.h:57