diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-11 00:54:49 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-11 00:54:49 +0000 |
commit | c0100acc5d77703465a0ccb4a9edf6c5ecd482af (patch) | |
tree | aa589e20ef36625dec38a31f00f9bc74dfc9b18c /pkg/tcpip/packet_buffer.go | |
parent | 5c95a1e918b90a8f32a9df415ed508eec4b259db (diff) | |
parent | f56fe66b13b979f2ac96e8fce6fb0a5dec9a32e0 (diff) |
Merge release-20200219.0-134-gf56fe66 (automated)
Diffstat (limited to 'pkg/tcpip/packet_buffer.go')
-rwxr-xr-x | pkg/tcpip/packet_buffer.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/tcpip/packet_buffer.go b/pkg/tcpip/packet_buffer.go index ab24372e7..04852132c 100755 --- a/pkg/tcpip/packet_buffer.go +++ b/pkg/tcpip/packet_buffer.go @@ -39,8 +39,12 @@ type PacketBuffer struct { // payload. DataSize int - // Header holds the headers of outbound packets. As a packet is passed - // down the stack, each layer adds to Header. + // Header holds the headers of outbound packets generated by the netstack. As + // a packet is passed down the stack, each layer adds to Header. + // + // Note, if a packet is being forwarded at the IP layer, the headers for the + // IP layer and above (transport) will be held in Data as the packet was not + // passed down the stack it arrived at before being forwarded. Header buffer.Prependable // These fields are used by both inbound and outbound packets. They |