RFC 1534: Interoperation Between DHCP and BOOTP\r
RFC 3396: Encoding Long Options in DHCP.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
// The state of the DHCP service. It starts as UNCONFIGED. If\r
// and active child configures the service successfully, it\r
// goes to CONFIGED. If the active child configures NULL, it\r
-// goes back to UNCONFIGED. It becomes DESTORY if it is (partly)\r
-// destoried.\r
+// goes back to UNCONFIGED. It becomes DESTROY if it is (partly)\r
+// destroyed.\r
//\r
#define DHCP_UNCONFIGED 0\r
#define DHCP_CONFIGED 1\r
-#define DHCP_DESTORY 2\r
+#define DHCP_DESTROY 2\r
\r
\r
struct _DHCP_PROTOCOL {\r
EFI_HANDLE Handle;\r
DHCP_SERVICE *Service;\r
\r
- BOOLEAN InDestory;\r
+ BOOLEAN InDestroy;\r
\r
EFI_EVENT CompletionEvent;\r
EFI_EVENT RenewRebindEvent;\r
EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN *Token;\r
UDP_IO *UdpIo; // The UDP IO used for TransmitReceive.\r
UINT32 Timeout;\r
+ UINT16 ElaspedTime;\r
NET_BUF_QUEUE ResponseQueue;\r
};\r
\r
UINT32 Signature;\r
EFI_SERVICE_BINDING_PROTOCOL ServiceBinding;\r
\r
- INTN ServiceState; // CONFIGED, UNCONFIGED, and DESTORY\r
- BOOLEAN InDestory;\r
+ INTN ServiceState; // CONFIGED, UNCONFIGED, and DESTROY\r
+ BOOLEAN InDestroy;\r
\r
EFI_HANDLE Controller;\r
EFI_HANDLE Image;\r
IN OUT EFI_DHCP4_CONFIG_DATA *Config\r
);\r
\r
+/**\r
+ Set the elapsed time based on the given instance and the pointer to the\r
+ elapsed time option.\r
+\r
+ @param[in] Elapsed The pointer to the position to append.\r
+ @param[in] Instance The pointer to the Dhcp4 instance.\r
+**/\r
+VOID\r
+SetElapsedTime (\r
+ IN UINT16 *Elapsed,\r
+ IN DHCP_PROTOCOL *Instance\r
+ );\r
+\r
#endif\r