mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user