#include <packetbb.h>
Public Member Functions | |
uint8_t | GetIndexStart (void) const |
uint8_t | GetIndexStop (void) const |
bool | HasIndexStart (void) const |
Tests whether or not this address TLV has a start index. | |
bool | HasIndexStop (void) const |
Tests whether or not this address TLV has a stop index. | |
bool | IsMultivalue (void) const |
Tests whether or not this address TLV is "multivalue". | |
void | SetIndexStart (uint8_t index) |
Sets the index of the first address in the associated address block that this address TLV applies to. | |
void | SetIndexStop (uint8_t index) |
Sets the index of the last address in the associated address block that this address TLV applies to. | |
void | SetMultivalue (bool isMultivalue) |
Sets whether or not this address TLV is "multivalue". | |
![]() | |
PbbTlv (void) | |
virtual | ~PbbTlv (void) |
void | Deserialize (Buffer::Iterator &start) |
Deserializes a TLV from the specified buffer. | |
uint32_t | GetSerializedSize (void) const |
uint8_t | GetType (void) const |
uint8_t | GetTypeExt (void) const |
Buffer | GetValue (void) const |
bool | HasTypeExt (void) const |
Tests whether or not this TLV has a type extension. | |
bool | HasValue (void) const |
Tests whether or not this TLV has a value. | |
bool | operator!= (const PbbTlv &other) const |
bool | operator== (const PbbTlv &other) const |
void | Print (std::ostream &os) const |
Pretty-prints the contents of this TLV. | |
void | Print (std::ostream &os, int level) const |
Pretty-prints the contents of this TLV, with specified indentation. | |
void | Serialize (Buffer::Iterator &start) const |
Serializes this TLV into the specified buffer. | |
void | SetType (uint8_t type) |
Sets the type of this TLV. | |
void | SetTypeExt (uint8_t type) |
Sets the type extension of this TLV. | |
void | SetValue (Buffer start) |
Sets the value of this message to the specified buffer. | |
void | SetValue (const uint8_t *buffer, uint32_t size) |
Sets the value of this message to a buffer with the specified data. | |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
Additional Inherited Members | |
![]() | |
static void | Cleanup (void) |
An Address TLV.
Definition at line 1658 of file packetbb.h.
uint8_t ns3::PbbAddressTlv::GetIndexStart | ( | void | ) | const |
Calling this while HasIndexStart is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Reimplemented from ns3::PbbTlv.
Definition at line 2779 of file packetbb.cc.
uint8_t ns3::PbbAddressTlv::GetIndexStop | ( | void | ) | const |
Calling this while HasIndexStop is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Reimplemented from ns3::PbbTlv.
Definition at line 2797 of file packetbb.cc.
bool ns3::PbbAddressTlv::HasIndexStart | ( | void | ) | const |
Tests whether or not this address TLV has a start index.
This should be called before calling GetIndexStart to make sure there actually is one.
Reimplemented from ns3::PbbTlv.
Definition at line 2785 of file packetbb.cc.
bool ns3::PbbAddressTlv::HasIndexStop | ( | void | ) | const |
Tests whether or not this address TLV has a stop index.
This should be called before calling GetIndexStop to make sure there actually is one.
Reimplemented from ns3::PbbTlv.
Definition at line 2803 of file packetbb.cc.
bool ns3::PbbAddressTlv::IsMultivalue | ( | void | ) | const |
Tests whether or not this address TLV is "multivalue".
Reimplemented from ns3::PbbTlv.
Definition at line 2815 of file packetbb.cc.
void ns3::PbbAddressTlv::SetIndexStart | ( | uint8_t | index | ) |
Sets the index of the first address in the associated address block that this address TLV applies to.
index | the index of the first address. |
Reimplemented from ns3::PbbTlv.
Definition at line 2773 of file packetbb.cc.
Referenced by PbbTestSuite::PbbTestSuite().
void ns3::PbbAddressTlv::SetIndexStop | ( | uint8_t | index | ) |
Sets the index of the last address in the associated address block that this address TLV applies to.
index | the index of the last address. |
Reimplemented from ns3::PbbTlv.
Definition at line 2791 of file packetbb.cc.
Referenced by PbbTestSuite::PbbTestSuite().
void ns3::PbbAddressTlv::SetMultivalue | ( | bool | isMultivalue | ) |
Sets whether or not this address TLV is "multivalue".
isMultivalue | whether or not this address TLV should be multivalue. |
If true, this means the value associated with this TLV should be divided evenly into (GetIndexStop() - GetIndexStart() + 1) values. Otherwise, the value is one single value that applies to each address in the range.
Reimplemented from ns3::PbbTlv.
Definition at line 2809 of file packetbb.cc.
Referenced by PbbTestSuite::PbbTestSuite().