From 237e23c1c96b3c5fca4519b0771eb5ec2e4fffc6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 8 Jul 2007 14:31:51 +0100 Subject: [PATCH] Add debug message when nameserver setting is applied/changed via DHCP. --- src/net/udp/dns.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c index aab9cfc2..2dac8ee9 100644 --- a/src/net/udp/dns.c +++ b/src/net/udp/dns.c @@ -517,6 +517,10 @@ static int apply_dhcp_nameserver ( unsigned int tag __unused, sin_nameserver = ( struct sockaddr_in * ) &nameserver; sin_nameserver->sin_family = AF_INET; dhcp_ipv4_option ( option, &sin_nameserver->sin_addr ); + + DBG ( "DNS using nameserver %s\n", + inet_ntoa ( sin_nameserver->sin_addr ) ); + return 0; }