mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 09:32:33 +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;
|
goto out_no_del_ipv4;
|
||||||
|
|
||||||
/* Issue DHCP request */
|
/* Issue DHCP request */
|
||||||
|
printf ( "DHCP..." );
|
||||||
memset ( &dhcp, 0, sizeof ( dhcp ) );
|
memset ( &dhcp, 0, sizeof ( dhcp ) );
|
||||||
dhcp.netdev = netdev;
|
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;
|
goto out_no_options;
|
||||||
|
}
|
||||||
|
printf ( "done\n" );
|
||||||
|
|
||||||
/* Register options received via DHCP */
|
/* Register options received via DHCP */
|
||||||
register_dhcp_options ( dhcp.options );
|
register_dhcp_options ( dhcp.options );
|
||||||
|
|||||||
Reference in New Issue
Block a user