mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
When a network device is specified to tcpip_tx() or it's children, treat
it as a fallback network device rather than an explicitly forced network device. Clear routing table entries before re-attempting DHCP.
This commit is contained in:
@@ -58,6 +58,9 @@ int dhcp ( struct net_device *netdev ) {
|
||||
dhcp_options = NULL;
|
||||
}
|
||||
|
||||
/* Clear any existing routing table entry */
|
||||
del_ipv4_address ( netdev );
|
||||
|
||||
/* Issue DHCP request */
|
||||
printf ( "DHCP (%s %s)...", netdev->name, netdev_hwaddr ( netdev ) );
|
||||
memset ( &dhcp, 0, sizeof ( dhcp ) );
|
||||
|
||||
Reference in New Issue
Block a user