Browse Source

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

list.
tags/v0.9.3
Michael Brown 18 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
 #define DHCP_ROUTERS 3
57
 #define DHCP_ROUTERS 3
58
 
58
 
59
 /** DNS servers */
59
 /** DNS servers */
60
-#define DHCP_DNS_SERVERS 4
60
+#define DHCP_DNS_SERVERS 6
61
 
61
 
62
 /** Host name */
62
 /** Host name */
63
 #define DHCP_HOST_NAME 12
63
 #define DHCP_HOST_NAME 12

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

55
 	DHCP_STRING (  'E', 't', 'h', 'e', 'r', 'b', 'o', 'o', 't' ),
55
 	DHCP_STRING (  'E', 't', 'h', 'e', 'r', 'b', 'o', 'o', 't' ),
56
 	DHCP_PARAMETER_REQUEST_LIST,
56
 	DHCP_PARAMETER_REQUEST_LIST,
57
 	DHCP_OPTION ( DHCP_SUBNET_MASK, DHCP_ROUTERS, DHCP_HOST_NAME,
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
 	DHCP_END
59
 	DHCP_END
60
 };
60
 };
61
 
61
 

Loading…
Cancel
Save