summaryrefslogtreecommitdiff
path: root/src/ntp.c
diff options
context:
space:
mode:
authorGrant Erickson <marathon96@gmail.com>2012-07-16 09:48:01 -0700
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-07-17 10:13:21 +0200
commit8b88736393073531edbafffee47d6633e8c2ce2e (patch)
tree2d27e73e8f3cfedcc09bb254dce552d939781efc /src/ntp.c
parent123e093b1395afe8b8857f40af6b08d9f396f9d3 (diff)
downloadconnman-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.
Diffstat (limited to 'src/ntp.c')
-rw-r--r--src/ntp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntp.c b/src/ntp.c
index 1916a722..7ef072ca 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