From 8236f3afa2eca0aae6c5da9560301c04d882c81b Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Tue, 27 Jun 2017 17:33:06 +0200 Subject: Implemented MAC1/2 calculation --- src/constants.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/constants.go (limited to 'src/constants.go') diff --git a/src/constants.go b/src/constants.go new file mode 100644 index 0000000..dc95379 --- /dev/null +++ b/src/constants.go @@ -0,0 +1,16 @@ +package main + +import ( + "time" +) + +const ( + RekeyAfterMessage = (1 << 64) - (1 << 16) - 1 + RekeyAfterTime = time.Second * 120 + RekeyAttemptTime = time.Second * 90 + RekeyTimeout = time.Second * 5 + RejectAfterTime = time.Second * 180 + RejectAfterMessage = (1 << 64) - (1 << 4) - 1 + KeepaliveTimeout = time.Second * 10 + CookieRefreshTime = time.Second * 2 +) -- cgit v1.2.3