nts: warn about missing NTS support

Log a warning message if an NTP source is specified with the nts option
and the request fails due to missing NTS support.
This commit is contained in:
Miroslav Lichvar 2020-06-17 13:19:20 +02:00
parent e3cd248f0d
commit d29f7b7c70

View file

@ -517,14 +517,16 @@ NNC_PrepareForAuth(NNC_Instance inst)
int
NNC_GenerateRequestAuth(NNC_Instance inst, NTP_Packet *packet, NTP_PacketInfo *info)
{
DEBUG_LOG("NTS support disabled");
static int logged = 0;
LOG(logged ? LOGS_DEBUG : LOGS_WARN, "Missing NTS support");
logged = 1;
return 0;
}
int
NNC_CheckResponseAuth(NNC_Instance inst, NTP_Packet *packet, NTP_PacketInfo *info)
{
DEBUG_LOG("NTS support disabled");
return 0;
}