Correctly log sniffed ARP packets

This condition was inverted in 360006d.

PiperOrigin-RevId: 348679088
This commit is contained in:
Tamir Duberstein 2020-12-22 12:50:44 -08:00 committed by gVisor bot
parent fee2cd640f
commit 202e9fa369
1 changed files with 1 additions and 1 deletions

View File

@ -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
}