TxCb->Elapsed = Elapsed;\r
\r
//\r
- // Calculate the retransmission according to the the message type.\r
+ // Calculate the retransmission according to the message type.\r
//\r
switch (Packet->Dhcp6.Header.MessageType) {\r
case Dhcp6MsgSolicit:\r
//\r
// Unexpected message type.\r
//\r
+ FreePool(TxCb);\r
return EFI_DEVICE_ERROR;\r
}\r
\r
\r
ASSERT (Instance->Config != NULL);\r
//\r
- // If the reply was received in reponse to a solicit with rapid commit option,\r
+ // If the reply was received in response to a solicit with rapid commit option,\r
// request, renew or rebind message, the client updates the information it has\r
// recorded about IAs from the IA options contained in the reply message:\r
// 1. record the T1 and T2 times\r
// 2. add any new addresses in the IA\r
// 3. discard any addresses from the IA, that have a valid lifetime of 0\r
- // 4. update lifetimes for any addresses that alread recorded\r
+ // 4. update lifetimes for any addresses that already recorded\r
// 5. leave unchanged any information about addresses\r
//\r
// See details in the section-18.1.8 of rfc-3315.\r
}\r
\r
//\r
- // Create the Dhcp6 packet and initialize commone fields.\r
+ // Create the Dhcp6 packet and initialize common fields.\r
//\r
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);\r
if (Packet == NULL) {\r
}\r
\r
//\r
- // Create the Dhcp6 packet and initialize commone fields.\r
+ // Create the Dhcp6 packet and initialize common fields.\r
//\r
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);\r
if (Packet == NULL) {\r
ServerId = (EFI_DHCP6_DUID *) (Option + 2);\r
\r
//\r
- // Create the Dhcp6 packet and initialize commone fields.\r
+ // Create the Dhcp6 packet and initialize common fields.\r
//\r
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE);\r
if (Packet == NULL) {\r
ServerId = (EFI_DHCP6_DUID *) (Option + 2);\r
\r
//\r
- // Create the Dhcp6 packet and initialize commone fields.\r
+ // Create the Dhcp6 packet and initialize common fields.\r
//\r
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE);\r
if (Packet == NULL) {\r
}\r
\r
//\r
- // Create the Dhcp6 packet and initialize commone fields.\r
+ // Create the Dhcp6 packet and initialize common fields.\r
//\r
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);\r
if (Packet == NULL) {\r
}\r
\r
//\r
- // Create the Dhcp6 packet and initialize commone fields.\r
+ // Create the Dhcp6 packet and initialize common fields.\r
//\r
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);\r
if (Packet == NULL) {\r
Instance->UdpSts = EFI_SUCCESS;\r
\r
//\r
- // For async, signal the Ia event to inform Ia infomation update.\r
+ // For async, signal the Ia event to inform Ia information update.\r
//\r
if (Instance->Config->IaInfoEvent != NULL) {\r
gBS->SignalEvent (Instance->Config->IaInfoEvent);\r
\r
//\r
// Maybe this is a new round DHCP process due to some reason, such as NotOnLink\r
- // ReplyMsg for ConfirmMsg should triger new round to acquire new address. In that\r
+ // ReplyMsg for ConfirmMsg should trigger new round to acquire new address. In that\r
// case, clear old address.ValidLifetime and append to new address. Therefore, DHCP\r
// consumers can be notified to flush old address.\r
//\r
Dhcp6AppendCacheIa (Instance);\r
\r
//\r
- // For async, signal the Ia event to inform Ia infomation update.\r
+ // For async, signal the Ia event to inform Ia information update.\r
//\r
if (Instance->Config->IaInfoEvent != NULL) {\r
gBS->SignalEvent (Instance->Config->IaInfoEvent);\r
\r
//\r
// If the client does receives a valid reply message that includes a rapid\r
- // commit option since a solicit with rapid commit optioin sent before, select\r
+ // commit option since a solicit with rapid commit option sent before, select\r
// this reply message. Or else, process the advertise messages as normal.\r
// See details in the section-17.1.4 of rfc-3315.\r
//\r