Debugging feature (temporary).
authorrtrimana <rtrimana@uci.edu>
Fri, 15 Mar 2019 17:47:45 +0000 (10:47 -0700)
committerrtrimana <rtrimana@uci.edu>
Fri, 15 Mar 2019 17:47:45 +0000 (10:47 -0700)
Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer2/Layer2SignatureDetector.java

index a5090c8..23ca7aa 100644 (file)
@@ -162,6 +162,9 @@ public class Layer2SignatureDetector implements PacketListener, ClusterMatcherOb
         offDetector.addObserver((signature, match) -> {
             UserAction event = new UserAction(UserAction.Type.TOGGLE_OFF, match.get(0).get(0).getTimestamp());
             PrintWriterUtils.println(event, resultsWriter, DUPLICATE_OUTPUT_TO_STD_OUT);
+            for (PcapPacket pcap : match.get(0)) {
+                System.out.println(pcap.length() + " -> " + pcap.getTimestamp());
+            }
             detectedEvents.add(event);
         });