diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-02-21 09:47:34 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-02-21 09:47:34 +0100 |
commit | 855aeacfba83a776f529da7a82b749081652a486 (patch) | |
tree | 8dc09411ace04b7182b6092eb745b18e40a17624 | |
parent | 2620d387141c16bdce74dd9d91043ee3869febc4 (diff) | |
download | busybox-w32-855aeacfba83a776f529da7a82b749081652a486.tar.gz busybox-w32-855aeacfba83a776f529da7a82b749081652a486.tar.bz2 busybox-w32-855aeacfba83a776f529da7a82b749081652a486.zip |
ntpd: log responses to clients at log level 3
function old new delta
recv_and_process_client_pkt 670 706 +36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index ede993078..9c15999f3 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -2153,6 +2153,12 @@ recv_and_process_client_pkt(void /*int fd*/) | |||
2153 | do_sendto(G_listen_fd, | 2153 | do_sendto(G_listen_fd, |
2154 | /*from:*/ &to->u.sa, /*to:*/ from, /*addrlen:*/ to->len, | 2154 | /*from:*/ &to->u.sa, /*to:*/ from, /*addrlen:*/ to->len, |
2155 | &msg, size); | 2155 | &msg, size); |
2156 | VERB3 { | ||
2157 | char *addr; | ||
2158 | addr = xmalloc_sockaddr2dotted_noport(from); | ||
2159 | bb_error_msg("responded to query from %s", addr); | ||
2160 | free(addr); | ||
2161 | } | ||
2156 | 2162 | ||
2157 | bail: | 2163 | bail: |
2158 | free(to); | 2164 | free(to); |