Add debug message when nameserver setting is applied/changed via DHCP.
authorMichael Brown <mcb30@etherboot.org>
Sun, 8 Jul 2007 13:31:51 +0000 (14:31 +0100)
committerMichael Brown <mcb30@etherboot.org>
Sun, 8 Jul 2007 13:31:51 +0000 (14:31 +0100)
src/net/udp/dns.c

index aab9cfc..2dac8ee 100644 (file)
@@ -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 );
        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;
 }
 
        return 0;
 }