A message within a PbbPacket packet. More...
#include <packetbb.h>
Public Types | |
typedef std::list< Ptr < PbbAddressBlock > >::iterator | AddressBlockIterator |
typedef std::list< Ptr < PbbAddressBlock > >::const_iterator | ConstAddressBlockIterator |
typedef std::list< Ptr< PbbTlv > >::const_iterator | ConstTlvIterator |
typedef std::list< Ptr< PbbTlv > >::iterator | TlvIterator |
Public Member Functions | |
PbbMessage () | |
virtual | ~PbbMessage () |
Ptr< PbbAddressBlock > | AddressBlockBack (void) |
const Ptr< PbbAddressBlock > | AddressBlockBack (void) const |
AddressBlockIterator | AddressBlockBegin () |
ConstAddressBlockIterator | AddressBlockBegin () const |
void | AddressBlockClear (void) |
Removes all address blocks from this message. | |
bool | AddressBlockEmpty (void) const |
AddressBlockIterator | AddressBlockEnd () |
ConstAddressBlockIterator | AddressBlockEnd () const |
AddressBlockIterator | AddressBlockErase (AddressBlockIterator position) |
Removes the address block at the specified position. | |
AddressBlockIterator | AddressBlockErase (AddressBlockIterator first, AddressBlockIterator last) |
Removes all address blocks from [first, last) (includes first, not includes last). | |
Ptr< PbbAddressBlock > | AddressBlockFront (void) |
const Ptr< PbbAddressBlock > | AddressBlockFront (void) const |
void | AddressBlockPopBack (void) |
Removes an address block from the back of this message. | |
void | AddressBlockPopFront (void) |
Removes an address block from the front of this message. | |
void | AddressBlockPushBack (Ptr< PbbAddressBlock > block) |
Appends an address block to the front of this message. | |
void | AddressBlockPushFront (Ptr< PbbAddressBlock > block) |
Prepends an address block to the front of this message. | |
int | AddressBlockSize (void) const |
void | Deserialize (Buffer::Iterator &start) |
Deserializes a message from the specified buffer. | |
uint8_t | GetHopCount (void) const |
uint8_t | GetHopLimit (void) const |
Address | GetOriginatorAddress (void) const |
uint16_t | GetSequenceNumber (void) const |
uint32_t | GetSerializedSize (void) const |
uint8_t | GetType (void) const |
bool | HasHopCount (void) const |
Tests whether or not this message has a hop count. | |
bool | HasHopLimit (void) const |
Tests whether or not this message has a hop limit. | |
bool | HasOriginatorAddress (void) const |
Tests whether or not this message has an originator address. | |
bool | HasSequenceNumber (void) const |
Tests whether or not this message has a sequence number. | |
bool | operator!= (const PbbMessage &other) const |
bool | operator== (const PbbMessage &other) const |
void | Print (std::ostream &os) const |
Pretty-prints the contents of this message. | |
void | Print (std::ostream &os, int level) const |
Pretty-prints the contents of this message, with specified indentation. | |
void | Serialize (Buffer::Iterator &start) const |
Serializes this message into the specified buffer. | |
void | SetHopCount (uint8_t hopcount) |
Sets the current number of hops this message has traveled. | |
void | SetHopLimit (uint8_t hoplimit) |
Sets the maximum number of hops this message should travel. | |
void | SetOriginatorAddress (Address address) |
Sets the address for the node that created this packet. | |
void | SetSequenceNumber (uint16_t seqnum) |
Sets the sequence number of this message. | |
void | SetType (uint8_t type) |
Sets the type for this message. | |
Ptr< PbbTlv > | TlvBack (void) |
const Ptr< PbbTlv > | TlvBack (void) const |
TlvIterator | TlvBegin () |
ConstTlvIterator | TlvBegin () const |
void | TlvClear (void) |
Removes all message TLVs from this block. | |
bool | TlvEmpty (void) const |
TlvIterator | TlvEnd () |
ConstTlvIterator | TlvEnd () const |
TlvIterator | TlvErase (TlvIterator position) |
Removes the message TLV at the specified position. | |
TlvIterator | TlvErase (TlvIterator first, TlvIterator last) |
Removes all message TLVs from [first, last) (includes first, not includes last). | |
Ptr< PbbTlv > | TlvFront (void) |
const Ptr< PbbTlv > | TlvFront (void) const |
void | TlvPopBack (void) |
Removes a message TLV from the back of this message. | |
void | TlvPopFront (void) |
Removes a message TLV from the front of this message. | |
void | TlvPushBack (Ptr< PbbTlv > tlv) |
Appends a message TLV to the back of this message. | |
void | TlvPushFront (Ptr< PbbTlv > tlv) |
Prepends a message TLV to the front of this message. | |
int | TlvSize (void) const |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
Static Public Member Functions | |
static Ptr< PbbMessage > | DeserializeMessage (Buffer::Iterator &start) |
Deserializes a message, returning the correct object depending on whether it is an IPv4 message or an IPv6 message. | |
![]() | |
static void | Cleanup (void) |
Protected Member Functions | |
virtual Ptr< PbbAddressBlock > | AddressBlockDeserialize (Buffer::Iterator &start) const =0 |
virtual Address | DeserializeOriginatorAddress (Buffer::Iterator &start) const =0 |
virtual PbbAddressLength | GetAddressLength (void) const =0 |
virtual void | PrintOriginatorAddress (std::ostream &os) const =0 |
virtual void | SerializeOriginatorAddress (Buffer::Iterator &start) const =0 |
Private Attributes | |
std::list< Ptr< PbbAddressBlock > > | m_addressBlockList |
PbbAddressLength | m_addrSize |
bool | m_hasHopCount |
bool | m_hasHopLimit |
bool | m_hasOriginatorAddress |
bool | m_hasSequenceNumber |
uint8_t | m_hopCount |
uint8_t | m_hopLimit |
Address | m_originatorAddress |
uint16_t | m_sequenceNumber |
PbbTlvBlock | m_tlvList |
uint8_t | m_type |
A message within a PbbPacket packet.
There may be any number of messages in one packet packet. This is a pure virtual base class, when creating a message, you should instantiate either PbbMessageIpv4 or PbbMessageIpv6.
Definition at line 652 of file packetbb.h.
typedef std::list< Ptr<PbbAddressBlock> >::iterator ns3::PbbMessage::AddressBlockIterator |
Definition at line 657 of file packetbb.h.
typedef std::list< Ptr<PbbAddressBlock> >::const_iterator ns3::PbbMessage::ConstAddressBlockIterator |
Definition at line 658 of file packetbb.h.
typedef std::list< Ptr<PbbTlv> >::const_iterator ns3::PbbMessage::ConstTlvIterator |
Definition at line 656 of file packetbb.h.
typedef std::list< Ptr<PbbTlv> >::iterator ns3::PbbMessage::TlvIterator |
Definition at line 655 of file packetbb.h.
ns3::PbbMessage::PbbMessage | ( | ) |
Definition at line 932 of file packetbb.cc.
References ns3::IPV4, m_addrSize, m_hasHopCount, m_hasHopLimit, m_hasOriginatorAddress, and m_hasSequenceNumber.
|
virtual |
Definition at line 942 of file packetbb.cc.
References AddressBlockClear().
Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockBack | ( | void | ) |
Definition at line 1200 of file packetbb.cc.
References m_addressBlockList.
const Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockBack | ( | void | ) | const |
Definition at line 1206 of file packetbb.cc.
References m_addressBlockList.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockBegin | ( | void | ) |
Definition at line 1152 of file packetbb.cc.
References m_addressBlockList.
Referenced by AddressBlockClear(), GetSerializedSize(), operator==(), Print(), and Serialize().
PbbMessage::ConstAddressBlockIterator ns3::PbbMessage::AddressBlockBegin | ( | void | ) | const |
Definition at line 1158 of file packetbb.cc.
References m_addressBlockList.
void ns3::PbbMessage::AddressBlockClear | ( | void | ) |
Removes all address blocks from this message.
Definition at line 1249 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), and m_addressBlockList.
Referenced by ~PbbMessage().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Deserialize().
bool ns3::PbbMessage::AddressBlockEmpty | ( | void | ) | const |
Definition at line 1182 of file packetbb.cc.
References m_addressBlockList.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockEnd | ( | void | ) |
Definition at line 1164 of file packetbb.cc.
References m_addressBlockList.
Referenced by AddressBlockClear(), GetSerializedSize(), operator==(), Print(), and Serialize().
PbbMessage::ConstAddressBlockIterator ns3::PbbMessage::AddressBlockEnd | ( | void | ) | const |
Definition at line 1170 of file packetbb.cc.
References m_addressBlockList.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockErase | ( | PbbMessage::AddressBlockIterator | position | ) |
Removes the address block at the specified position.
position | an Iterator pointing to the address block to erase. |
Definition at line 1236 of file packetbb.cc.
References m_addressBlockList.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockErase | ( | PbbMessage::AddressBlockIterator | first, |
PbbMessage::AddressBlockIterator | last | ||
) |
Removes all address blocks from [first, last) (includes first, not includes last).
first | an Iterator pointing to the first address block to erase (inclusive). |
last | an Iterator pointing to the element past the last address block to erase. |
Definition at line 1242 of file packetbb.cc.
References m_addressBlockList.
Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockFront | ( | void | ) |
Definition at line 1188 of file packetbb.cc.
References m_addressBlockList.
const Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockFront | ( | void | ) | const |
Definition at line 1194 of file packetbb.cc.
References m_addressBlockList.
void ns3::PbbMessage::AddressBlockPopBack | ( | void | ) |
Removes an address block from the back of this message.
Definition at line 1230 of file packetbb.cc.
References m_addressBlockList.
void ns3::PbbMessage::AddressBlockPopFront | ( | void | ) |
Removes an address block from the front of this message.
Definition at line 1218 of file packetbb.cc.
References m_addressBlockList.
void ns3::PbbMessage::AddressBlockPushBack | ( | Ptr< PbbAddressBlock > | block | ) |
Appends an address block to the front of this message.
block | a smart pointer to the address block to append. |
Definition at line 1224 of file packetbb.cc.
References m_addressBlockList.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::AddressBlockPushFront | ( | Ptr< PbbAddressBlock > | block | ) |
Prepends an address block to the front of this message.
block | a smart pointer to the address block to prepend. |
Definition at line 1212 of file packetbb.cc.
References m_addressBlockList.
int ns3::PbbMessage::AddressBlockSize | ( | void | ) | const |
Definition at line 1176 of file packetbb.cc.
References m_addressBlockList.
Referenced by operator==().
void ns3::PbbMessage::Deserialize | ( | Buffer::Iterator & | start | ) |
Deserializes a message from the specified buffer.
start | a reference to the point in a buffer to begin deserializing. |
Users should not need to call this. Blocks will be deserialized by their containing packet.
Definition at line 1387 of file packetbb.cc.
References AddressBlockDeserialize(), AddressBlockPushBack(), ns3::PbbTlvBlock::Deserialize(), DeserializeOriginatorAddress(), ns3::Buffer::Iterator::GetDistanceFrom(), m_tlvList, MHAS_HOP_COUNT, MHAS_HOP_LIMIT, MHAS_ORIG, MHAS_SEQ_NUM, ns3::Buffer::Iterator::ReadNtohU16(), ns3::Buffer::Iterator::ReadU8(), SetHopCount(), SetHopLimit(), SetOriginatorAddress(), SetSequenceNumber(), SetType(), and visualizer.core::start().
Referenced by DeserializeMessage(), ns3::PbbMessageIpv4::DeserializeOriginatorAddress(), and ns3::PbbMessageIpv6::DeserializeOriginatorAddress().
|
static |
Deserializes a message, returning the correct object depending on whether it is an IPv4 message or an IPv6 message.
start | a reference to the point in a buffer to begin deserializing. |
Users should not need to call this. Blocks will be deserialized by their containing packet.
Definition at line 1355 of file packetbb.cc.
References Deserialize(), ns3::IPV4, ns3::IPV6, ns3::Buffer::Iterator::Next(), ns3::Buffer::Iterator::Prev(), and ns3::Buffer::Iterator::ReadU8().
Referenced by ns3::PbbPacket::Deserialize().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Deserialize().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Definition at line 960 of file packetbb.cc.
References m_addrSize.
Referenced by GetSerializedSize(), operator==(), Print(), and Serialize().
uint8_t ns3::PbbMessage::GetHopCount | ( | void | ) | const |
Calling this while HasHopCount is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 1013 of file packetbb.cc.
References HasHopCount(), m_hopCount, and NS_ASSERT.
Referenced by operator==(), Print(), and Serialize().
uint8_t ns3::PbbMessage::GetHopLimit | ( | void | ) | const |
Calling this while HasHopLimit is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 993 of file packetbb.cc.
References HasHopLimit(), m_hopLimit, and NS_ASSERT.
Referenced by operator==(), Print(), and Serialize().
Address ns3::PbbMessage::GetOriginatorAddress | ( | void | ) | const |
Calling this while HasOriginatorAddress is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 973 of file packetbb.cc.
References HasOriginatorAddress(), m_originatorAddress, and NS_ASSERT.
Referenced by operator==(), ns3::PbbMessageIpv4::PrintOriginatorAddress(), ns3::PbbMessageIpv6::PrintOriginatorAddress(), ns3::PbbMessageIpv4::SerializeOriginatorAddress(), and ns3::PbbMessageIpv6::SerializeOriginatorAddress().
uint16_t ns3::PbbMessage::GetSequenceNumber | ( | void | ) | const |
Calling this while HasSequenceNumber is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 1033 of file packetbb.cc.
References HasSequenceNumber(), m_sequenceNumber, and NS_ASSERT.
Referenced by operator==(), Print(), and Serialize().
uint32_t ns3::PbbMessage::GetSerializedSize | ( | void | ) | const |
Definition at line 1261 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), GetAddressLength(), ns3::PbbTlvBlock::GetSerializedSize(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), and m_tlvList.
uint8_t ns3::PbbMessage::GetType | ( | void | ) | const |
Definition at line 954 of file packetbb.cc.
References m_type.
Referenced by operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasHopCount | ( | void | ) | const |
Tests whether or not this message has a hop count.
Definition at line 1020 of file packetbb.cc.
References m_hasHopCount.
Referenced by GetHopCount(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasHopLimit | ( | void | ) | const |
Tests whether or not this message has a hop limit.
If this is set, messages should not hop further than this limit.
Definition at line 1000 of file packetbb.cc.
References m_hasHopLimit.
Referenced by GetHopLimit(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasOriginatorAddress | ( | void | ) | const |
Tests whether or not this message has an originator address.
Definition at line 980 of file packetbb.cc.
References m_hasOriginatorAddress.
Referenced by GetOriginatorAddress(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasSequenceNumber | ( | void | ) | const |
Tests whether or not this message has a sequence number.
Definition at line 1040 of file packetbb.cc.
References m_hasSequenceNumber.
Referenced by GetSequenceNumber(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::operator!= | ( | const PbbMessage & | other | ) | const |
Definition at line 1569 of file packetbb.cc.
bool ns3::PbbMessage::operator== | ( | const PbbMessage & | other | ) | const |
Definition at line 1481 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), AddressBlockSize(), GetAddressLength(), GetHopCount(), GetHopLimit(), GetOriginatorAddress(), GetSequenceNumber(), GetType(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), and m_tlvList.
void ns3::PbbMessage::Print | ( | std::ostream & | os | ) | const |
Pretty-prints the contents of this message.
os | a stream object to print to. |
Definition at line 1428 of file packetbb.cc.
void ns3::PbbMessage::Print | ( | std::ostream & | os, |
int | level | ||
) | const |
Pretty-prints the contents of this message, with specified indentation.
os | a stream object to print to. |
level | level of indentation. |
This probably never needs to be called by users. This is used when recursively printing sub-objects.
Definition at line 1434 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), GetAddressLength(), GetHopCount(), GetHopLimit(), GetSequenceNumber(), GetType(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), m_tlvList, ns3::PbbTlvBlock::Print(), and PrintOriginatorAddress().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Print().
void ns3::PbbMessage::Serialize | ( | Buffer::Iterator & | start | ) | const |
Serializes this message into the specified buffer.
start | a reference to the point in a buffer to begin serializing. |
Users should not need to call this. Blocks will be deserialized by their containing packet.
Definition at line 1299 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), GetAddressLength(), ns3::Buffer::Iterator::GetDistanceFrom(), GetHopCount(), GetHopLimit(), GetSequenceNumber(), GetType(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), m_tlvList, MHAS_HOP_COUNT, MHAS_HOP_LIMIT, MHAS_ORIG, MHAS_SEQ_NUM, ns3::Buffer::Iterator::Next(), ns3::PbbTlvBlock::Serialize(), SerializeOriginatorAddress(), visualizer.core::start(), ns3::Buffer::Iterator::WriteHtonU16(), and ns3::Buffer::Iterator::WriteU8().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Serialize().
void ns3::PbbMessage::SetHopCount | ( | uint8_t | hopcount | ) |
Sets the current number of hops this message has traveled.
hopcount | the current number of hops |
Definition at line 1006 of file packetbb.cc.
References m_hasHopCount, and m_hopCount.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetHopLimit | ( | uint8_t | hoplimit | ) |
Sets the maximum number of hops this message should travel.
hoplimit | the limit to set |
Definition at line 986 of file packetbb.cc.
References m_hasHopLimit, and m_hopLimit.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetOriginatorAddress | ( | Address | address | ) |
Sets the address for the node that created this packet.
address | the originator address. |
Definition at line 966 of file packetbb.cc.
References m_hasOriginatorAddress, and m_originatorAddress.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetSequenceNumber | ( | uint16_t | seqnum | ) |
Sets the sequence number of this message.
seqnum | the sequence number to set. |
Definition at line 1026 of file packetbb.cc.
References m_hasSequenceNumber, and m_sequenceNumber.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetType | ( | uint8_t | type | ) |
Sets the type for this message.
type | the type to set. |
Definition at line 948 of file packetbb.cc.
References m_type.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
Definition at line 1096 of file packetbb.cc.
References ns3::PbbTlvBlock::Back(), and m_tlvList.
Definition at line 1102 of file packetbb.cc.
References ns3::PbbTlvBlock::Back(), and m_tlvList.
PbbMessage::TlvIterator ns3::PbbMessage::TlvBegin | ( | void | ) |
Definition at line 1048 of file packetbb.cc.
References ns3::PbbTlvBlock::Begin(), and m_tlvList.
PbbMessage::ConstTlvIterator ns3::PbbMessage::TlvBegin | ( | void | ) | const |
Definition at line 1054 of file packetbb.cc.
References ns3::PbbTlvBlock::Begin(), and m_tlvList.
void ns3::PbbMessage::TlvClear | ( | void | ) |
Removes all message TLVs from this block.
Definition at line 1144 of file packetbb.cc.
References ns3::PbbTlvBlock::Clear(), and m_tlvList.
bool ns3::PbbMessage::TlvEmpty | ( | void | ) | const |
Definition at line 1078 of file packetbb.cc.
References ns3::PbbTlvBlock::Empty(), and m_tlvList.
PbbMessage::TlvIterator ns3::PbbMessage::TlvEnd | ( | void | ) |
Definition at line 1060 of file packetbb.cc.
References ns3::PbbTlvBlock::End(), and m_tlvList.
PbbMessage::ConstTlvIterator ns3::PbbMessage::TlvEnd | ( | void | ) | const |
Definition at line 1066 of file packetbb.cc.
References ns3::PbbTlvBlock::End(), and m_tlvList.
PbbMessage::TlvIterator ns3::PbbMessage::TlvErase | ( | PbbMessage::TlvIterator | position | ) |
Removes the message TLV at the specified position.
position | an Iterator pointing to the message TLV to erase. |
Definition at line 1132 of file packetbb.cc.
References ns3::PbbTlvBlock::Erase(), and m_tlvList.
PbbMessage::TlvIterator ns3::PbbMessage::TlvErase | ( | PbbMessage::TlvIterator | first, |
PbbMessage::TlvIterator | last | ||
) |
Removes all message TLVs from [first, last) (includes first, not includes last).
first | an Iterator pointing to the first message TLV to erase (inclusive). |
last | an Iterator pointing to the element past the last message TLV to erase. |
Definition at line 1138 of file packetbb.cc.
References ns3::PbbTlvBlock::Erase(), and m_tlvList.
Definition at line 1084 of file packetbb.cc.
References ns3::PbbTlvBlock::Front(), and m_tlvList.
Definition at line 1090 of file packetbb.cc.
References ns3::PbbTlvBlock::Front(), and m_tlvList.
void ns3::PbbMessage::TlvPopBack | ( | void | ) |
Removes a message TLV from the back of this message.
Definition at line 1126 of file packetbb.cc.
References m_tlvList, and ns3::PbbTlvBlock::PopBack().
void ns3::PbbMessage::TlvPopFront | ( | void | ) |
Removes a message TLV from the front of this message.
Definition at line 1114 of file packetbb.cc.
References m_tlvList, and ns3::PbbTlvBlock::PopFront().
Appends a message TLV to the back of this message.
tlv | a smart pointer to the message TLV to append. |
Definition at line 1120 of file packetbb.cc.
References m_tlvList, and ns3::PbbTlvBlock::PushBack().
Referenced by PbbTestSuite::PbbTestSuite().
Prepends a message TLV to the front of this message.
tlv | a smart pointer to the message TLV to prepend. |
Definition at line 1108 of file packetbb.cc.
References m_tlvList, and ns3::PbbTlvBlock::PushFront().
int ns3::PbbMessage::TlvSize | ( | void | ) | const |
Definition at line 1072 of file packetbb.cc.
References m_tlvList, and ns3::PbbTlvBlock::Size().
|
private |
Definition at line 1025 of file packetbb.h.
Referenced by AddressBlockBack(), AddressBlockBegin(), AddressBlockClear(), AddressBlockEmpty(), AddressBlockEnd(), AddressBlockErase(), AddressBlockFront(), AddressBlockPopBack(), AddressBlockPopFront(), AddressBlockPushBack(), AddressBlockPushFront(), and AddressBlockSize().
|
private |
Definition at line 1028 of file packetbb.h.
Referenced by GetAddressLength(), and PbbMessage().
|
private |
Definition at line 1036 of file packetbb.h.
Referenced by HasHopCount(), PbbMessage(), and SetHopCount().
|
private |
Definition at line 1033 of file packetbb.h.
Referenced by HasHopLimit(), PbbMessage(), and SetHopLimit().
|
private |
Definition at line 1030 of file packetbb.h.
Referenced by HasOriginatorAddress(), PbbMessage(), and SetOriginatorAddress().
|
private |
Definition at line 1039 of file packetbb.h.
Referenced by HasSequenceNumber(), PbbMessage(), and SetSequenceNumber().
|
private |
Definition at line 1037 of file packetbb.h.
Referenced by GetHopCount(), and SetHopCount().
|
private |
Definition at line 1034 of file packetbb.h.
Referenced by GetHopLimit(), and SetHopLimit().
|
private |
Definition at line 1031 of file packetbb.h.
Referenced by GetOriginatorAddress(), and SetOriginatorAddress().
|
private |
Definition at line 1040 of file packetbb.h.
Referenced by GetSequenceNumber(), and SetSequenceNumber().
|
private |
Definition at line 1024 of file packetbb.h.
Referenced by Deserialize(), GetSerializedSize(), operator==(), Print(), Serialize(), TlvBack(), TlvBegin(), TlvClear(), TlvEmpty(), TlvEnd(), TlvErase(), TlvFront(), TlvPopBack(), TlvPopFront(), TlvPushBack(), TlvPushFront(), and TlvSize().
|
private |
Definition at line 1027 of file packetbb.h.