david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Print out "DHCP..." message just in case people think the demo is sitting

there doing nothing when it's actually waiting for a DHCP reply.
This commit is contained in:
Michael Brown 2006-07-20 14:20:11 +00:00
parent a92d242008
commit 9e761f5f28
1 changed files with 5 additions and 1 deletions

View File

@ -18,10 +18,14 @@ int test_dhcp ( struct net_device *netdev ) {
goto out_no_del_ipv4;
/* Issue DHCP request */
printf ( "DHCP..." );
memset ( &dhcp, 0, sizeof ( dhcp ) );
dhcp.netdev = netdev;
if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 )
if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 ) {
printf ( "failed\n" );
goto out_no_options;
}
printf ( "done\n" );
/* Register options received via DHCP */
register_dhcp_options ( dhcp.options );