\r
\r
/**\r
- Destory the Dhcp6 service. The Dhcp6 service may be partly initialized,\r
+ Destroy the Dhcp6 service. The Dhcp6 service may be partly initialized,\r
or partly destroyed. If a resource is destroyed, it is marked as such in\r
case the destroy failed and being called again later.\r
\r
)\r
{\r
//\r
- // All children instances should have been already destoryed here.\r
+ // All children instances should have been already destroyed here.\r
//\r
ASSERT (Service->NumOfChild == 0);\r
\r
// Initialize the fields of the new Dhcp6 service.\r
//\r
Dhcp6Srv->Signature = DHCP6_SERVICE_SIGNATURE;\r
- Dhcp6Srv->InDestory = FALSE;\r
+ Dhcp6Srv->InDestroy = FALSE;\r
Dhcp6Srv->Controller = Controller;\r
Dhcp6Srv->Image = ImageHandle;\r
Dhcp6Srv->Xid = (0xffffff & NET_RANDOM (NetRandomInitSeed ()));\r
Dhcp6Ins->Signature = DHCP6_INSTANCE_SIGNATURE;\r
Dhcp6Ins->UdpSts = EFI_ALREADY_STARTED;\r
Dhcp6Ins->Service = Service;\r
- Dhcp6Ins->InDestory = FALSE;\r
+ Dhcp6Ins->InDestroy = FALSE;\r
Dhcp6Ins->MediaPresent = TRUE;\r
\r
CopyMem (\r
\r
Service = DHCP6_SERVICE_FROM_THIS (ServiceBinding);\r
\r
- if (Service->InDestory) {\r
+ if (Service->InDestroy) {\r
return EFI_SUCCESS;\r
}\r
\r
\r
if (NumberOfChildren == 0) {\r
//\r
- // Destory the service itself if no child instance left.\r
+ // Destroy the service itself if no child instance left.\r
//\r
- Service->InDestory = TRUE;\r
+ Service->InDestroy = TRUE;\r
\r
Status = gBS->UninstallProtocolInterface (\r
NicHandle,\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Service->InDestory = FALSE;\r
+ Service->InDestroy = FALSE;\r
goto ON_EXIT;\r
}\r
\r
\r
} else {\r
//\r
- // Destory all the children instances before destory the service.\r
+ // Destroy all the children instances before destroy the service.\r
//\r
while (!IsListEmpty (&Service->Child)) {\r
Instance = NET_LIST_HEAD (&Service->Child, DHCP6_INSTANCE, Link);\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- if (Instance->InDestory) {\r
+ if (Instance->InDestroy) {\r
return EFI_SUCCESS;\r
}\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
- Instance->InDestory = TRUE;\r
+ Instance->InDestroy = TRUE;\r
\r
Status = gBS->CloseProtocol (\r
Service->UdpIo->UdpHandle,\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Instance->InDestory = FALSE;\r
+ Instance->InDestroy = FALSE;\r
gBS->RestoreTPL (OldTpl);\r
return Status;\r
}\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Instance->InDestory = FALSE;\r
+ Instance->InDestroy = FALSE;\r
gBS->RestoreTPL (OldTpl);\r
return Status;\r
}\r