瀏覽代碼

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

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
237e23c1c9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/net/udp/dns.c

+ 4
- 0
src/net/udp/dns.c 查看文件

@@ -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
 

Loading…
取消
儲存