Go to the documentation of this file.
55 #define DLT_EN10MB 1 // Ethernet (10Mb)
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);
Tick curTick()
The universal simulation clock.
void dumpPacket(EthPacketPtr &packet)
#define PCAP_VERSION_MAJOR
EtherDump(const Params &p)
std::shared_ptr< EthPacketData > EthPacketPtr
Abstract superclass for simulation objects.
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
#define PCAP_VERSION_MINOR
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Sat Jun 18 2022 08:12:24 for gem5 by doxygen 1.8.17