53 #define DLT_EN10MB 1 // Ethernet (10Mb)
54 #define TCPDUMP_MAGIC 0xa1b2c3d4
55 #define PCAP_VERSION_MAJOR 2
56 #define PCAP_VERSION_MINOR 4
88 stream->write(reinterpret_cast<char *>(&hdr),
sizeof(hdr));
100 pkthdr.
len = packet->length;
101 stream->write(reinterpret_cast<char *>(&pkthdr),
sizeof(pkthdr));
102 stream->write(reinterpret_cast<char *>(packet->data), pkthdr.
caplen);
107 EtherDumpParams::create()
#define PCAP_VERSION_MINOR
void dumpPacket(EthPacketPtr &packet)
#define PCAP_VERSION_MAJOR
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
Tick curTick()
The current simulated tick.
std::shared_ptr< EthPacketData > EthPacketPtr
#define ULL(N)
uint64_t constant
EtherDump(const Params *p)
Abstract superclass for simulation objects.