Fix PCAP tracing

This commit is contained in:
Tim Schubert 2020-08-03 21:11:53 +02:00
parent c1496e29f9
commit 096b48f005
6 changed files with 282 additions and 128 deletions

View file

@ -101,7 +101,7 @@ IslHelper::EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, bool promi
}
Ptr<PcapFileWrapper> file = pcapHelper.CreateFile (filename, std::ios::out,
PcapHelper::DLT_PPP);
PcapHelper::DLT_EN10MB);
pcapHelper.HookDefaultSink<MockNetDevice> (device, "PromiscSniffer", file);
}

View file

@ -114,7 +114,7 @@ LeoChannelHelper::EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, boo
}
Ptr<PcapFileWrapper> file = pcapHelper.CreateFile (filename, std::ios::out,
PcapHelper::DLT_PPP);
PcapHelper::DLT_EN10MB);
pcapHelper.HookDefaultSink<LeoMockNetDevice> (device, "PromiscSniffer", file);
}