diff options
author | Michael Brown | 2007-11-21 22:51:43 +0100 |
---|---|---|
committer | Michael Brown | 2007-11-21 22:51:43 +0100 |
commit | 0becbf5fba997b1806c65ee94c49e98f046ee799 (patch) | |
tree | 6fc7ed74699cd3985bd0a2d26dafd0f72f817af8 /src/include | |
parent | Added netdev_nullify to natsemi_remove() (diff) | |
download | ipxe-0becbf5fba997b1806c65ee94c49e98f046ee799.tar.gz ipxe-0becbf5fba997b1806c65ee94c49e98f046ee799.tar.xz ipxe-0becbf5fba997b1806c65ee94c49e98f046ee799.zip |
Add ProxyDHCP support.
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 60d2ccff..c99dd576 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 ); |