diff options
author | Grant Erickson <marathon96@gmail.com> | 2012-07-16 09:47:59 -0700 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-07-17 10:13:02 +0200 |
commit | 19116c1505384f3ee47626474f73cd458008055f (patch) | |
tree | e7f6711bd9eccb980f10f977e6d2de143962e972 | |
parent | a8edee9468a2848f83f859e7ae3945b282867d50 (diff) | |
download | connman-19116c1505384f3ee47626474f73cd458008055f.tar.gz connman-19116c1505384f3ee47626474f73cd458008055f.tar.bz2 connman-19116c1505384f3ee47626474f73cd458008055f.zip |
ntp: Use mnemonics rather than magic numbers
Convert a magic number into equivalent mnemonics for the flags (leap,
version, mode) packet field.
-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 = 0x23; + msg.flags = NTP_FLAGS_ENCODE(NTP_FLAG_LI_NOWARNING, 4, NTP_FLAG_MD_CLIENT); msg.poll = 4; // min msg.poll = 10; // max msg.xmttime.seconds = random(); |