Skip to content

Commit

Permalink
filter: overwrite pkt length on decapsulated packets
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskont committed Feb 24, 2024
1 parent 0b2e2a5 commit 47da65b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 47da65b

Please sign in to comment.