Removing error message for additional feature (relaxed matching).
authorrtrimana <rtrimana@uci.edu>
Sat, 11 Jan 2020 03:34:04 +0000 (19:34 -0800)
committerrtrimana <rtrimana@uci.edu>
Sat, 11 Jan 2020 03:34:04 +0000 (19:34 -0800)
Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer2/Layer2SignatureDetector.java
Code/Projects/PacketLevelSignatureExtractor/src/main/java/edu/uci/iotproject/detection/layer3/Layer3SignatureDetector.java

index 1984e7b..56a26ad 100644 (file)
@@ -121,12 +121,7 @@ public class Layer2SignatureDetector implements PacketListener, ClusterMatcherOb
                 int id = Integer.parseInt(stringTokenizerOff.nextToken());
                 packetSet.add(id);
             }
                 int id = Integer.parseInt(stringTokenizerOff.nextToken());
                 packetSet.add(id);
             }
-        } else {
-            System.out.println(errMsg);
-            System.out.println(optParamsExplained);
-            return;
         }
         }
-
         // Parse optional parameters.
         List<Function<Layer2Flow, Boolean>> onSignatureMacFilters = null, offSignatureMacFilters = null;
         String vpnClientMacAddress = null;
         // Parse optional parameters.
         List<Function<Layer2Flow, Boolean>> onSignatureMacFilters = null, offSignatureMacFilters = null;
         String vpnClientMacAddress = null;
index 5371527..0d88e11 100644 (file)
@@ -95,9 +95,6 @@ public class Layer3SignatureDetector implements PacketListener, ClusterMatcherOb
                 int id = Integer.parseInt(stringTokenizerOff.nextToken());
                 packetSet.add(id);
             }
                 int id = Integer.parseInt(stringTokenizerOff.nextToken());
                 packetSet.add(id);
             }
-        } else {
-            System.out.println(errMsg);
-            return;
         }
         // Prepare file outputter.
         File outputFile = new File(resultsFile);
         }
         // Prepare file outputter.
         File outputFile = new File(resultsFile);