diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-23 02:28:28 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-23 21:43:01 +0100 |
commit | 9acc1a73ccb686afeaf02dec521311235745ad26 (patch) | |
tree | a9f85d218cce99375e42a4002073dacd5247fb69 /pkg/tcpip/header/parse | |
parent | 4a6f9df985898fec65fd86c22171f73522e6711b (diff) |
add GREHeaderSize
Diffstat (limited to 'pkg/tcpip/header/parse')
-rw-r--r-- | pkg/tcpip/header/parse/parse.go | 2 |
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 } |