A Discrete-Event Network Simulator
API
ns3::PcapFile::PcapFileHeader Struct Reference

Pcap file header. More...

+ Collaboration diagram for ns3::PcapFile::PcapFileHeader:

Public Attributes

uint32_t m_magicNumber
 Magic number identifying this as a pcap file. More...
 
uint32_t m_sigFigs
 Unused by pretty much everybody. More...
 
uint32_t m_snapLen
 Maximum length of packet data stored in records. More...
 
uint32_t m_type
 Data link type of packet data. More...
 
uint16_t m_versionMajor
 Major version identifying the version of pcap used in this file. More...
 
uint16_t m_versionMinor
 Minor version identifying the version of pcap used in this file. More...
 
int32_t m_zone
 Time zone correction to be applied to timestamps of packets. More...
 

Detailed Description

Pcap file header.

Definition at line 299 of file pcap-file.h.

Member Data Documentation

◆ m_magicNumber

uint32_t ns3::PcapFile::PcapFileHeader::m_magicNumber

Magic number identifying this as a pcap file.

Definition at line 301 of file pcap-file.h.

Referenced by ns3::PcapFile::GetMagic(), ns3::PcapFile::Init(), ns3::PcapFile::ReadAndVerifyFileHeader(), ns3::PcapFile::Swap(), and ns3::PcapFile::WriteFileHeader().

◆ m_sigFigs

uint32_t ns3::PcapFile::PcapFileHeader::m_sigFigs

◆ m_snapLen

uint32_t ns3::PcapFile::PcapFileHeader::m_snapLen

◆ m_type

uint32_t ns3::PcapFile::PcapFileHeader::m_type

◆ m_versionMajor

uint16_t ns3::PcapFile::PcapFileHeader::m_versionMajor

Major version identifying the version of pcap used in this file.

Definition at line 303 of file pcap-file.h.

Referenced by ns3::PcapFile::GetVersionMajor(), ns3::PcapFile::Init(), ns3::PcapFile::ReadAndVerifyFileHeader(), ns3::PcapFile::Swap(), and ns3::PcapFile::WriteFileHeader().

◆ m_versionMinor

uint16_t ns3::PcapFile::PcapFileHeader::m_versionMinor

Minor version identifying the version of pcap used in this file.

Definition at line 305 of file pcap-file.h.

Referenced by ns3::PcapFile::GetVersionMinor(), ns3::PcapFile::Init(), ns3::PcapFile::ReadAndVerifyFileHeader(), ns3::PcapFile::Swap(), and ns3::PcapFile::WriteFileHeader().

◆ m_zone

int32_t ns3::PcapFile::PcapFileHeader::m_zone

Time zone correction to be applied to timestamps of packets.

Definition at line 306 of file pcap-file.h.

Referenced by ns3::PcapFile::GetTimeZoneOffset(), ns3::PcapFile::Init(), ns3::PcapFile::ReadAndVerifyFileHeader(), ns3::PcapFile::Swap(), and ns3::PcapFile::WriteFileHeader().


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