From 855aeacfba83a776f529da7a82b749081652a486 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 21 Feb 2021 09:47:34 +0100 Subject: 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 --- networking/ntpd.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3