X-Git-Url: http://plrg.eecs.uci.edu/git/?p=pingpong.git;a=blobdiff_plain;f=Code%2FProjects%2FPacketLevelSignatureExtractor%2Fsrc%2Fmain%2Fjava%2Fedu%2Fuci%2Fiotproject%2Fdetection%2Flayer3%2FLayer3ClusterMatcher.java;h=165cdb3e57f68de4319504a3fee4e15cd4efc34e;hp=398ac1e948cdb1e1da3dce1bc47738683bddea5f;hb=987ea910fed24a1f3f51ded41b6aa98c4e2618ae;hpb=3fd7f009b4c4ece87bb4312cf3784d746258b998;ds=inline diff --git a/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer3/Layer3ClusterMatcher.java b/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer3/Layer3ClusterMatcher.java index 398ac1e..165cdb3 100644 --- a/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer3/Layer3ClusterMatcher.java +++ b/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer3/Layer3ClusterMatcher.java @@ -132,12 +132,8 @@ public class Layer3ClusterMatcher extends AbstractClusterMatcher implements Pack isPresent()) { List matchSeq = match.get(); // Notify observers about the match. + // Max number of skipped packets in layer 3 is 0 (no skipped packets) mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq)); -// if (!matchSeq.get(matchSeq.size()-1).getTimestamp().isAfter(matchSeq.get(0).getTimestamp(). -// plusMillis(mInclusionTimeMillis))) { -// // Notify observers about the match. -// mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq)); -// } /* * Get the index in cPkts of the last packet in the sequence of packets that matches the searched * signature sequence. @@ -179,12 +175,8 @@ public class Layer3ClusterMatcher extends AbstractClusterMatcher implements Pack isPresent()) { List matchSeq = match.get(); // Notify observers about the match. + // Max number of skipped packets in layer 3 is 0 (no skipped packets) mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq)); -// if (!matchSeq.get(matchSeq.size()-1).getTimestamp().isAfter(matchSeq.get(0).getTimestamp(). -// plusMillis(mInclusionTimeMillis))) { -// // Notify observers about the match. -// mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq)); -// } /* * Get the index in cPkts of the last packet in the sequence of packets that matches the searched * signature sequence.