summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-30 14:27:54 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-30 14:27:54 +0100
commit2363b74a0d5f66fc66830ee4e8ce0d7dfaa1b9a5 (patch)
tree357c9635948f44b30174d2d0f2d4793c88caa58e /src
parent9ecc65abd79f092c209996c4c999811d1f861edd (diff)
messages: recalculate rekey max based on a one minute flood
Discussed-with: Mathias Hall-Andersen <mathias@hall-andersen.dk> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/messages.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages.h b/src/messages.h
index 3cfd1c5..f415cdd 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -38,7 +38,7 @@ enum counter_values {
};
enum limits {
- REKEY_AFTER_MESSAGES = U64_MAX - 0xffff,
+ REKEY_AFTER_MESSAGES = 1ULL << 60,
REJECT_AFTER_MESSAGES = U64_MAX - COUNTER_WINDOW_SIZE - 1,
REKEY_TIMEOUT = 5,
REKEY_TIMEOUT_JITTER_MAX_JIFFIES = HZ / 3,