summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMichael Brown2013-11-05 00:07:06 +0100
committerMichael Brown2013-11-05 18:42:55 +0100
commitc99f9ee9dfbff6dad087693ae253cebb1776ec03 (patch)
tree4b0a6c84298fd7eb3023059cdf06dea7eb44d461 /src/usr
parent[cmdline] Make "dhcp" command a synonym for "ifconf" (diff)
downloadipxe-c99f9ee9dfbff6dad087693ae253cebb1776ec03.tar.gz
ipxe-c99f9ee9dfbff6dad087693ae253cebb1776ec03.tar.xz
ipxe-c99f9ee9dfbff6dad087693ae253cebb1776ec03.zip
[dhcp] Remove obsolete dhcp() function
All functionality provided by dhcp() has now been obviated by the more generic ifconf(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/dhcpmgmt.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c
index 9309671e..23982b19 100644
--- a/src/usr/dhcpmgmt.c
+++ b/src/usr/dhcpmgmt.c
@@ -25,39 +25,15 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/netdevice.h>
#include <ipxe/dhcp.h>
#include <ipxe/monojob.h>
-#include <ipxe/timer.h>
#include <usr/ifmgmt.h>
#include <usr/dhcpmgmt.h>
-/** Default time to wait for link-up */
-#define LINK_WAIT_TIMEOUT ( 15 * TICKS_PER_SEC )
-
/** @file
*
* DHCP management
*
*/
-int dhcp ( struct net_device *netdev ) {
- int rc;
-
- /* Check we can open the interface first */
- if ( ( rc = ifopen ( netdev ) ) != 0 )
- return rc;
-
- /* Wait for link-up */
- if ( ( rc = iflinkwait ( netdev, LINK_WAIT_TIMEOUT ) ) != 0 )
- return rc;
-
- /* Perform DHCP */
- printf ( "DHCP (%s %s)", netdev->name,
- netdev->ll_protocol->ntoa ( netdev->ll_addr ) );
- if ( ( rc = start_dhcp ( &monojob, netdev ) ) == 0 )
- rc = monojob_wait ( "", 0 );
-
- return rc;
-}
-
int pxebs ( struct net_device *netdev, unsigned int pxe_type ) {
int rc;