gvisor/pkg/tcpip
Ghanan Gowripalan dffa4c6690 Don't include link header when forwarding packets
Before this change, if a link header was included in an incoming packet
that is forwarded, the packet that gets sent out will take the original
packet and add a link header to it while keeping the old link header.
This would make the sent packet look like:

   OUTGOING LINK HDR | INCOMING LINK HDR | NETWORK HDR | ...

Obviously this is incorrect as we should drop the incoming link header
and only include the outgoing link header. This change fixes this bug.

Test: integration_test.TestForwarding
PiperOrigin-RevId: 337571447
2020-10-16 13:54:00 -07:00
..
adapters/gonet
buffer
checker Enable IPv6 WriteHeaderIncludedPacket 2020-10-16 10:42:34 -07:00
faketime
hash/jenkins
header Correct NA minimum size 2020-10-13 13:28:26 -07:00
link
network Make IPv4 check the IP header checksum 2020-10-16 12:31:05 -07:00
ports
sample Support creating protocol instances with Stack ref 2020-09-28 16:24:04 -07:00
seqnum
stack
tests/integration
transport
BUILD
tcpip.go Enable IPv6 WriteHeaderIncludedPacket 2020-10-16 10:42:34 -07:00
tcpip_test.go
time.s
time_unsafe.go
timer.go Add AfterFunc to tcpip.Clock 2020-07-23 18:00:43 -07:00
timer_test.go Add AfterFunc to tcpip.Clock 2020-07-23 18:00:43 -07:00