A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PcapFile::PcapFileHeader Struct Reference

Pcap file header. More...

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 283 of file pcap-file.h.

Member Data Documentation

uint32_t ns3::PcapFile::PcapFileHeader::m_magicNumber

Magic number identifying this as a pcap file.

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

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

uint32_t ns3::PcapFile::PcapFileHeader::m_sigFigs
uint32_t ns3::PcapFile::PcapFileHeader::m_snapLen
uint32_t ns3::PcapFile::PcapFileHeader::m_type
uint16_t ns3::PcapFile::PcapFileHeader::m_versionMajor

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

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

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

uint16_t ns3::PcapFile::PcapFileHeader::m_versionMinor

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

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

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

int32_t ns3::PcapFile::PcapFileHeader::m_zone

Time zone correction to be applied to timestamps of packets.

Definition at line 287 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: