- //\r
- // Uninstall TCP servicebinding protocol\r
- //\r
- Status = gBS->UninstallMultipleProtocolInterfaces (\r
- NicHandle,\r
- &gEfiTcp4ServiceBindingProtocolGuid,\r
- Tcp4ServiceBinding,\r
- NULL\r
- );\r
- if (EFI_ERROR (Status)) {\r
-\r
- TCP4_DEBUG_ERROR (("Tcp4DriverBindingStop: Uninstall TCP service "\r
- "binding protocol failed with %r\n", Status));\r
- return Status;\r
- }\r
-\r
- //\r
- // Destroy the IpIO consumed by TCP driver\r
- //\r
- Status = IpIoDestroy (TcpServiceData->IpIo);\r
-\r
- //\r
- // Destroy the heartbeat timer.\r
- //\r
- Tcp4DestroyTimer ();\r
-\r
- //\r
- // Clear the variable.\r
- //\r
- TcpClearVariableData (TcpServiceData);\r
-\r
- //\r
- // Release the TCP service data\r
- //\r
- NetFreePool (TcpServiceData);\r
-\r