david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/tests/dhcptest.c

11 lines
227 B
C
Raw Normal View History

#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 ) );
}