Trying to remove EPS bounds and do strict matching with tight bounds from signature...
[pingpong.git] / Code / Projects / PacketLevelSignatureExtractor / src / main / java / edu / uci / iotproject / detection / layer3 / Layer3ClusterMatcher.java
index e314deb8c27a6ec20a89ab771fb037f70cd8d7d2..6d8110046afa16d00f342d48adb48576b96b2e8e 100644 (file)
@@ -359,8 +359,11 @@ public class Layer3ClusterMatcher extends AbstractClusterMatcher implements Pack
             // We only have a match if packet lengths and directions match.
             // The packet lengths have to be in the range of [lowerBound - eps, upperBound+eps]
             // TODO: Maybe we could do better here for the double to integer conversion?
-            int epsLowerBound = lowBndPkt.length() - (int) mEps;
-            int epsUpperBound = upBndPkt.length() + (int) mEps;
+//            int epsLowerBound = lowBndPkt.length() - (int) mEps;
+//            int epsUpperBound = upBndPkt.length() + (int) mEps;
+            // TODO: TEMPORARILY REMOVE EPS BOUNDS
+            int epsLowerBound = lowBndPkt.length();
+            int epsUpperBound = upBndPkt.length();
             if (epsLowerBound <= seqPkt.getOriginalLength() &&
                     seqPkt.getOriginalLength() <= epsUpperBound &&
                     subsequenceDirections[subseqIdx] == sequenceDirections[seqIdx]) {