From 9c0e3a6217c22f08c225fc153cf69f55361688ff Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Thu, 28 Dec 2023 13:55:10 +0000 Subject: [PATCH] better pcap --- scratch/task_2001600.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scratch/task_2001600.cc b/scratch/task_2001600.cc index 934d3e21d..862704d7d 100644 --- a/scratch/task_2001600.cc +++ b/scratch/task_2001600.cc @@ -309,11 +309,16 @@ int main(int argc, char* argv[]) /* ######################################################## */ /* PCAP Tracing */ if(tracing){ - ptph24.EnablePcapAll("ptp24", true); - ptph35.EnablePcapAll("ptp35", true); - ptph45.EnablePcapAll("ptp45", true); - ptph39.EnablePcapAll("ptp39", true); - ptph49.EnablePcapAll("ptp49", true); + ptph24.EnablePcap("node2 - subnet24", ptp24.Get(0), true); + ptph24.EnablePcap("node4 - subnet24", ptp24.Get(1), true); + ptph49.EnablePcap("node4 - subnet49", ptp49.Get(0), true); + ptph49.EnablePcap("node9 - subnet49", ptp49.Get(1), true); + ptph39.EnablePcap("node3 - subnet39", ptp39.Get(0), true); + ptph39.EnablePcap("node9 - subnet39", ptp39.Get(1), true); + ptph45.EnablePcap("node4 - subnet45", ptp45.Get(0), true); + ptph45.EnablePcap("node5 - subnet45", ptp45.Get(1), true); + ptph35.EnablePcap("node3 - subnet35", ptp35.Get(0), true); + ptph35.EnablePcap("node5 - subnet35", ptp35.Get(1), true); } /* ######################################################## */