gvisor/runsc/sandbox
Bhasker Hariharan bcb97a3bb7 Disable host reassembly for fragments.
fdbased endpoint was enabling fragment reassembly on the host AF_PACKET socket
to ensure that fragments are delivered inorder to the right dispatcher. But this
prevents fragments from being delivered to gvisor at all and makes testing of
gvisor's fragment reassembly code impossible.

The potential impact from this is minimal since IP Fragmentation is not really
that prevelant and in cases where we do get fragments we may deliver the
fragment out of order to the TCP layer as multiple network dispatchers may
process the fragments and deliver a reassembled fragment after the next packet
has been delivered to the TCP endpoint. While not desirable I believe the impact
from this is minimal due to low prevalence of fragmentation.

Also removed PktType and Hatype fields when binding the socket as these are not
used when binding. Its just confusing to have them specified.

See: https://man7.org/linux/man-pages/man7/packet.7.html
"Fields used for binding are
       sll_family (should be AF_PACKET), sll_protocol, and sll_ifindex."

Fixes #5055

PiperOrigin-RevId: 346919439
2020-12-10 20:08:59 -08:00
..
BUILD Move boot.Config to its own package 2020-08-19 18:37:42 -07:00
network.go Disable host reassembly for fragments. 2020-12-10 20:08:59 -08:00
network_unsafe.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sandbox.go Add support for TTY in multi-container 2020-11-17 14:51:24 -08:00