diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-24 22:38:36 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-24 22:38:36 +0000 |
commit | 758608224b51a3e8f3d79c98bc6862027625220e (patch) | |
tree | 7a2ff29fb4baac30f9805074f012f85a93597db0 /pkg/tcpip/stack/packet_buffer.go | |
parent | c918c96893792eade0c6ec60bf3ad3aaae6eb438 (diff) | |
parent | c8eeedcc1d6b1ee25532ae630a7efd7aa4656bdc (diff) |
Merge release-20200219.0-222-gc8eeedc (automated)
Diffstat (limited to 'pkg/tcpip/stack/packet_buffer.go')
-rwxr-xr-x | pkg/tcpip/stack/packet_buffer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/packet_buffer.go b/pkg/tcpip/stack/packet_buffer.go index 1850fa8c3..9505a4e92 100755 --- a/pkg/tcpip/stack/packet_buffer.go +++ b/pkg/tcpip/stack/packet_buffer.go @@ -10,6 +10,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package stack import "gvisor.dev/gvisor/pkg/tcpip/buffer" @@ -54,6 +55,10 @@ type PacketBuffer struct { LinkHeader buffer.View NetworkHeader buffer.View TransportHeader buffer.View + + // Hash is the transport layer hash of this packet. A value of zero + // indicates no valid hash has been set. + Hash uint32 } // Clone makes a copy of pk. It clones the Data field, which creates a new |