mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
[autoboot] Use ifconf() to configure network device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -38,7 +38,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
|||||||
#include <ipxe/timer.h>
|
#include <ipxe/timer.h>
|
||||||
#include <usr/ifmgmt.h>
|
#include <usr/ifmgmt.h>
|
||||||
#include <usr/route.h>
|
#include <usr/route.h>
|
||||||
#include <usr/dhcpmgmt.h>
|
|
||||||
#include <usr/imgmgmt.h>
|
#include <usr/imgmgmt.h>
|
||||||
#include <usr/prompt.h>
|
#include <usr/prompt.h>
|
||||||
#include <usr/autoboot.h>
|
#include <usr/autoboot.h>
|
||||||
@@ -365,8 +364,8 @@ int netboot ( struct net_device *netdev ) {
|
|||||||
goto err_ifopen;
|
goto err_ifopen;
|
||||||
ifstat ( netdev );
|
ifstat ( netdev );
|
||||||
|
|
||||||
/* Configure device via DHCP */
|
/* Configure device */
|
||||||
if ( ( rc = dhcp ( netdev ) ) != 0 )
|
if ( ( rc = ifconf ( netdev, NULL ) ) != 0 )
|
||||||
goto err_dhcp;
|
goto err_dhcp;
|
||||||
route();
|
route();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user