mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-05 11:05:07 +00: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:
parent
a92d242008
commit
9e761f5f28
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user