final String onSignatureFile = args[3];
final String offSignatureFile = args[4];
final String resultsFile = args[5];
- final int signatureDuration = Integer.parseInt(args[6]);
+ // TODO: THIS IS TEMPORARILY SET TO DEFAULT SIGNATURE DURATION
+ // TODO: WE DO NOT WANT TO BE TOO STRICT AT THIS POINT SINCE LAYER 3 ALREADY APPLIES BACK-TO-BACK REQUIREMENT
+ // TODO: FOR PACKETS IN A SIGNATURE
+// final int signatureDuration = Integer.parseInt(args[6]);
+ final int signatureDuration = TriggerTrafficExtractor.INCLUSION_WINDOW_MILLIS;
final double eps = Double.parseDouble(args[7]);
// Prepare file outputter.
// Generate corresponding/appropriate ClusterMatchers based on the provided signature
List<Layer3ClusterMatcher> clusterMatchers = new ArrayList<>();
for (List<List<PcapPacket>> cluster : mSignature) {
- clusterMatchers.add(new Layer3ClusterMatcher(cluster, routerWanIp, isRangeBased, eps, this));
+ clusterMatchers.add(new Layer3ClusterMatcher(cluster, routerWanIp, inclusionTimeMillis,
+ isRangeBased, eps, this));
}
mClusterMatchers = Collections.unmodifiableList(clusterMatchers);