Add ProxyDHCP support.

This commit is contained in:
Michael Brown
2007-11-21 21:51:43 +00:00
parent fa0bd77270
commit 0becbf5fba
2 changed files with 62 additions and 29 deletions

View File

@@ -12,6 +12,7 @@
#include <gpxe/in.h>
#include <gpxe/refcnt.h>
#include <gpxe/tables.h>
#include <latch.h>
struct net_device;
struct job_interface;
@@ -505,13 +506,16 @@ dhcpopt_get ( struct dhcp_option_block *options ) {
/**
* Drop reference to DHCP options block
*
* @v options DHCP options block
* @v options DHCP options block, or NULL
*/
static inline __attribute__ (( always_inline )) void
dhcpopt_put ( struct dhcp_option_block *options ) {
ref_put ( &options->refcnt );
}
/** Maximum time that we will wait for ProxyDHCP offers */
#define PROXYDHCP_WAIT_TIME ( TICKS_PER_SEC * 2 )
extern struct list_head dhcp_option_blocks;
extern unsigned long dhcp_num_option ( struct dhcp_option *option );