structure describing a packet metadata item More...
#include "packet-metadata.h"
Public Types | |
enum | ItemType { PAYLOAD , HEADER , TRAILER } |
Type of data in the packet. More... | |
Public Attributes | |
Buffer::Iterator | current |
an iterator which can be fed to Deserialize. More... | |
uint32_t | currentSize |
size of item. More... | |
uint32_t | currentTrimmedFromEnd |
how many bytes were trimmed from the end of a fragment. More... | |
uint32_t | currentTrimmedFromStart |
how many bytes were trimmed from the start of a fragment. More... | |
bool | isFragment |
true: this is a fragmented header, trailer, or, payload. More... | |
TypeId | tid |
TypeId of Header or Trailer. More... | |
ItemType | type |
metadata type More... | |
structure describing a packet metadata item
Definition at line 86 of file packet-metadata.h.
Type of data in the packet.
Enumerator | |
---|---|
PAYLOAD | Payload. |
HEADER | |
TRAILER |
Definition at line 89 of file packet-metadata.h.
Buffer::Iterator ns3::PacketMetadata::Item::current |
an iterator which can be fed to Deserialize.
Valid only if isFragment and isPayload are false.
Definition at line 130 of file packet-metadata.h.
Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().
uint32_t ns3::PacketMetadata::Item::currentSize |
size of item.
If fragment, size of fragment. Otherwise, size of original item.
Definition at line 115 of file packet-metadata.h.
Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().
uint32_t ns3::PacketMetadata::Item::currentTrimmedFromEnd |
how many bytes were trimmed from the end of a fragment.
if isFragment is true, this field is zero.
Definition at line 125 of file packet-metadata.h.
Referenced by ns3::PacketMetadata::ItemIterator::Next().
uint32_t ns3::PacketMetadata::Item::currentTrimmedFromStart |
how many bytes were trimmed from the start of a fragment.
if isFragment is true, this field is zero.
Definition at line 120 of file packet-metadata.h.
Referenced by ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().
bool ns3::PacketMetadata::Item::isFragment |
true: this is a fragmented header, trailer, or, payload.
false: this is a whole header, trailer, or, payload.
Definition at line 105 of file packet-metadata.h.
Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().
TypeId ns3::PacketMetadata::Item::tid |
Valid only if type is header or trailer.
Definition at line 110 of file packet-metadata.h.
Referenced by PacketMetadataTest::CheckHistory(), ns3::PyViz::FilterPacket(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().
ItemType ns3::PacketMetadata::Item::type |
metadata type
Definition at line 99 of file packet-metadata.h.
Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().