Browse Source

Correct option number for DHCP_DNS_SERVERS, and add it to the request

list.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
cab3f4502b
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/include/gpxe/dhcp.h
  2. 1
    1
      src/net/udp/dhcp.c

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

@@ -57,7 +57,7 @@
57 57
 #define DHCP_ROUTERS 3
58 58
 
59 59
 /** DNS servers */
60
-#define DHCP_DNS_SERVERS 4
60
+#define DHCP_DNS_SERVERS 6
61 61
 
62 62
 /** Host name */
63 63
 #define DHCP_HOST_NAME 12

+ 1
- 1
src/net/udp/dhcp.c View File

@@ -55,7 +55,7 @@ static uint8_t dhcp_request_options_data[] = {
55 55
 	DHCP_STRING (  'E', 't', 'h', 'e', 'r', 'b', 'o', 'o', 't' ),
56 56
 	DHCP_PARAMETER_REQUEST_LIST,
57 57
 	DHCP_OPTION ( DHCP_SUBNET_MASK, DHCP_ROUTERS, DHCP_HOST_NAME,
58
-		      DHCP_BOOTFILE_NAME, DHCP_EB_ENCAP ),
58
+		      DHCP_BOOTFILE_NAME, DHCP_DNS_SERVERS, DHCP_EB_ENCAP ),
59 59
 	DHCP_END
60 60
 };
61 61
 

Loading…
Cancel
Save