summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMichael Brown2013-11-05 00:06:45 +0100
committerMichael Brown2013-11-05 18:42:50 +0100
commit2525e55c19a20c005b70056f9df546e9f6382013 (patch)
tree651f8d0869abba65bd09898f6f6c2373cc4472b4 /src/usr
parent[ifmgmt] Add ifconf() to carry out network device configuration (diff)
downloadipxe-2525e55c19a20c005b70056f9df546e9f6382013.tar.gz
ipxe-2525e55c19a20c005b70056f9df546e9f6382013.tar.xz
ipxe-2525e55c19a20c005b70056f9df546e9f6382013.zip
[autoboot] Use ifconf() to configure network device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/autoboot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index 276fb3db..6d6419d6 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -38,7 +38,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/timer.h>
#include <usr/ifmgmt.h>
#include <usr/route.h>
-#include <usr/dhcpmgmt.h>
#include <usr/imgmgmt.h>
#include <usr/prompt.h>
#include <usr/autoboot.h>
@@ -365,8 +364,8 @@ int netboot ( struct net_device *netdev ) {
goto err_ifopen;
ifstat ( netdev );
- /* Configure device via DHCP */
- if ( ( rc = dhcp ( netdev ) ) != 0 )
+ /* Configure device */
+ if ( ( rc = ifconf ( netdev, NULL ) ) != 0 )
goto err_dhcp;
route();