|
ns-3
|
#include <packet.h>
Public Member Functions | |
| TypeId | GetTypeId (void) const |
| uint32_t | GetStart (void) const |
| uint32_t | GetEnd (void) const |
| void | GetTag (Tag &tag) const |
Friends | |
| class | ByteTagIterator |
Identifies a tag and a set of bytes within a packet to which the tag applies.
| uint32_t ns3::ByteTagIterator::Item::GetEnd | ( | void | ) | const |
The index is an offset from the start of the packet.
Referenced by ns3::Packet::PrintByteTags().
| uint32_t ns3::ByteTagIterator::Item::GetStart | ( | void | ) | const |
The index is an offset from the start of the packet.
Referenced by 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.
References ns3::Tag::Deserialize(), ns3::ObjectBase::GetInstanceTypeId(), and NS_FATAL_ERROR.
Referenced by ns3::Packet::FindFirstMatchingByteTag(), and ns3::Packet::PrintByteTags().
| TypeId ns3::ByteTagIterator::Item::GetTypeId | ( | void | ) | const |
Referenced by ns3::Packet::FindFirstMatchingByteTag(), and ns3::Packet::PrintByteTags().