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
 /** Minimum normal DHCP option */
42
 /** Minimum normal DHCP option */
43
 #define DHCP_MIN_OPTION 1
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
 /** Vendor encapsulated options */
63
 /** Vendor encapsulated options */
46
 #define DHCP_VENDOR_ENCAP 43
64
 #define DHCP_VENDOR_ENCAP 43
47
 
65
 
66
+/** Requested IP address */
67
+#define DHCP_REQUESTED_ADDRESS 50
68
+
48
 /** Option overloading
69
 /** Option overloading
49
  *
70
  *
50
  * The value of this option is the bitwise-OR of zero or more
71
  * The value of this option is the bitwise-OR of zero or more
69
 #define DHCPRELEASE 7
90
 #define DHCPRELEASE 7
70
 #define DHCPINFORM 8
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
 /** TFTP server name
105
 /** TFTP server name
73
  *
106
  *
74
  * This option replaces the fixed "sname" field, when that field is
107
  * This option replaces the fixed "sname" field, when that field is
378
 	uint32_t xid;
411
 	uint32_t xid;
379
 };
412
 };
380
 
413
 
381
-extern const struct dhcp_option_block dhcp_request_options;
382
 extern unsigned long dhcp_num_option ( struct dhcp_option *option );
414
 extern unsigned long dhcp_num_option ( struct dhcp_option *option );
383
 extern struct dhcp_option *
415
 extern struct dhcp_option *
384
 find_dhcp_option ( struct dhcp_option_block *options, unsigned int tag );
416
 find_dhcp_option ( struct dhcp_option_block *options, unsigned int tag );

Loading…
Cancel
Save