Data class for MPLS labels.
More...
#include <AftData.h>
|
static AftDataLabel::Ptr | create (uint32_t newLabel, bool newBoS, uint8_t newExp, uint8_t newTtl, bool newTtl_propagate) |
| Factory constructor for MPLS data labels. More...
|
|
static AftDataLabel::Ptr | create (uint32_t newLabel, bool newBoS, uint8_t newExp, uint8_t newTtl, bool newTtl_propagate, uint8_t newControl_word, bool newControl_word_insert) |
| Factory constructor for MPLS data labels. More...
|
|
Data class for MPLS labels.
AftDataLabel::AftDataLabel |
( |
uint32_t |
newLabel, |
|
|
bool |
newBoS, |
|
|
uint8_t |
newExp, |
|
|
uint8_t |
newTtl, |
|
|
bool |
newTtl_propagate, |
|
|
uint8_t |
newControl_word, |
|
|
bool |
newControl_word_insert |
|
) |
| |
|
inline |
Constructor for MPLS data labels.
- Parameters
-
[in] | newLabel | Value of the 20-bit MPLS label |
[in] | newBoS | True if the label is the bottom of the stack |
[in] | newExp | Set to the value of Exp to use |
[in] | newTtl | Time-To-Live value |
[in] | newTtl_propagate | True if we're propogating TTLs |
[in] | newControl_word | Control word value |
[in] | newControl_word_insert | True if we have to insert a control word |
virtual uint32_t AftDataLabel::append |
( |
AftDataBytes & |
newData | ) |
|
|
inlinevirtual |
Append contents of data object to AftDataBytes vector.
- Parameters
-
[in] | data | Reference to AftDataBytes vector to append to |
Reimplemented from AftData.
const bool AftDataLabel::bottom_of_stack |
( |
| ) |
const |
|
inline |
- Returns
- Returns true if this label is on the bottom of the stack
const uint8_t AftDataLabel::control_word |
( |
| ) |
const |
|
inline |
- Returns
- returns the value of the control word for the label
const bool AftDataLabel::control_word_insert |
( |
| ) |
const |
|
inline |
- Returns
- Returns true if we're inserting a control word
static AftDataLabel::Ptr AftDataLabel::create |
( |
uint32_t |
newLabel, |
|
|
bool |
newBoS, |
|
|
uint8_t |
newExp, |
|
|
uint8_t |
newTtl, |
|
|
bool |
newTtl_propagate |
|
) |
| |
|
inlinestatic |
Factory constructor for MPLS data labels.
- Parameters
-
[in] | newLabel | Value of the 20-bit MPLS label |
[in] | newBoS | True if the label is the bottom of the stack |
[in] | newExp | Set to the value of Exp to use |
[in] | newTtl | Time-To-Live value |
[in] | newTtl_propagate | True if we're propogating TTLs |
static AftDataLabel::Ptr AftDataLabel::create |
( |
uint32_t |
newLabel, |
|
|
bool |
newBoS, |
|
|
uint8_t |
newExp, |
|
|
uint8_t |
newTtl, |
|
|
bool |
newTtl_propagate, |
|
|
uint8_t |
newControl_word, |
|
|
bool |
newControl_word_insert |
|
) |
| |
|
inlinestatic |
Factory constructor for MPLS data labels.
- Parameters
-
[in] | newLabel | Value of the 20-bit MPLS label |
[in] | newBoS | True if the label is the bottom of the stack |
[in] | newExp | Set to the value of Exp to use |
[in] | newTtl | Time-To-Live value |
[in] | newTtl_propagate | True if we're propogating TTLs |
[in] | newControl_word | Control word value |
[in] | newControl_word_insert | True if we have to insert a control word |
virtual const std::string AftDataLabel::dataClass |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- String description of data type
Reimplemented from AftData.
virtual std::ostream& AftDataLabel::description |
( |
std::ostream & |
os | ) |
const |
|
inlinevirtual |
Append a description of the data to an output stream.
- Parameters
-
[in] | os | Reference to output stream to append description to |
- Returns
- Reference to output stream with text description of data appended
Reimplemented from AftData.
const uint8_t AftDataLabel::exp |
( |
| ) |
const |
|
inline |
- Returns
- Returns the Exp value
const uint32_t AftDataLabel::label |
( |
| ) |
const |
|
inline |
- Returns
- Returns the label used by the data instance
const uint8_t AftDataLabel::ttl |
( |
| ) |
const |
|
inline |
const bool AftDataLabel::ttl_propagate |
( |
| ) |
const |
|
inline |
- Returns
- Returns true if we're propogating TTLs
The documentation for this class was generated from the following file: