aboutsummaryrefslogtreecommitdiff
path: root/stream_handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'stream_handler.go')
-rw-r--r--stream_handler.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/stream_handler.go b/stream_handler.go
index f2309ad..78326c6 100644
--- a/stream_handler.go
+++ b/stream_handler.go
@@ -28,7 +28,6 @@ type StreamHandler struct {
lastPacketSeen time.Time
documentsIDs []RowID
streamLength int
- packetsCount int
patternStream hyperscan.Stream
patternMatches map[uint][]PatternSlice
scanner Scanner
@@ -60,8 +59,6 @@ func NewStreamHandler(connection ConnectionHandler, streamFlow StreamFlow, scann
// Reassembled implements tcpassembly.Stream's Reassembled function.
func (sh *StreamHandler) Reassembled(reassembly []tcpassembly.Reassembly) {
for _, r := range reassembly {
- sh.packetsCount++
-
skip := r.Skip
if r.Start {
skip = 0