summaryrefslogtreecommitdiffhomepage
path: root/runsc/BUILD
diff options
context:
space:
mode:
authorJulian Elischer <jrelis@google.com>2021-01-25 20:48:20 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-25 20:50:02 -0800
commit3731ebb3fe69dc2d7fb6d6602845a378c530379b (patch)
tree10390371e4dc7825ed9d7aac9b0e2482a0c49a7a /runsc/BUILD
parent39db3b93554ea74611602ad4c20dfa5c08e748f2 (diff)
Adjust included data size on icmp errors
The RFC for icmpv6 specifies that an errant packet should be included in the returned ICMP packet, and that it should include up to the amount needed to fill the minimum MTU (1280 bytes) if possible. The current code included the Link header in that calculation but the RFC is referring to the IP MTU not the link MTU. Some conformance tests check this and report an error agains the stack for this. The full header length shoudl however continue to be used when allocating header space. Make the same change for IPv4 for consistency. Add a test for icmp payload sizing. Test that the included data in an ICMP error packet conforms to the requirements of RFC 972, RFC 4443 section 2.4 and RFC 1812 Section 4.3.2.3. Fixes #5311 PiperOrigin-RevId: 353790203
Diffstat (limited to 'runsc/BUILD')
0 files changed, 0 insertions, 0 deletions