diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-07 13:47:09 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-07 13:47:09 +0200 |
commit | ed31e757392d1f8a907250b19c64b59451c440db (patch) | |
tree | f4279f1555bbfadcace402332b75f01c5c6935f4 /src/ip.go | |
parent | 70179f8c8c2eeb39c9a3666012481a25ce39b338 (diff) |
Fixed cookie reply processing bug
Diffstat (limited to 'src/ip.go')
-rw-r--r-- | src/ip.go | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -5,14 +5,17 @@ import ( ) const ( - IPv4version = 4 - IPv4offsetSrc = 12 - IPv4offsetDst = IPv4offsetSrc + net.IPv4len - IPv4headerSize = 20 + IPv4version = 4 + IPv4offsetTotalLength = 2 + IPv4offsetSrc = 12 + IPv4offsetDst = IPv4offsetSrc + net.IPv4len + IPv4headerSize = 20 ) const ( - IPv6version = 6 - IPv6offsetSrc = 8 - IPv6offsetDst = IPv6offsetSrc + net.IPv6len + IPv6version = 6 + IPv6offsetPayloadLength = 4 + IPv6offsetSrc = 8 + IPv6offsetDst = IPv6offsetSrc + net.IPv6len + IPv6headerSize = 40 ) |