From patchwork Sun Jul 17 08:56:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 982982 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6H8xbJL023772 for ; Sun, 17 Jul 2011 08:59:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754136Ab1GQI7e (ORCPT ); Sun, 17 Jul 2011 04:59:34 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:63499 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754101Ab1GQI7d (ORCPT ); Sun, 17 Jul 2011 04:59:33 -0400 Received: by mail-iw0-f174.google.com with SMTP id 6so2294615iwn.19 for ; Sun, 17 Jul 2011 01:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=nG3BVxJ8KpJemDqXWzWMd4hyKNkqn4LR3OP6nU6bsy0=; b=bRqoV/O7P4qBKHzduZAitXmn2LoftqMLtCB0t8fkvqNlklnV7o9gAsCa0abSIrzklq bWUeossFikLozf6lr0ojIo1cmih6yTsF2215AuwBgMMfr8CoiW310MtBT1w1M8TjnAeL IOMcSE3vRLQDY5dzDXmIymODbVQS+cyqGXDnY= Received: by 10.42.161.66 with SMTP id s2mr3072954icx.485.1310893173184; Sun, 17 Jul 2011 01:59:33 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id us2sm3593680icb.19.2011.07.17.01.59.30 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jul 2011 01:59:32 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH 10/16] kvm tools: Get DNS information from host in uip_init() Date: Sun, 17 Jul 2011 16:56:58 +0800 Message-Id: <1310893024-21615-11-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1310893024-21615-1-git-send-email-asias.hejun@gmail.com> References: <1310893024-21615-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sun, 17 Jul 2011 08:59:37 +0000 (UTC) Use uip_dhcp_get_dns() in uip_init() to get DNS information from host for DHCP. Signed-off-by: Asias He --- tools/kvm/net/uip/core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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; }