david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Add some DHCP options that we are likely to use

This commit is contained in:
Michael Brown 2006-07-19 17:00:32 +00:00
parent e0668ad8df
commit bf0cdd42cf
1 changed files with 33 additions and 1 deletions

View File

@ -42,9 +42,30 @@
/** Minimum normal DHCP option */
#define DHCP_MIN_OPTION 1
/** Subnet mask */
#define DHCP_SUBNET_MASK 1
/** Routers */
#define DHCP_ROUTERS 3
/** DNS servers */
#define DHCP_DNS_SERVERS 4
/** Host name */
#define DHCP_HOST_NAME 12
/** Domain name */
#define DHCP_DOMAIN_NAME 15
/** Root path */
#define DHCP_ROOT_PATH 17
/** Vendor encapsulated options */
#define DHCP_VENDOR_ENCAP 43
/** Requested IP address */
#define DHCP_REQUESTED_ADDRESS 50
/** Option overloading
*
* The value of this option is the bitwise-OR of zero or more
@ -69,6 +90,18 @@
#define DHCPRELEASE 7
#define DHCPINFORM 8
/** DHCP server identifier */
#define DHCP_SERVER_IDENTIFIER 54
/** Parameter request list */
#define DHCP_PARAMETER_REQUEST_LIST 55
/** Maximum DHCP message size */
#define DHCP_MAX_MESSAGE_SIZE 57
/** Vendor class identifier */
#define DHCP_VENDOR_CLASS_ID 60
/** TFTP server name
*
* This option replaces the fixed "sname" field, when that field is
@ -378,7 +411,6 @@ struct dhcp_session {
uint32_t xid;
};
extern const struct dhcp_option_block dhcp_request_options;
extern unsigned long dhcp_num_option ( struct dhcp_option *option );
extern struct dhcp_option *
find_dhcp_option ( struct dhcp_option_block *options, unsigned int tag );