56#define TCPDUMP_MAGIC 0xa1b2c3d4
57#define PCAP_VERSION_MAJOR 2
58#define PCAP_VERSION_MINOR 4
92 stream->write(
reinterpret_cast<char *
>(&hdr),
sizeof(hdr));
104 pkthdr.
len = packet->length;
105 stream->write(
reinterpret_cast<char *
>(&pkthdr),
sizeof(pkthdr));
106 stream->write(
reinterpret_cast<char *
>(packet->data), pkthdr.
caplen);
void dumpPacket(EthPacketPtr &packet)
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
EtherDump(const Params &p)
Abstract superclass for simulation objects.
#define PCAP_VERSION_MINOR
#define PCAP_VERSION_MAJOR
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Tick curTick()
The universal simulation clock.
std::shared_ptr< EthPacketData > EthPacketPtr