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; }
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:253
bool setExperimentalUseValue(uint8_t val)
MplsLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: MplsLayer.h:41
std::string toString() const
uint8_t getTTL() const
Definition: MplsLayer.h:57
size_t getHeaderLen() const
Definition: MplsLayer.h:111
bool setMplsLabel(uint32_t label)
void computeCalculateFields()
Definition: ProtocolType.h:260
void setBottomOfStack(bool val)
uint32_t getMplsLabel() const
const ProtocolType MPLS
Definition: ProtocolType.h:108
OsiModelLayer getOsiModelLayer() const
Definition: MplsLayer.h:121
uint8_t getExperimentalUseValue() const
Definition: MplsLayer.h:19
bool isBottomOfStack() const
void setTTL(uint8_t ttl)
Definition: MplsLayer.h:63