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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/header/parse/parse.go b/pkg/tcpip/header/parse/parse.go
index de3a91227..7ac5168c7 100644
--- a/pkg/tcpip/header/parse/parse.go
+++ b/pkg/tcpip/header/parse/parse.go
@@ -175,7 +175,7 @@ func TCP(pkt *stack.PacketBuffer) bool {
//
// Returns true if the header was successfully parsed.
func GRE(pkt *stack.PacketBuffer) bool {
- _, ok := pkt.TransportHeader().Consume(4)
+ _, ok := pkt.TransportHeader().Consume(header.GREHeaderSize)
pkt.TransportProtocolNumber = header.GREProtocolNumber
return ok
}