[ipxe-devel] [PATCH 1/1] dhcp: correct user class data
Heinrich Schuchardt
xypron.glpk at gmx.de
Mon Aug 21 01:15:03 UTC 2017
The user class option for DHCP is defined in RFC 3004.
The third byte of the user class data must be the length
of the first user class value.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
src/net/udp/dhcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 3a3666c9..402c1ba5 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -87,7 +87,7 @@ static uint8_t dhcp_request_options_data[] = {
DHCP_VENDOR_CLASS_ID,
DHCP_STRING ( DHCP_VENDOR_PXECLIENT ( DHCP_ARCH_CLIENT_ARCHITECTURE,
DHCP_ARCH_CLIENT_NDI ) ),
- DHCP_USER_CLASS_ID, DHCP_STRING ( 'i', 'P', 'X', 'E' ),
+ DHCP_USER_CLASS_ID, DHCP_STRING ( 4, 'i', '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,
--
2.14.1
More information about the ipxe-devel
mailing list