diff mbox

[10/16] kvm tools: Get DNS information from host in uip_init()

Message ID 1310893024-21615-11-git-send-email-asias.hejun@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Asias He July 17, 2011, 8:56 a.m. UTC
Use uip_dhcp_get_dns() in uip_init() to get DNS information from host
for DHCP.

Signed-off-by: Asias He <asias.hejun@gmail.com>
---
 tools/kvm/net/uip/core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/tools/kvm/net/uip/core.c b/tools/kvm/net/uip/core.c
index 7a4b824..2e7603c 100644
--- a/tools/kvm/net/uip/core.c
+++ b/tools/kvm/net/uip/core.c
@@ -184,5 +184,7 @@  int uip_init(struct uip_info *info)
 	info->buf_free_nr = buf_nr;
 	info->buf_used_nr = 0;
 
+	uip_dhcp_get_dns(info);
+
 	return 0;
 }