From 9b760de647992b5959960da11bed55b8f40b9ef5 Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Fri, 20 Dec 2024 11:24:01 +0100 Subject: [PATCH] PcapRecorder: Fixed #979, changed the default configuration to use transmissionEnded, receptionEnded signals. By default we capture with the transmission end and reception end timestamp and packet content. Now that PcapRecorder supports writing only the dumped part of the packet, the packet data should be the same as before. The packet timestamps are the transmission end, and reception end timestamps. --- src/inet/common/packet/recorder/PcapRecorder.ned | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inet/common/packet/recorder/PcapRecorder.ned b/src/inet/common/packet/recorder/PcapRecorder.ned index 3c688173e5f..700ab49ee14 100644 --- a/src/inet/common/packet/recorder/PcapRecorder.ned +++ b/src/inet/common/packet/recorder/PcapRecorder.ned @@ -39,8 +39,8 @@ simple PcapRecorder int timePrecision = default(6); // Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format). bool dumpBadFrames = default(true); // Enable dump of frames with hasBitError string moduleNamePatterns = default("wlan[*] eth[*] ppp[*]"); // Space-separated list of sibling module names to listen on - string sendingSignalNames = default("packetSentToLower"); // Space-separated list of outbound packet signals to subscribe to - string receivingSignalNames = default("packetReceivedFromLower"); // Space-separated list of inbound packet signals to subscribe to + string sendingSignalNames = default("transmissionEnded"); // Space-separated list of outbound packet signals to subscribe to + string receivingSignalNames = default("receptionEnded"); // Space-separated list of inbound packet signals to subscribe to string dumpProtocols = default("ethernetmac ppp ieee80211mac"); // Space-separated list of protocol names as defined in the Protocol class object packetFilter = default("*"); // Which packets are considered, matches all packets by default string helpers = default(""); // Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype