Browse Source

Add some DHCP options that we are likely to use

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
bf0cdd42cf
1 changed files with 33 additions and 1 deletions
  1. 33
    1
      src/include/gpxe/dhcp.h

+ 33
- 1
src/include/gpxe/dhcp.h View File

@@ -42,9 +42,30 @@
42 42
 /** Minimum normal DHCP option */
43 43
 #define DHCP_MIN_OPTION 1
44 44
 
45
+/** Subnet mask */
46
+#define DHCP_SUBNET_MASK 1
47
+
48
+/** Routers */
49
+#define DHCP_ROUTERS 3
50
+
51
+/** DNS servers */
52
+#define DHCP_DNS_SERVERS 4
53
+
54
+/** Host name */
55
+#define DHCP_HOST_NAME 12
56
+
57
+/** Domain name */
58
+#define DHCP_DOMAIN_NAME 15
59
+
60
+/** Root path */
61
+#define DHCP_ROOT_PATH 17
62
+
45 63
 /** Vendor encapsulated options */
46 64
 #define DHCP_VENDOR_ENCAP 43
47 65
 
66
+/** Requested IP address */
67
+#define DHCP_REQUESTED_ADDRESS 50
68
+
48 69
 /** Option overloading
49 70
  *
50 71
  * The value of this option is the bitwise-OR of zero or more
@@ -69,6 +90,18 @@
69 90
 #define DHCPRELEASE 7
70 91
 #define DHCPINFORM 8
71 92
 
93
+/** DHCP server identifier */
94
+#define DHCP_SERVER_IDENTIFIER 54
95
+
96
+/** Parameter request list */
97
+#define DHCP_PARAMETER_REQUEST_LIST 55
98
+
99
+/** Maximum DHCP message size */
100
+#define DHCP_MAX_MESSAGE_SIZE 57
101
+
102
+/** Vendor class identifier */
103
+#define DHCP_VENDOR_CLASS_ID 60
104
+
72 105
 /** TFTP server name
73 106
  *
74 107
  * This option replaces the fixed "sname" field, when that field is
@@ -378,7 +411,6 @@ struct dhcp_session {
378 411
 	uint32_t xid;
379 412
 };
380 413
 
381
-extern const struct dhcp_option_block dhcp_request_options;
382 414
 extern unsigned long dhcp_num_option ( struct dhcp_option *option );
383 415
 extern struct dhcp_option *
384 416
 find_dhcp_option ( struct dhcp_option_block *options, unsigned int tag );

Loading…
Cancel
Save