From 555692751dcaeec207a8c7f8ea7279f71f414159 Mon Sep 17 00:00:00 2001 From: rtrimana Date: Thu, 14 Mar 2019 17:56:09 -0700 Subject: [PATCH] Fixing input arguments for Layer 2 detection. --- .../detection/layer2/Layer2SignatureDetector.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer2/Layer2SignatureDetector.java b/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer2/Layer2SignatureDetector.java index 314ce3f..b0557d4 100644 --- a/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer2/Layer2SignatureDetector.java +++ b/Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer2/Layer2SignatureDetector.java @@ -52,12 +52,11 @@ public class Layer2SignatureDetector implements PacketListener, ClusterMatcherOb public static void main(String[] args) throws PcapNativeException, NotOpenException, IOException { // Parse required parameters. -// if (args.length < 7) { - if (args.length < 5) { + if (args.length < 8) { String errMsg = String.format("Usage: %s inputPcapFile onAnalysisFile offAnalysisFile onSignatureFile offSignatureFile resultsFile" + "\n inputPcapFile: the target of the detection" + -// "\n onAnalysisFile: the file that contains the ON clusters analysis" + -// "\n offAnalysisFile: the file that contains the OFF clusters analysis" + + "\n onAnalysisFile: the file that contains the ON clusters analysis" + + "\n offAnalysisFile: the file that contains the OFF clusters analysis" + "\n onSignatureFile: the file that contains the ON signature to search for" + "\n offSignatureFile: the file that contains the OFF signature to search for" + "\n resultsFile: where to write the results of the detection" + -- 2.34.1