All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bootp: set is_def while processing dhcp ack
@ 2016-03-16  8:35 Nikunj A Dadhania
  2016-03-16  9:49 ` Andrei Borzenkov
  0 siblings, 1 reply; 18+ messages in thread
From: Nikunj A Dadhania @ 2016-03-16  8:35 UTC (permalink / raw)
  To: grub-devel; +Cc: mpe, nikunj

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 <nikunj@linux.vnet.ibm.com>
---
 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



^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-03-18  6:34 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16  8:35 [PATCH] bootp: set is_def while processing dhcp ack Nikunj A Dadhania
2016-03-16  9:49 ` Andrei Borzenkov
2016-03-16 10:16   ` Nikunj A Dadhania
2016-03-16 10:33     ` Andrei Borzenkov
2016-03-16 11:00       ` Nikunj A Dadhania
2016-03-16 11:13         ` Andrei Borzenkov
2016-03-17  6:16       ` Nikunj A Dadhania
2016-03-17  7:27         ` Andrei Borzenkov
2016-03-17  8:04           ` Nikunj A Dadhania
2016-03-17  8:09             ` Nikunj A Dadhania
2016-03-17  8:32             ` Andrei Borzenkov
2016-03-17  8:45               ` Nikunj A Dadhania
2016-03-17 18:58                 ` Andrei Borzenkov
2016-03-18  5:06                   ` Nikunj A Dadhania
2016-03-18  5:59                     ` Andrei Borzenkov
2016-03-18  6:08                       ` Nikunj A Dadhania
2016-03-18  6:27                         ` Andrei Borzenkov
2016-03-18  6:34                           ` Nikunj A Dadhania

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.