Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ag6wl-0001jk-NH for mharc-grub-devel@gnu.org; Wed, 16 Mar 2016 04:36:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag6wg-0001jb-Kh for grub-devel@gnu.org; Wed, 16 Mar 2016 04:36:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag6wc-0007uV-IP for grub-devel@gnu.org; Wed, 16 Mar 2016 04:36:46 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:55545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag6wb-0007uJ-Vt for grub-devel@gnu.org; Wed, 16 Mar 2016 04:36:42 -0400 Received: from localhost by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 Mar 2016 18:36:37 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp01.au.ibm.com (202.81.31.207) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 16 Mar 2016 18:36:35 +1000 X-IBM-Helo: d23dlp01.au.ibm.com X-IBM-MailFrom: nikunj@linux.vnet.ibm.com X-IBM-RcptTo: grub-devel@gnu.org Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 6AD7C2CE8062 for ; Wed, 16 Mar 2016 19:36:30 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2G8aLaT46596122 for ; Wed, 16 Mar 2016 19:36:30 +1100 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2G8Zv2E031617 for ; Wed, 16 Mar 2016 19:35:57 +1100 Received: from abhimanyu.in.ibm.com (abhimanyu.in.ibm.com [9.124.35.126] (may be forged)) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u2G8ZufF030766; Wed, 16 Mar 2016 19:35:56 +1100 From: Nikunj A Dadhania To: grub-devel@gnu.org Subject: [PATCH] bootp: set is_def while processing dhcp ack Date: Wed, 16 Mar 2016 14:05:24 +0530 Message-Id: <1458117324-5685-1-git-send-email-nikunj@linux.vnet.ibm.com> X-Mailer: git-send-email 2.5.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16031608-1618-0000-0000-00002762040A X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 202.81.31.143 Cc: mpe@ellerman.id.au, nikunj@linux.vnet.ibm.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2016 08:36:50 -0000 While testing netboot on ppc64, found that the grub_net_default_server is not set even when the dhcp response has sent the server IP. This would result in a failure during netbooting with following error: error: no server is specified. This patch sets the is_def variable which would result in setting the grub_net_default_server and then netboot from the server. Signed-off-by: Nikunj A Dadhania --- grub-core/net/bootp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c index a088244..74b8b79 100644 --- a/grub-core/net/bootp.c +++ b/grub-core/net/bootp.c @@ -278,7 +278,7 @@ grub_net_process_dhcp (struct grub_net_buff *nb, } grub_net_configure_by_dhcp_ack (name, card, 0, (const struct grub_net_bootp_packet *) nb->data, - (nb->tail - nb->data), 0, 0, 0); + (nb->tail - nb->data), 1, 0, 0); grub_free (name); if (grub_errno) grub_print_error (); -- 2.5.0