INET Framework for OMNeT++/OMNEST
|
Represents a packet with MPLS headers. More...
#include <MPLSPacket.h>
Public Member Functions | |
MPLSPacket (const char *name=nullptr) | |
MPLSPacket (const MPLSPacket &p) | |
virtual MPLSPacket & | operator= (const MPLSPacket &p) |
virtual MPLSPacket * | dup () const override |
cloning function More... | |
virtual std::string | info () const override |
Returns a string with the labels, starting with the top of stack. More... | |
void | swapLabel (int newLabel) |
Swap Label operation. More... | |
void | pushLabel (int newLabel) |
Pushes new label on the label stack. More... | |
void | popLabel () |
Pops the top label. More... | |
bool | hasLabel () |
Returns true if the label stack is not empty. More... | |
int | getTopLabel () |
Returns the top label. More... | |
Protected Types | |
typedef std::vector< int > | LabelStack |
Protected Attributes | |
LabelStack | labels |
Private Member Functions | |
void | copy (const MPLSPacket &other) |
Represents a packet with MPLS headers.
|
protected |
inet::MPLSPacket::MPLSPacket | ( | const MPLSPacket & | p | ) |
|
inlineprivate |
Referenced by MPLSPacket(), and operator=().
|
inlineoverridevirtual |
cloning function
|
inline |
|
inline |
Returns true if the label stack is not empty.
Referenced by inet::MPLS::doStackOps(), inet::MPLS::processMPLSPacketFromL2(), and inet::MPLS::tryLabelAndForwardIPv4Datagram().
|
overridevirtual |
Returns a string with the labels, starting with the top of stack.
|
virtual |
|
inline |
|
inline |
|
inline |
|
protected |