aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-02-21 09:47:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-02-21 09:47:34 +0100
commit855aeacfba83a776f529da7a82b749081652a486 (patch)
tree8dc09411ace04b7182b6092eb745b18e40a17624
parent2620d387141c16bdce74dd9d91043ee3869febc4 (diff)
downloadbusybox-855aeacfba83a776f529da7a82b749081652a486.tar.gz
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.c6
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*/)
do_sendto(G_listen_fd,
/*from:*/ &to->u.sa, /*to:*/ from, /*addrlen:*/ to->len,
&msg, size);
+ VERB3 {
+ char *addr;
+ addr = xmalloc_sockaddr2dotted_noport(from);
+ bb_error_msg("responded to query from %s", addr);
+ free(addr);
+ }
bail:
free(to);