[minor work in progress]
authorJanus Varmarken <varmarken@gmail.com>
Fri, 21 Sep 2018 17:56:27 +0000 (10:56 -0700)
committerJanus Varmarken <varmarken@gmail.com>
Fri, 21 Sep 2018 17:56:27 +0000 (10:56 -0700)
Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/detection/SignatureDetector.java

index 5c04c23c4828b08652bf471b606ac80c3fbbbe62..54feeba6d5ae7b70ccf4357fe5bb62f9e30554f7 100644 (file)
@@ -39,13 +39,16 @@ public class SignatureDetector implements PacketListener {
 
     }
 
-//    private void performDetection() {
-//        // Let's start out simple by building a version that only works for signatures that do not span across multiple
-//        // TCP conversations...
-//        for (Conversation c : mTcpReassembler.getTcpConversations()) {
-//            boolean matchFound = isSequenceInConversation(c);
-//        }
-//    }
+    private void performDetection() {
+        // Let's start out simple by building a version that only works for signatures that do not span across multiple
+        // TCP conversations...
+        for (Conversation c : mTcpReassembler.getTcpConversations()) {
+            for (List<PcapPacket> sequence : mSignature) {
+                boolean matchFound = isSequenceInConversation(sequence, c);
+
+            }
+        }
+    }
 
     /**
      * Examine if a {@link Conversation} contains a given sequence of packets. Note: the current implementation actually