Added some debug messages and DHCP test code

This commit is contained in:
Michael Brown
2006-07-19 17:49:31 +00:00
parent 317b962b65
commit 6d9d48537e
3 changed files with 39 additions and 1 deletions

10
src/tests/dhcptest.c Normal file
View File

@@ -0,0 +1,10 @@
#include <string.h>
#include <gpxe/dhcp.h>
int test_dhcp ( struct net_device *netdev ) {
struct dhcp_session dhcp;
memset ( &dhcp, 0, sizeof ( dhcp ) );
dhcp.netdev = netdev;
return async_wait ( start_dhcp ( &dhcp ) );
}