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 /networking | |
parent | 2620d387141c16bdce74dd9d91043ee3869febc4 (diff) | |
download | busybox-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>
Diffstat (limited to 'networking')
-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*/) 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); |