diff options
author | Grant Erickson <marathon96@gmail.com> | 2012-07-16 09:48:01 -0700 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-07-17 10:13:21 +0200 |
commit | 8b88736393073531edbafffee47d6633e8c2ce2e (patch) | |
tree | 2d27e73e8f3cfedcc09bb254dce552d939781efc | |
parent | 123e093b1395afe8b8857f40af6b08d9f396f9d3 (diff) | |
download | connman-8b88736393073531edbafffee47d6633e8c2ce2e.tar.gz connman-8b88736393073531edbafffee47d6633e8c2ce2e.tar.bz2 connman-8b88736393073531edbafffee47d6633e8c2ce2e.zip |
ntp: Specify leap-not-in-sync in flags
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.
-rw-r--r-- | src/ntp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |