Hi Grant,
On 07/13/2012 07:52 PM, Grant Erickson wrote:
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 88c8b8e..623c21e 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);;
Double semicolon here.
msg.poll = 4; // min
msg.poll = 10; // max
Cheers,
Jukka
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman