#include "ns3/log.h"
#include "ns3/pcap-file.h"
#include "ns3/test.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
Go to the source code of this file.
Classes | |
class | DiffTestCase |
Test case to make sure that the Pcap::Diff method works as expected. More... | |
class | FileHeaderTestCase |
Test case to make sure that the Pcap File Object can write out correct pcap file headers in both endian cases, and then read them in correctly. More... | |
struct | PacketEntry |
PCAP Packet structure. More... | |
class | PcapFileTestSuite |
PCAP file utils TestSuite. More... | |
class | ReadFileTestCase |
Test case to make sure that the Pcap File Object can read out the contents of a known good pcap file. More... | |
class | ReadModeCreateTestCase |
Test case to make sure that the Pcap File Object can open an existing pcap file. More... | |
class | RecordHeaderTestCase |
Test case to make sure that the Pcap File Object can write pcap packet records in both endian cases, and then read them in correctly. More... | |
class | WriteModeCreateTestCase |
Test case to make sure that the Pcap File Object can do its most basic job and create an empty pcap file. More... | |
Functions | |
static bool | CheckFileExists (std::string filename) |
static bool | CheckFileLength (std::string filename, long sizeExpected) |
static uint16_t | Swap (uint16_t val) |
static uint32_t | Swap (uint32_t val) |
Variables | |
static const PacketEntry | knownPackets [] |
static const uint32_t | N_KNOWN_PACKETS = 6 |
static const uint32_t | N_PACKET_BYTES = 16 |
static PcapFileTestSuite | pcapFileTestSuite |
Static variable for test initialization. | |
|
static |
Definition at line 39 of file pcap-file-test-suite.cc.
Referenced by ReadModeCreateTestCase::DoRun(), and WriteModeCreateTestCase::DoRun().
|
static |
Definition at line 52 of file pcap-file-test-suite.cc.
Referenced by WriteModeCreateTestCase::DoRun().
|
static |
Definition at line 26 of file pcap-file-test-suite.cc.
Referenced by FileHeaderTestCase::DoRun(), and RecordHeaderTestCase::DoRun().
Definition at line 32 of file pcap-file-test-suite.cc.
|
static |
Definition at line 1117 of file pcap-file-test-suite.cc.
Referenced by DiffTestCase::DoRun(), and ReadFileTestCase::DoRun().
|
static |
Definition at line 1102 of file pcap-file-test-suite.cc.
Referenced by DiffTestCase::DoRun(), and ReadFileTestCase::DoRun().
|
static |
Definition at line 1103 of file pcap-file-test-suite.cc.
Referenced by DiffTestCase::DoRun(), and ReadFileTestCase::DoRun().
|
static |
Static variable for test initialization.
Definition at line 1392 of file pcap-file-test-suite.cc.