summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-07-19 19:00:32 +0200
committerMichael Brown2006-07-19 19:00:32 +0200
commitbf0cdd42cf807253bcbfce246cdac2482b1e3428 (patch)
treeb7dbeebd5365546c9ed76dad4caf68272e382ff4 /src
parentCorrect typo (diff)
downloadipxe-bf0cdd42cf807253bcbfce246cdac2482b1e3428.tar.gz
ipxe-bf0cdd42cf807253bcbfce246cdac2482b1e3428.tar.xz
ipxe-bf0cdd42cf807253bcbfce246cdac2482b1e3428.zip
Add some DHCP options that we are likely to use
Diffstat (limited to 'src')
-rw-r--r--src/include/gpxe/dhcp.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h
index 7f5669204..dd95d98ae 100644
--- a/src/include/gpxe/dhcp.h
+++ b/src/include/gpxe/dhcp.h
@@ -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 );