Changing the mechanism to count and correlate skipped packets.
[pingpong.git] / Code / Projects / PacketLevelSignatureExtractor / src / main / java / edu / uci / iotproject / detection / layer2 / Layer2AbstractMatcher.java
index 6a7de57208c740c2097b4f81799cfb3fc39d9520..1621c820525d8871d2b6dc770c3a2df1baddba50 100644 (file)
@@ -27,12 +27,6 @@ abstract public class Layer2AbstractMatcher {
      */
     protected final boolean[] mPacketDirections;
 
-    /**
-     * Keep track of the numbers of skipped packets
-     */
-    protected int mSkippedPackets;
-    protected int mMaxSkippedPackets;
-
     /**
      * Create a {@code Layer2AbstractMatcher}.
      * @param sequence The sequence of the signature.
@@ -51,8 +45,6 @@ abstract public class Layer2AbstractMatcher {
                 mPacketDirections[i] = getPacketDirection(prevPkt, prevPktDirection, sequence.get(i));
             }
         }
-        mSkippedPackets = 0;
-        mMaxSkippedPackets = 0;
     }
 
     /**
@@ -99,10 +91,6 @@ abstract public class Layer2AbstractMatcher {
         return mMatchedPackets;
     }
 
-    public int getMaxSkippedPackets() {
-        return mMaxSkippedPackets;
-    }
-
     /**
      * Utility for {@code getMatchedPackets().get(getMatchedPackets().size()-1)}.
      * @return The last matched packet, or {@code null} if no packets have been matched yet.