summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/header/parse/parse.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-16 21:09:53 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-16 21:09:53 +0000
commit3765559c4bb8b93fab9f8f7d2e3c217e2f0f94ae (patch)
treece22b20bfb5cb5f6a9ed647af197a7b1e53b8f1b /pkg/tcpip/header/parse/parse.go
parentbfdacda529756f7229cdce6d824bd0ac9819076d (diff)
parent758e45618f3d663a092b31baf29f24b3e4dc4d54 (diff)
Merge release-20201109.0-49-g758e45618 (automated)
Diffstat (limited to 'pkg/tcpip/header/parse/parse.go')
-rw-r--r--pkg/tcpip/header/parse/parse.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/header/parse/parse.go b/pkg/tcpip/header/parse/parse.go
index 5ca75c834..2042f214a 100644
--- a/pkg/tcpip/header/parse/parse.go
+++ b/pkg/tcpip/header/parse/parse.go
@@ -109,6 +109,9 @@ traverseExtensions:
fragOffset = extHdr.FragmentOffset()
fragMore = extHdr.More()
}
+ rawPayload := it.AsRawHeader(true /* consume */)
+ extensionsSize = dataClone.Size() - rawPayload.Buf.Size()
+ break traverseExtensions
case header.IPv6RawPayloadHeader:
// We've found the payload after any extensions.