diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-07-02 15:03:47 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-07-02 15:03:47 +0200 |
commit | b6946084296525f0e2aa3e72df7b896cc98197d7 (patch) | |
tree | 662ae8da14038db4e9002984e8825420090ffe11 | |
parent | c0961e09b200cbe4f243cbb588362904eaa1ce60 (diff) | |
download | busybox-w32-b6946084296525f0e2aa3e72df7b896cc98197d7.tar.gz busybox-w32-b6946084296525f0e2aa3e72df7b896cc98197d7.tar.bz2 busybox-w32-b6946084296525f0e2aa3e72df7b896cc98197d7.zip |
ntpd: add comment about mode6, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 465c74d6c..48dc1c379 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -2238,6 +2238,13 @@ recv_and_process_client_pkt(void /*int fd*/) | |||
2238 | from = xzalloc(to->len); | 2238 | from = xzalloc(to->len); |
2239 | 2239 | ||
2240 | size = recv_from_to(G_listen_fd, &msg, sizeof(msg), MSG_DONTWAIT, from, &to->u.sa, to->len); | 2240 | size = recv_from_to(G_listen_fd, &msg, sizeof(msg), MSG_DONTWAIT, from, &to->u.sa, to->len); |
2241 | |||
2242 | /* "ntpq -p" (4.2.8p13) sends a 12-byte NTPv2 request: | ||
2243 | * m_status is 0x16: leap:0 version:2 mode:6(reserved1) | ||
2244 | * https://docs.ntpsec.org/latest/mode6.html | ||
2245 | * We don't support this. | ||
2246 | */ | ||
2247 | |||
2241 | #if ENABLE_FEATURE_NTP_AUTH | 2248 | #if ENABLE_FEATURE_NTP_AUTH |
2242 | if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH && size != NTP_MSGSIZE_SHA1_AUTH) | 2249 | if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH && size != NTP_MSGSIZE_SHA1_AUTH) |
2243 | #else | 2250 | #else |