A Discrete-Event Network Simulator
API
ns3::PacketMetadata::SmallItem Struct Reference

SmallItem structure. More...

+ Collaboration diagram for ns3::PacketMetadata::SmallItem:

Public Attributes

uint16_t chunkUid
 this field tries to uniquely identify each header or trailer instance while the typeUid field uniquely identifies each header or trailer type. More...
 
uint16_t next
 offset (in bytes) from start of m_data buffer to next element in linked list. More...
 
uint16_t prev
 offset (in bytes) from start of m_data buffer to previous element in linked list. More...
 
uint32_t size
 the size (in bytes) of the header or trailer represented by this element. More...
 
uint32_t typeUid
 the high 31 bits of this field identify the type of the header or trailer represented by this item: the value zero represents payload. More...
 

Detailed Description

SmallItem structure.

Definition at line 447 of file packet-metadata.h.

Member Data Documentation

◆ chunkUid

uint16_t ns3::PacketMetadata::SmallItem::chunkUid

this field tries to uniquely identify each header or trailer instance while the typeUid field uniquely identifies each header or trailer type.

This field is used to test whether two items are equal in the sense that they represent the same header or trailer instance. That equality test is based on the typeUid and chunkUid fields so, the likelihood that two header instances share the same chunkUid and typeUid is very small unless they are really representations of the same header instance. stored as a fixed-size 16 bit integer.

Definition at line 486 of file packet-metadata.h.

Referenced by ns3::PacketMetadata::AddAtEnd(), ns3::PacketMetadata::AddBig(), ns3::PacketMetadata::AddSmall(), ns3::PacketMetadata::AddTrailer(), ns3::PacketMetadata::Deserialize(), ns3::PacketMetadata::DoAddHeader(), ns3::PacketMetadata::ReadItems(), ns3::PacketMetadata::ReplaceTail(), and ns3::PacketMetadata::Serialize().

◆ next

◆ prev

uint16_t ns3::PacketMetadata::SmallItem::prev

offset (in bytes) from start of m_data buffer to previous element in linked list.

value is 0xffff if previous element does not exist. stored as a fixed-size 16 bit integer.

Definition at line 460 of file packet-metadata.h.

Referenced by ns3::PacketMetadata::AddBig(), ns3::PacketMetadata::AddSmall(), ns3::PacketMetadata::AddTrailer(), ns3::PacketMetadata::DoAddHeader(), ns3::PacketMetadata::IsStateOk(), ns3::PacketMetadata::ReadItems(), ns3::PacketMetadata::RemoveAtEnd(), ns3::PacketMetadata::RemoveTrailer(), and ns3::PacketMetadata::ReplaceTail().

◆ size

◆ typeUid

uint32_t ns3::PacketMetadata::SmallItem::typeUid

the high 31 bits of this field identify the type of the header or trailer represented by this item: the value zero represents payload.

If the low bit of this uid is one, an ExtraItem structure follows this SmallItem structure. stored as a variable-size 32 bit integer.

Definition at line 468 of file packet-metadata.h.

Referenced by ns3::PacketMetadata::AddAtEnd(), ns3::PacketMetadata::AddBig(), ns3::PacketMetadata::AddSmall(), ns3::PacketMetadata::AddTrailer(), ns3::PacketMetadata::Deserialize(), ns3::PacketMetadata::DoAddHeader(), ns3::PacketMetadata::GetSerializedSize(), ns3::PacketMetadata::ItemIterator::Next(), ns3::PacketMetadata::ReadItems(), ns3::PacketMetadata::RemoveHeader(), ns3::PacketMetadata::RemoveTrailer(), ns3::PacketMetadata::ReplaceTail(), and ns3::PacketMetadata::Serialize().


The documentation for this struct was generated from the following file: