diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/dhcp.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <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 ); |
