Add "dhcp" command

This commit is contained in:
Michael Brown
2007-01-12 09:53:28 +00:00
parent e2c0055e23
commit 9952df9b52
3 changed files with 110 additions and 0 deletions

View File

@@ -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 );