aboutsummaryrefslogtreecommitdiffstats
path: root/device/constants.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/constants.go')
-rw-r--r--device/constants.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/device/constants.go b/device/constants.go
index e316f32..59854a1 100644
--- a/device/constants.go
+++ b/device/constants.go
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT
*
- * Copyright (C) 2017-2019 WireGuard LLC. All Rights Reserved.
+ * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package device
@@ -12,8 +12,8 @@ import (
/* Specification constants */
const (
- RekeyAfterMessages = (1 << 64) - (1 << 16) - 1
- RejectAfterMessages = (1 << 64) - (1 << 4) - 1
+ RekeyAfterMessages = (1 << 60)
+ RejectAfterMessages = (1 << 64) - (1 << 13) - 1
RekeyAfterTime = time.Second * 120
RekeyAttemptTime = time.Second * 90
RekeyTimeout = time.Second * 5
@@ -35,7 +35,6 @@ const (
/* Implementation constants */
const (
- UnderLoadQueueSize = QueueHandshakeSize / 8
UnderLoadAfterTime = time.Second // how long does the device remain under load after detected
MaxPeers = 1 << 16 // maximum number of configured peers
)