diff options
Diffstat (limited to 'src/dev/etherdump.cc')
-rw-r--r-- | src/dev/etherdump.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/etherdump.cc b/src/dev/etherdump.cc index c41ce4e1f..9cb15c4e8 100644 --- a/src/dev/etherdump.cc +++ b/src/dev/etherdump.cc @@ -94,8 +94,8 @@ void EtherDump::dumpPacket(EthPacketPtr &packet) { pcap_pkthdr pkthdr; - pkthdr.seconds = curTick / Clock::Int::s; - pkthdr.microseconds = (curTick / Clock::Int::us) % ULL(1000000); + pkthdr.seconds = curTick / SimClock::Int::s; + pkthdr.microseconds = (curTick / SimClock::Int::us) % ULL(1000000); pkthdr.caplen = std::min(packet->length, maxlen); pkthdr.len = packet->length; stream->write(reinterpret_cast<char *>(&pkthdr), sizeof(pkthdr)); |