]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Get DNS information from host in uip_init()
authorAsias He <asias.hejun@gmail.com>
Sun, 17 Jul 2011 08:56:58 +0000 (16:56 +0800)
committerPekka Enberg <penberg@kernel.org>
Mon, 18 Jul 2011 10:17:15 +0000 (13:17 +0300)
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>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/net/uip/core.c

index 7a4b824cd3db67034ab627e22b884ea017909db7..2e7603c3f9d4ec3312337a64bb273e93c4a9051c 100644 (file)
@@ -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;
 }