summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/header/parse/parse.go
diff options
context:
space:
mode:
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.