From: Janus Varmarken Date: Fri, 21 Sep 2018 17:56:27 +0000 (-0700) Subject: [minor work in progress] X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e955fb69926a14dbefe410b984e80c00414807af;p=pingpong.git [minor work in progress] --- diff --git a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/detection/SignatureDetector.java b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/detection/SignatureDetector.java index 5c04c23..54feeba 100644 --- a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/detection/SignatureDetector.java +++ b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/detection/SignatureDetector.java @@ -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 sequence : mSignature) { + boolean matchFound = isSequenceInConversation(sequence, c); + + } + } + } /** * Examine if a {@link Conversation} contains a given sequence of packets. Note: the current implementation actually