summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2009-02-17 23:03:28 +0100
committerMichael Brown2009-02-17 23:03:28 +0100
commit7b1a5a7997e3673f75bf9eaaaffebd90adec89fc (patch)
tree46912276b2622781d8f07ddcc2cc01dfa6a6f55d
parent[image] Redact password from URIs displayed by imgfetch() (diff)
downloadipxe-7b1a5a7997e3673f75bf9eaaaffebd90adec89fc.tar.gz
ipxe-7b1a5a7997e3673f75bf9eaaaffebd90adec89fc.tar.xz
ipxe-7b1a5a7997e3673f75bf9eaaaffebd90adec89fc.zip
[dhcp] Use a default user-class of "gPXE"
This change makes it possible to break the PXE-chaining infinite loop even when restricted to a Windows DHCP server.
-rw-r--r--src/net/udp/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 776635c2..ab843ce1 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -77,6 +77,8 @@ static uint8_t dhcp_request_options_data[] = {
DHCP_STRING ( 'P', 'X', 'E', 'C', 'l', 'i', 'e', 'n', 't', ':',
'A', 'r', 'c', 'h', ':', '0', '0', '0', '0', '0', ':',
'U', 'N', 'D', 'I', ':', '0', '0', '2', '0', '0', '1' ),
+ DHCP_USER_CLASS_ID,
+ DHCP_STRING ( 'g', 'P', 'X', 'E' ),
DHCP_PARAMETER_REQUEST_LIST,
DHCP_OPTION ( DHCP_SUBNET_MASK, DHCP_ROUTERS, DHCP_DNS_SERVERS,
DHCP_LOG_SERVERS, DHCP_HOST_NAME, DHCP_DOMAIN_NAME,