diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-23 02:18:03 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-23 21:43:01 +0100 |
commit | b9db93d60492d7816fd6cc4201228ee35820a36d (patch) | |
tree | f281d14cf47feeaa619a7cafc95c093ed3de4411 /pkg/tcpip/header/parse | |
parent | 2ce080f581556f9512a481e7fcddecaed0ae7be7 (diff) |
fix gre protocol number
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 3e5336c04..de3a91227 100644 --- a/pkg/tcpip/header/parse/parse.go +++ b/pkg/tcpip/header/parse/parse.go @@ -176,6 +176,6 @@ 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) - pkt.TransportProtocolNumber = 47 + pkt.TransportProtocolNumber = header.GREProtocolNumber return ok } |