This patch sets the non-in-sync flag of the leap subfield of the
packet flags field. This reflects behavior implemented by ntpdate or
ntpd in one-shot mode.
---
src/ntp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ntp.c b/src/ntp.c
index 1916a72..7ef072c 100644
--- a/src/ntp.c
+++ b/src/ntp.c
@@ -114,7 +114,7 @@ static void send_packet(int fd, const char *server)
ssize_t len;
memset(&msg, 0, sizeof(msg));
- msg.flags = NTP_FLAGS_ENCODE(NTP_FLAG_LI_NOWARNING, 4,
NTP_FLAG_MD_CLIENT);
+ msg.flags = NTP_FLAGS_ENCODE(NTP_FLAG_LI_NOTINSYNC, 4,
NTP_FLAG_MD_CLIENT);
msg.poll = 4; // min
msg.poll = 10; // max
--
1.7.10
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman