authelia/internal/ntp/const.go
yossbg 05406cfc7b
feat(ntp): check clock sync on startup (#2251)
This adds method to validate the system clock is synchronized on startup. Configuration allows adjusting the server address, enabled state, desync limit, and if the error is fatal.

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-09-17 14:44:35 +10:00

16 lines
277 B
Go

package ntp
const (
ntpClientModeValue uint8 = 3 // 00000011
ntpLeapEnabledValue uint8 = 64 // 01000000
ntpVersion3Value uint8 = 24 // 00011000
ntpVersion4Value uint8 = 40 // 00101000
)
const ntpEpochOffset = 2208988800
const (
ntpV3 ntpVersion = iota
ntpV4
)