diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-11-08 21:33:42 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-11-08 21:33:42 +0000 |
commit | 8e8544025bec8ac990a94167268fcf512d1a2914 (patch) | |
tree | e8407771fc5041ecb5dc2a7f450ce15296be1655 /pkg/tcpip/link/sniffer | |
parent | 99b9b89692af3398230ec5bea3d5f90fc7e429c2 (diff) | |
parent | 84b38f4c6e065d3f9314a8abbb3f5857ed4fa44e (diff) |
Merge release-20211101.0-26-g84b38f4c6 (automated)
Diffstat (limited to 'pkg/tcpip/link/sniffer')
-rw-r--r-- | pkg/tcpip/link/sniffer/sniffer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/link/sniffer/sniffer.go b/pkg/tcpip/link/sniffer/sniffer.go index 2afa95af0..965cc994f 100644 --- a/pkg/tcpip/link/sniffer/sniffer.go +++ b/pkg/tcpip/link/sniffer/sniffer.go @@ -209,6 +209,7 @@ func logPacket(prefix string, dir direction, protocol tcpip.NetworkProtocolNumbe vv := buffer.NewVectorisedView(pkt.Size(), pkt.Views()) vv.TrimFront(len(pkt.LinkHeader().View())) pkt = stack.NewPacketBuffer(stack.PacketBufferOptions{Data: vv}) + defer pkt.DecRef() switch protocol { case header.IPv4ProtocolNumber: if ok := parse.IPv4(pkt); !ok { |