From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 3.mo3.mail-out.ovh.net ([46.105.44.175] helo=mo3.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SDTjg-00042s-B2 for barebox@lists.infradead.org; Fri, 30 Mar 2012 04:46:52 +0000 Received: from mail622.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 9AB83FF8A6E for ; Fri, 30 Mar 2012 06:47:19 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 30 Mar 2012 06:31:46 +0200 Message-Id: <1333081913-19168-1-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <20120330042713.GX444@game.jcrosoft.org> References: <20120330042713.GX444@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/8] net: dhcp: reset env variable before do a dhcp request To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- net/dhcp.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net/dhcp.c b/net/dhcp.c index 53eed6c..1ba4def 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -453,6 +453,12 @@ static int do_dhcp(int argc, char *argv[]) int ret, opt; char *vendor_id = (char*)getenv("dhcp_vendor_id"); + setenv("bootfile",""); + setenv("nameserver",""); + setenv("hostname",""); + setenv("domainname",""); + setenv("rootpath",""); + while((opt = getopt(argc, argv, "v:")) > 0) { switch(opt) { case 'v': -- 1.7.9.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox