mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 02:28:57 +03:00
Add ProxyDHCP support.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user