diff options
author | Tamir Duberstein <tamird@google.com> | 2020-12-22 12:50:44 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-22 12:52:19 -0800 |
commit | 202e9fa3695e015ba8875c094f70d75bce18b95e (patch) | |
tree | 1fa1b0e2893570d9fe3c4081793b567d4dfc13c1 | |
parent | fee2cd640fc3929586bbf44d5e5e597dd389bcf6 (diff) |
Correctly log sniffed ARP packets
This condition was inverted in 360006d.
PiperOrigin-RevId: 348679088
-rw-r--r-- | pkg/tcpip/link/sniffer/sniffer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/link/sniffer/sniffer.go b/pkg/tcpip/link/sniffer/sniffer.go index 8d9a91020..1a2cc39eb 100644 --- a/pkg/tcpip/link/sniffer/sniffer.go +++ b/pkg/tcpip/link/sniffer/sniffer.go @@ -263,7 +263,7 @@ func logPacket(prefix string, dir direction, protocol tcpip.NetworkProtocolNumbe fragmentOffset = fragOffset case header.ARPProtocolNumber: - if parse.ARP(pkt) { + if !parse.ARP(pkt) { return } |