A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pcap-file.cc File Reference
#include <iostream>
#include <cstring>
#include "ns3/assert.h"
#include "ns3/packet.h"
#include "ns3/fatal-error.h"
#include "ns3/fatal-impl.h"
#include "ns3/header.h"
#include "ns3/buffer.h"
#include "pcap-file.h"
#include "ns3/log.h"
+ Include dependency graph for pcap-file.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

 NS_LOG_COMPONENT_DEFINE ("PcapFile")
 

Variables

const uint32_t ns3::MAGIC = 0xa1b2c3d4
 Magic number identifying standard pcap file format. More...
 
const uint32_t ns3::NS_MAGIC = 0xa1b23cd4
 Magic number identifying nanosec resolution pcap file format. More...
 
const uint32_t ns3::NS_SWAPPED_MAGIC = 0xd43cb2a1
 Looks this way if byte swapping is required. More...
 
const uint32_t ns3::SWAPPED_MAGIC = 0xd4c3b2a1
 Looks this way if byte swapping is required. More...
 
const uint16_t ns3::VERSION_MAJOR = 2
 Major version of supported pcap file format. More...
 
const uint16_t ns3::VERSION_MINOR = 4
 Minor version of supported pcap file format. More...
 

Function Documentation

NS_LOG_COMPONENT_DEFINE ( "PcapFile"  )