diff --git a/pkg/filter/filter.go b/pkg/filter/filter.go index 6a5ab2e..e210f08 100644 --- a/pkg/filter/filter.go +++ b/pkg/filter/filter.go @@ -181,6 +181,7 @@ loop: } } ci.CaptureLength = len(pkt.Data()) + ci.Length = len(pkt.Data()) pkt.Metadata().CaptureInfo = ci if c.Filter.Match(pkt) { if err := w.WritePacket(pkt.Metadata().CaptureInfo, pkt.Data()); err != nil {