gvisor/pkg/tcpip/link/sniffer
Kevin Krakauer 2b1b51f1d7 Fix panic in sniffer.
Packets written via SOCK_RAW are guaranteed to have network headers, but not
transport headers. Check first whether there are enough bytes left in the packet
to contain a transport header before attempting to parse it.

PiperOrigin-RevId: 282363895
2019-11-25 09:11:05 -08:00
..
BUILD Cleanup visibility. 2019-11-23 23:54:41 -08:00
pcap.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sniffer.go Fix panic in sniffer. 2019-11-25 09:11:05 -08:00