Perform configuration of @var{card} using DHCP protocol. If no card name
is specified, try to configure all existing cards. If configuration was
successful, interface with name @var{card}@samp{:dhcp} and configured
-address is added to @var{card}. If server provided gateway information in
-DHCP ACK packet, it is added as route entry with the name @var{card}@samp{:dhcp:gw}. Additionally the following DHCP options are recognized and processed:
+address is added to @var{card}.
+@comment If server provided gateway information in
+@comment DHCP ACK packet, it is added as route entry with the name @var{card}@samp{:dhcp:gw}.
+Additionally the following DHCP options are recognized and processed:
@table @samp
@item 1 (Subnet Mask)
hwaddr.type = GRUB_NET_LINK_LEVEL_PROTOCOL_ETHERNET;
inter = grub_net_add_addr (name, card, &addr, &hwaddr, flags);
+#if 0
+ /* This is likely based on misunderstanding. gateway_ip refers to
+ address of BOOTP relay and should not be used after BOOTP transaction
+ is complete.
+ See RFC1542, 3.4 Interpretation of the 'giaddr' field
+ */
if (bp->gateway_ip)
{
grub_net_network_level_netaddress_t target;
target.ipv4.masksize = 32;
grub_net_add_route (name, target, inter);
}
+#endif
if (size > OFFSET_OF (boot_file, bp))
grub_env_set_net_property (name, "boot_file", bp->boot_file,