From 0becbf5fba997b1806c65ee94c49e98f046ee799 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 21 Nov 2007 21:51:43 +0000 Subject: Add ProxyDHCP support. --- src/include/gpxe/dhcp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/gpxe') diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index 60d2ccff3..c99dd576f 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -12,6 +12,7 @@ #include #include #include +#include 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 ); -- cgit v1.2.3-55-g7522