]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
replay: account for fqcodel reordering
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 19 May 2020 23:46:29 +0000 (17:46 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 19 May 2020 23:46:35 +0000 (17:46 -0600)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/constants.go
replay/replay.go

index 15cdac728e728fc07596a855bfc00cac60808aaa..1a4b8ea7bff7cec7f519725473d3711db62afb54 100644 (file)
@@ -13,7 +13,7 @@ import (
 
 const (
        RekeyAfterMessages      = (1 << 60)
-       RejectAfterMessages     = (1 << 64) - (1 << 4) - 1
+       RejectAfterMessages     = (1 << 64) - (1 << 13) - 1
        RekeyAfterTime          = time.Second * 120
        RekeyAttemptTime        = time.Second * 90
        RekeyTimeout            = time.Second * 5
index 034273cb9ad196daeb5b38885e09043a98a7c0bd..e5c7391ccca4a1dd62165e5d81cb3d03a9bd6bae 100644 (file)
@@ -21,7 +21,7 @@ const (
 const (
        CounterRedundantBitsLog = _WordLogSize + 3
        CounterRedundantBits    = _WordSize * 8
-       CounterBitsTotal        = 2048
+       CounterBitsTotal        = 8192
        CounterWindowSize       = uint64(CounterBitsTotal - CounterRedundantBits)
 )