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

structure describing a packet metadata item More...

#include "packet-metadata.h"

+ Collaboration diagram for ns3::PacketMetadata::Item:

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 currentTrimedFromEnd
 how many bytes were trimmed from the end of a fragment. More...
 
uint32_t currentTrimedFromStart
 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...
 
enum ns3::PacketMetadata::Item::ItemType type
 metadata type More...
 

Detailed Description

structure describing a packet metadata item

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

Member Enumeration Documentation

Type of data in the packet.

Enumerator
PAYLOAD 

Payload.

HEADER 

Header.

TRAILER 

Trailer.

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

Member Data Documentation

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 122 of file packet-metadata.h.

Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), ns3::QKDCrypto::PacketToString(), 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 107 of file packet-metadata.h.

Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().

uint32_t ns3::PacketMetadata::Item::currentTrimedFromEnd

how many bytes were trimmed from the end of a fragment.

if isFragment is true, this field is zero.

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

Referenced by ns3::PacketMetadata::ItemIterator::Next().

uint32_t ns3::PacketMetadata::Item::currentTrimedFromStart

how many bytes were trimmed from the start of a fragment.

if isFragment is true, this field is zero.

Definition at line 112 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 97 of file packet-metadata.h.

Referenced by PacketMetadataTest::CheckHistory(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::Packet::Print().

TypeId ns3::PacketMetadata::Item::tid

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