Explorar el Código

[dhcp] Work around a bug in Altiris RDP

Altiris erroneously cares about the ordering of DHCP options, and will
get confused if we don't construct them in the order it expects.

This is observed (so far) only when attempting to deploy 64-bit Win2k3.
tags/v0.9.4
Michael Brown hace 17 años
padre
commit
ed73d53503
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/net/udp/dhcp.c

+ 2
- 2
src/net/udp/dhcp.c Ver fichero

@@ -66,12 +66,12 @@ static const uint8_t dhcp_op[] = {
66 66
 /** Raw option data for options common to all DHCP requests */
67 67
 static uint8_t dhcp_request_options_data[] = {
68 68
 	DHCP_MAX_MESSAGE_SIZE, DHCP_WORD ( ETH_MAX_MTU ),
69
+	DHCP_CLIENT_ARCHITECTURE, DHCP_WORD ( 0 ),
70
+	DHCP_CLIENT_NDI, DHCP_OPTION ( 1 /* UNDI */ , 2, 1 /* v2.1 */ ),
69 71
 	DHCP_VENDOR_CLASS_ID,
70 72
 	DHCP_STRING (  'P', 'X', 'E', 'C', 'l', 'i', 'e', 'n', 't', ':',
71 73
 		       'A', 'r', 'c', 'h', ':', '0', '0', '0', '0', '0', ':',
72 74
 		       'U', 'N', 'D', 'I', ':', '0', '0', '2', '0', '0', '1' ),
73
-	DHCP_CLIENT_ARCHITECTURE, DHCP_WORD ( 0 ),
74
-	DHCP_CLIENT_NDI, DHCP_OPTION ( 1 /* UNDI */ , 2, 1 /* v2.1 */ ),
75 75
 	DHCP_PARAMETER_REQUEST_LIST,
76 76
 	DHCP_OPTION ( DHCP_SUBNET_MASK, DHCP_ROUTERS, DHCP_DNS_SERVERS,
77 77
 		      DHCP_LOG_SERVERS, DHCP_HOST_NAME, DHCP_DOMAIN_NAME,

Loading…
Cancelar
Guardar