[dhcp] Automatically generate vendor class identifier string
The vendor class identifier strings in DHCP_ARCH_VENDOR_CLASS_ID are out of sync with the (correct) client architecture values in DHCP_ARCH_CLIENT_ARCHITECTURE. Fix by removing all definitions of DHCP_ARCH_VENDOR_CLASS_ID, and instead generating the vendor class identifier string automatically based on DHCP_ARCH_CLIENT_ARCHITECTURE and DHCP_ARCH_CLIENT_NDI. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -374,7 +374,9 @@ static uint8_t dhcpv6_request_options_data[] = {
|
||||
DHCPV6_CODE ( DHCPV6_BOOTFILE_PARAM ) ),
|
||||
DHCPV6_CODE ( DHCPV6_VENDOR_CLASS ),
|
||||
DHCPV6_OPTION ( DHCPV6_DWORD_VALUE ( DHCPV6_VENDOR_CLASS_PXE ),
|
||||
DHCPV6_STRING ( DHCP_ARCH_VENDOR_CLASS_ID ) ),
|
||||
DHCPV6_STRING (
|
||||
DHCP_VENDOR_PXECLIENT ( DHCP_ARCH_CLIENT_ARCHITECTURE,
|
||||
DHCP_ARCH_CLIENT_NDI ) ) ),
|
||||
DHCPV6_CODE ( DHCPV6_CLIENT_ARCHITECTURE ),
|
||||
DHCPV6_WORD ( DHCP_ARCH_CLIENT_ARCHITECTURE ),
|
||||
DHCPV6_CODE ( DHCPV6_CLIENT_NDI ),
|
||||
|
||||
Reference in New Issue
Block a user