mirror of
https://github.com/ipxe/ipxe
synced 2026-02-12 21:29:39 +03:00
Add "dhcp" command
This commit is contained in:
@@ -45,6 +45,10 @@ int dhcp ( struct net_device *netdev ) {
|
||||
struct in_addr gateway = { INADDR_NONE };
|
||||
int rc;
|
||||
|
||||
/* Check we can open the interface first */
|
||||
if ( ( rc = ifopen ( netdev ) ) != 0 )
|
||||
return rc;
|
||||
|
||||
/* Free up any previously-acquired options */
|
||||
if ( dhcp_options ) {
|
||||
unregister_dhcp_options ( dhcp_options );
|
||||
|
||||
Reference in New Issue
Block a user