aboutsummaryrefslogtreecommitdiff
path: root/src/constants.go
blob: dc9537946a57103b924dc8d8164e42909192cdf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
)