diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-26 21:08:58 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-26 21:08:58 +0000 |
commit | 98c58a207c4b3dfc9dd9b0d0ccab4e85fe82be75 (patch) | |
tree | 290b0559d6e42abb33d944e407b59996cc940e74 /pkg/tcpip/network/hash/hash.go | |
parent | abd55c233ce4ceca722a6b5dcf52727db48987b0 (diff) | |
parent | fbe80460a7eb34147b928fa1023b28a3c094c070 (diff) |
Merge release-20200219.0-247-gfbe8046 (automated)
Diffstat (limited to 'pkg/tcpip/network/hash/hash.go')
-rw-r--r-- | pkg/tcpip/network/hash/hash.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/network/hash/hash.go b/pkg/tcpip/network/hash/hash.go index 6a215938b..8f65713c5 100644 --- a/pkg/tcpip/network/hash/hash.go +++ b/pkg/tcpip/network/hash/hash.go @@ -80,12 +80,12 @@ func IPv4FragmentHash(h header.IPv4) uint32 { // RFC 2640 (sec 4.5) is not very sharp on this aspect. // As a reference, also Linux ignores the protocol to compute // the hash (inet6_hash_frag). -func IPv6FragmentHash(h header.IPv6, f header.IPv6Fragment) uint32 { +func IPv6FragmentHash(h header.IPv6, id uint32) uint32 { t := h.SourceAddress() y := uint32(t[0]) | uint32(t[1])<<8 | uint32(t[2])<<16 | uint32(t[3])<<24 t = h.DestinationAddress() z := uint32(t[0]) | uint32(t[1])<<8 | uint32(t[2])<<16 | uint32(t[3])<<24 - return Hash3Words(f.ID(), y, z, hashIV) + return Hash3Words(id, y, z, hashIV) } func rol32(v, shift uint32) uint32 { |