#include <packet.h>
Public Member Functions | |
uint32_t | GetEnd (void) const |
uint32_t | GetStart (void) const |
void | GetTag (Tag &tag) const |
TypeId | GetTypeId (void) const |
Private Member Functions | |
Item (TypeId tid, uint32_t start, uint32_t end, TagBuffer buffer) |
Private Attributes | |
TagBuffer | m_buffer |
uint32_t | m_end |
uint32_t | m_start |
TypeId | m_tid |
Friends | |
class | ByteTagIterator |
Identifies a tag and a set of bytes within a packet to which the tag applies.
|
private |
Definition at line 60 of file packet.cc.
References NS_LOG_FUNCTION.
uint32_t ns3::ByteTagIterator::Item::GetEnd | ( | void | ) | const |
The index is an offset from the start of the packet.
Definition at line 45 of file packet.cc.
References NS_LOG_FUNCTION.
Referenced by PacketTest::DoCheck(), and ns3::Packet::PrintByteTags().
uint32_t ns3::ByteTagIterator::Item::GetStart | ( | void | ) | const |
The index is an offset from the start of the packet.
Definition at line 39 of file packet.cc.
References NS_LOG_FUNCTION.
Referenced by PacketTest::DoCheck(), and ns3::Packet::PrintByteTags().
void ns3::ByteTagIterator::Item::GetTag | ( | Tag & | tag | ) | const |
tag | the user tag to which the data should be copied. |
Read the requested tag and store it in the user-provided tag instance. This method will crash if the type of the tag provided by the user does not match the type of the underlying tag.
Definition at line 51 of file packet.cc.
References ns3::Tag::Deserialize(), ns3::ObjectBase::GetInstanceTypeId(), NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Referenced by PacketTest::DoCheck(), ns3::Packet::FindFirstMatchingByteTag(), ns3::AnimationInterface::GetAnimUidFromPacket(), and ns3::Packet::PrintByteTags().
TypeId ns3::ByteTagIterator::Item::GetTypeId | ( | void | ) | const |
Definition at line 34 of file packet.cc.
References m_tid.
Referenced by PacketTest::DoCheck(), ns3::Packet::FindFirstMatchingByteTag(), ns3::AnimationInterface::GetAnimUidFromPacket(), and ns3::Packet::PrintByteTags().
|
friend |
|
private |
Definition at line 88 of file packet.h.
Referenced by GetTypeId().