*/
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.
mPacketDirections[i] = getPacketDirection(prevPkt, prevPktDirection, sequence.get(i));
}
}
+ mSkippedPackets = 0;
+ mMaxSkippedPackets = 0;
}
/**
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.