#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. More... | |
bool | HasIndexStop (void) const |
Tests whether or not this address TLV has a stop index. More... | |
bool | IsMultivalue (void) const |
Tests whether or not this address TLV is "multivalue". More... | |
void | SetIndexStart (uint8_t index) |
Sets the index of the first address in the associated address block that this address TLV applies to. More... | |
void | SetIndexStop (uint8_t index) |
Sets the index of the last address in the associated address block that this address TLV applies to. More... | |
void | SetMultivalue (bool isMultivalue) |
Sets whether or not this address TLV is "multivalue". More... | |
Public Member Functions inherited from ns3::PbbTlv | |
PbbTlv (void) | |
virtual | ~PbbTlv (void) |
void | Deserialize (Buffer::Iterator &start) |
Deserializes a TLV from the specified buffer. More... | |
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. More... | |
bool | HasValue (void) const |
Tests whether or not this TLV has a value. More... | |
bool | operator!= (const PbbTlv &other) const |
Inequality operator for PbbTlv. More... | |
bool | operator== (const PbbTlv &other) const |
Equality operator for PbbTlv. More... | |
void | Print (std::ostream &os) const |
Pretty-prints the contents of this TLV. More... | |
void | Print (std::ostream &os, int level) const |
Pretty-prints the contents of this TLV, with specified indentation. More... | |
void | Serialize (Buffer::Iterator &start) const |
Serializes this TLV into the specified buffer. More... | |
void | SetType (uint8_t type) |
Sets the type of this TLV. More... | |
void | SetTypeExt (uint8_t type) |
Sets the type extension of this TLV. More... | |
void | SetValue (Buffer start) |
Sets the value of this message to the specified buffer. More... | |
void | SetValue (const uint8_t *buffer, uint32_t size) |
Sets the value of this message to a buffer with the specified data. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< PbbTlv > | |
SimpleRefCount () | |
Constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::SimpleRefCount< PbbTlv > | |
static void | Cleanup (void) |
Noop. More... | |
Protected Member Functions inherited from ns3::PbbTlv | |
uint8_t | GetIndexStart (void) const |
uint8_t | GetIndexStop (void) const |
bool | HasIndexStart (void) const |
bool | HasIndexStop (void) const |
bool | IsMultivalue (void) const |
void | SetIndexStart (uint8_t index) |
void | SetIndexStop (uint8_t index) |
void | SetMultivalue (bool isMultivalue) |
An Address TLV.
Definition at line 1751 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.
Definition at line 3039 of file packetbb.cc.
References ns3::PbbTlv::GetIndexStart(), and NS_LOG_FUNCTION.
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.
Definition at line 3060 of file packetbb.cc.
References ns3::PbbTlv::GetIndexStop(), and NS_LOG_FUNCTION.
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.
Definition at line 3046 of file packetbb.cc.
References ns3::PbbTlv::HasIndexStart(), and NS_LOG_FUNCTION.
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.
Definition at line 3067 of file packetbb.cc.
References ns3::PbbTlv::HasIndexStop(), and NS_LOG_FUNCTION.
bool ns3::PbbAddressTlv::IsMultivalue | ( | void | ) | const |
Tests whether or not this address TLV is "multivalue".
Definition at line 3081 of file packetbb.cc.
References ns3::PbbTlv::IsMultivalue(), and NS_LOG_FUNCTION.
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. |
Definition at line 3032 of file packetbb.cc.
References NS_LOG_FUNCTION, and ns3::PbbTlv::SetIndexStart().
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. |
Definition at line 3053 of file packetbb.cc.
References NS_LOG_FUNCTION, and ns3::PbbTlv::SetIndexStop().
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.
Definition at line 3074 of file packetbb.cc.
References NS_LOG_FUNCTION, and ns3::PbbTlv::SetMultivalue().
Referenced by PbbTestSuite::PbbTestSuite().