[git commit] ntpd: log responses to clients at log level 3

Denys Vlasenko vda.linux at googlemail.com
Sun Feb 21 08:47:34 UTC 2021


commit: https://git.busybox.net/busybox/commit/?id=855aeacfba83a776f529da7a82b749081652a486
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
recv_and_process_client_pkt                          670     706     +36

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 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);


More information about the busybox-cvs mailing list