mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
increase network try interval gradually
* grub-core/net/arp.c (grub_net_arp_send_request): Increase network try interval gradually. * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise. * grub-core/net/net.c (grub_net_fs_read_real): Likewise. * grub-core/net/tftp.c (tftp_open): Likewise. * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
This commit is contained in:
1 parent
d99d2f8416
commit
6f65e36cc4
6 files changed
+19
-5
No files matched your search
+2
-1
@@ -110,7 +110,8 @@ grub_net_arp_send_request (struct grub_net_network_level_interface *inf,
|
||||
return GRUB_ERR_NONE;
|
||||
pending_req = proto_addr->ipv4;
|
||||
have_pending = 0;
|
||||
grub_net_poll_cards (GRUB_NET_INTERVAL, &have_pending);
|
||||
grub_net_poll_cards (GRUB_NET_INTERVAL + (i * GRUB_NET_INTERVAL_ADDITION),
|
||||
&have_pending);
|
||||
if (grub_net_link_layer_resolve_check (inf, proto_addr))
|
||||
return GRUB_ERR_NONE;
|
||||
nb.data = nbd;
|
||||
|
||||
Reference in new issue
Block a user