diff options
author | Michael Brown | 2007-11-21 23:10:04 +0100 |
---|---|---|
committer | Michael Brown | 2007-11-21 23:10:04 +0100 |
commit | b3abf25e3c77abaa6e45c918fe7d1da22e78d850 (patch) | |
tree | a99305303389dfb506f73cff613d681ed278ee47 /src/include | |
parent | Add ProxyDHCP support. (diff) | |
download | ipxe-b3abf25e3c77abaa6e45c918fe7d1da22e78d850.tar.gz ipxe-b3abf25e3c77abaa6e45c918fe7d1da22e78d850.tar.xz ipxe-b3abf25e3c77abaa6e45c918fe7d1da22e78d850.zip |
Allow DHCP server to instruct gPXE to ignore ProxyDHCP (which will
also avoid waiting for ProxyDHCP offers).
Also reduce the ProxyDHCP timeout, because it's already irritating me.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gpxe/dhcp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index c99dd576..9a9ba748 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -183,6 +183,13 @@ struct job_interface; * */ +/** Ignore ProxyDHCP + * + * If set to a non-zero value, gPXE will not wait for ProxyDHCP offers + * and will ignore any ProxyDHCP offers that it receives. + */ +#define DHCP_EB_NO_PROXYDHCP DHCP_ENCAP_OPT ( DHCP_EB_ENCAP, 0xb0 ) + /** Network device descriptor * * Byte 0 is the bus type ID; remaining bytes depend on the bus type. @@ -514,7 +521,7 @@ dhcpopt_put ( struct dhcp_option_block *options ) { } /** Maximum time that we will wait for ProxyDHCP offers */ -#define PROXYDHCP_WAIT_TIME ( TICKS_PER_SEC * 2 ) +#define PROXYDHCP_WAIT_TIME ( TICKS_PER_SEC * 1 ) extern struct list_head dhcp_option_blocks; |