A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
pcap-file.cc File Reference
#include "pcap-file.h"
#include "ns3/assert.h"
#include "ns3/buffer.h"
#include "ns3/build-profile.h"
#include "ns3/fatal-error.h"
#include "ns3/fatal-impl.h"
#include "ns3/header.h"
#include "ns3/log.h"
#include "ns3/packet.h"
#include <cstring>
#include <iostream>
+ Include dependency graph for pcap-file.cc:

Go to the source code of this file.

Namespaces

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

Variables

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