Ver código fonte

Add debug message when nameserver setting is applied/changed via DHCP.

tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
237e23c1c9
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/net/udp/dns.c

+ 4
- 0
src/net/udp/dns.c Ver arquivo

@@ -517,6 +517,10 @@ static int apply_dhcp_nameserver ( unsigned int tag __unused,
517 517
 	sin_nameserver = ( struct sockaddr_in * ) &nameserver;
518 518
 	sin_nameserver->sin_family = AF_INET;
519 519
 	dhcp_ipv4_option ( option, &sin_nameserver->sin_addr );
520
+
521
+	DBG ( "DNS using nameserver %s\n",
522
+	      inet_ntoa ( sin_nameserver->sin_addr ) );
523
+
520 524
 	return 0;
521 525
 }
522 526
 

Carregando…
Cancelar
Salvar