mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 17:19:22 +00:00
net/dhcp: Introduce per-interface timeout
Currently we have a global timeout for all network cards in the BOOTP/DHCP discovery process. Make this timeout a per-interface one, so better accommodate the upcoming 4-way DHCP handshake and to also cover the lease time limit a DHCP offer will come with. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
5459243465
commit
12e1b6e604
2 files changed
+36
-4
No files matched your search
@@ -292,6 +292,8 @@ struct grub_net_network_level_interface
|
||||
struct grub_net_bootp_packet *dhcp_ack;
|
||||
grub_size_t dhcp_acklen;
|
||||
grub_uint16_t vlantag;
|
||||
unsigned dhcp_tmo_left; /* DHCPv4 running retransmission timeout */
|
||||
unsigned dhcp_tmo; /* DHCPv4 current retransmission timeout */
|
||||
void *data;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user