gvisor/pkg/tcpip/link
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
..
channel Cleanup visibility. 2019-11-23 23:54:41 -08:00
fdbased Cleanup visibility. 2019-11-23 23:54:41 -08:00
loopback Cleanup visibility. 2019-11-23 23:54:41 -08:00
muxed Cleanup visibility. 2019-11-23 23:54:41 -08:00
rawfile Cleanup visibility. 2019-11-23 23:54:41 -08:00
sharedmem Cleanup visibility. 2019-11-23 23:54:41 -08:00
sniffer Fix panic in sniffer. 2019-11-25 09:11:05 -08:00
tun Cleanup visibility. 2019-11-23 23:54:41 -08:00
waitable Cleanup visibility. 2019-11-23 23:54:41 -08:00