NetworkPkg: Change use of EFI_D_* to DEBUG_*
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
5f289f3ae3
commit
c49ca4a29e
@ -492,7 +492,7 @@ ArpDriverBindingStop (
|
|||||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpDriverBindingStop: Open ArpSb failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "ArpDriverBindingStop: Open ArpSb failed, %r.\n", Status));
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -578,7 +578,7 @@ ArpServiceBindingCreateChild (
|
|||||||
//
|
//
|
||||||
Instance = AllocateZeroPool (sizeof(ARP_INSTANCE_DATA));
|
Instance = AllocateZeroPool (sizeof(ARP_INSTANCE_DATA));
|
||||||
if (Instance == NULL) {
|
if (Instance == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpSBCreateChild: Failed to allocate memory for Instance.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpSBCreateChild: Failed to allocate memory for Instance.\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -746,7 +746,7 @@ ArpServiceBindingDestroyChild (
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpSBDestroyChild: Failed to uninstall the arp protocol, %r.\n",
|
DEBUG ((DEBUG_ERROR, "ArpSBDestroyChild: Failed to uninstall the arp protocol, %r.\n",
|
||||||
Status));
|
Status));
|
||||||
|
|
||||||
Instance->InDestroy = FALSE;
|
Instance->InDestroy = FALSE;
|
||||||
@ -808,4 +808,3 @@ ArpDriverEntryPoint (
|
|||||||
&gArpComponentName2
|
&gArpComponentName2
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,7 +306,7 @@ RESTART_RECEIVE:
|
|||||||
|
|
||||||
DEBUG_CODE (
|
DEBUG_CODE (
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
DEBUG ((DEBUG_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
||||||
"failed, %r\n.", Status));
|
"failed, %r\n.", Status));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -360,7 +360,7 @@ ArpOnFrameSentDpc (
|
|||||||
|
|
||||||
DEBUG_CODE (
|
DEBUG_CODE (
|
||||||
if (EFI_ERROR (TxToken->Status)) {
|
if (EFI_ERROR (TxToken->Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
DEBUG ((DEBUG_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -952,7 +952,7 @@ ArpConfigureInstance (
|
|||||||
|
|
||||||
OldConfigData->StationAddress = AllocatePool (OldConfigData->SwAddressLength);
|
OldConfigData->StationAddress = AllocatePool (OldConfigData->SwAddressLength);
|
||||||
if (OldConfigData->StationAddress == NULL) {
|
if (OldConfigData->StationAddress == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpConfigInstance: AllocatePool for the StationAddress "
|
DEBUG ((DEBUG_ERROR, "ArpConfigInstance: AllocatePool for the StationAddress "
|
||||||
"failed.\n"));
|
"failed.\n"));
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -1044,7 +1044,7 @@ ArpSendFrame (
|
|||||||
//
|
//
|
||||||
TxToken = AllocatePool (sizeof(EFI_MANAGED_NETWORK_COMPLETION_TOKEN));
|
TxToken = AllocatePool (sizeof(EFI_MANAGED_NETWORK_COMPLETION_TOKEN));
|
||||||
if (TxToken == NULL) {
|
if (TxToken == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: Allocate memory for TxToken failed.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpSendFrame: Allocate memory for TxToken failed.\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1063,7 +1063,7 @@ ArpSendFrame (
|
|||||||
&TxToken->Event
|
&TxToken->Event
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: CreateEvent failed for TxToken->Event.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpSendFrame: CreateEvent failed for TxToken->Event.\n"));
|
||||||
goto CLEAN_EXIT;
|
goto CLEAN_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1072,7 +1072,7 @@ ArpSendFrame (
|
|||||||
//
|
//
|
||||||
TxData = AllocatePool (sizeof(EFI_MANAGED_NETWORK_TRANSMIT_DATA));
|
TxData = AllocatePool (sizeof(EFI_MANAGED_NETWORK_TRANSMIT_DATA));
|
||||||
if (TxData == NULL) {
|
if (TxData == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: Allocate memory for TxData failed.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpSendFrame: Allocate memory for TxData failed.\n"));
|
||||||
goto CLEAN_EXIT;
|
goto CLEAN_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1091,7 +1091,7 @@ ArpSendFrame (
|
|||||||
//
|
//
|
||||||
Packet = AllocatePool (TotalLength);
|
Packet = AllocatePool (TotalLength);
|
||||||
if (Packet == NULL) {
|
if (Packet == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: Allocate memory for Packet failed.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpSendFrame: Allocate memory for Packet failed.\n"));
|
||||||
ASSERT (Packet != NULL);
|
ASSERT (Packet != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1189,7 +1189,7 @@ ArpSendFrame (
|
|||||||
//
|
//
|
||||||
Status = ArpService->Mnp->Transmit (ArpService->Mnp, TxToken);
|
Status = ArpService->Mnp->Transmit (ArpService->Mnp, TxToken);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Mnp->Transmit failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "Mnp->Transmit failed, %r.\n", Status));
|
||||||
goto CLEAN_EXIT;
|
goto CLEAN_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1604,7 +1604,7 @@ ArpFindCacheEntry (
|
|||||||
//
|
//
|
||||||
FindData = AllocatePool (FoundCount * FoundEntryLength);
|
FindData = AllocatePool (FoundCount * FoundEntryLength);
|
||||||
if (FindData == NULL) {
|
if (FindData == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpFindCacheEntry: Failed to allocate memory.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpFindCacheEntry: Failed to allocate memory.\n"));
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto CLEAN_EXIT;
|
goto CLEAN_EXIT;
|
||||||
}
|
}
|
||||||
@ -1664,4 +1664,3 @@ CLEAN_EXIT:
|
|||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@ ArpAdd (
|
|||||||
CacheEntry = ArpAllocCacheEntry (Instance);
|
CacheEntry = ArpAllocCacheEntry (Instance);
|
||||||
|
|
||||||
if (CacheEntry == NULL) {
|
if (CacheEntry == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpAdd: Failed to allocate pool for CacheEntry.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpAdd: Failed to allocate pool for CacheEntry.\n"));
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto UNLOCK_EXIT;
|
goto UNLOCK_EXIT;
|
||||||
}
|
}
|
||||||
@ -590,7 +590,7 @@ ArpRequest (
|
|||||||
//
|
//
|
||||||
RequestContext = AllocatePool (sizeof(USER_REQUEST_CONTEXT));
|
RequestContext = AllocatePool (sizeof(USER_REQUEST_CONTEXT));
|
||||||
if (RequestContext == NULL) {
|
if (RequestContext == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpRequest: Allocate memory for RequestContext failed.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpRequest: Allocate memory for RequestContext failed.\n"));
|
||||||
|
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto UNLOCK_EXIT;
|
goto UNLOCK_EXIT;
|
||||||
@ -621,7 +621,7 @@ ArpRequest (
|
|||||||
//
|
//
|
||||||
CacheEntry = ArpAllocCacheEntry (Instance);
|
CacheEntry = ArpAllocCacheEntry (Instance);
|
||||||
if (CacheEntry == NULL) {
|
if (CacheEntry == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "ArpRequest: Allocate memory for CacheEntry failed.\n"));
|
DEBUG ((DEBUG_ERROR, "ArpRequest: Allocate memory for CacheEntry failed.\n"));
|
||||||
FreePool (RequestContext);
|
FreePool (RequestContext);
|
||||||
|
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
|
@ -231,7 +231,7 @@ HttpBootDhcp4ExtractUriInfo (
|
|||||||
//
|
//
|
||||||
Status = HttpBootCheckUriScheme (Private->BootFileUri);
|
Status = HttpBootCheckUriScheme (Private->BootFileUri);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpBootDhcp4ExtractUriInfo: %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpBootDhcp4ExtractUriInfo: %r.\n", Status));
|
||||||
if (Status == EFI_INVALID_PARAMETER) {
|
if (Status == EFI_INVALID_PARAMETER) {
|
||||||
AsciiPrint ("\n Error: Invalid URI address.\n");
|
AsciiPrint ("\n Error: Invalid URI address.\n");
|
||||||
} else if (Status == EFI_ACCESS_DENIED) {
|
} else if (Status == EFI_ACCESS_DENIED) {
|
||||||
@ -371,7 +371,7 @@ HttpBootDhcp6ExtractUriInfo (
|
|||||||
//
|
//
|
||||||
Status = HttpBootCheckUriScheme (Private->BootFileUri);
|
Status = HttpBootCheckUriScheme (Private->BootFileUri);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpBootDhcp6ExtractUriInfo: %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpBootDhcp6ExtractUriInfo: %r.\n", Status));
|
||||||
if (Status == EFI_INVALID_PARAMETER) {
|
if (Status == EFI_INVALID_PARAMETER) {
|
||||||
AsciiPrint ("\n Error: Invalid URI address.\n");
|
AsciiPrint ("\n Error: Invalid URI address.\n");
|
||||||
} else if (Status == EFI_ACCESS_DENIED) {
|
} else if (Status == EFI_ACCESS_DENIED) {
|
||||||
@ -1309,4 +1309,3 @@ ERROR_1:
|
|||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -489,7 +489,7 @@ HttpBootFormCallback (
|
|||||||
|
|
||||||
if (Status == EFI_INVALID_PARAMETER) {
|
if (Status == EFI_INVALID_PARAMETER) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
||||||
|
|
||||||
CreatePopUp (
|
CreatePopUp (
|
||||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||||
@ -500,7 +500,7 @@ HttpBootFormCallback (
|
|||||||
);
|
);
|
||||||
} else if (Status == EFI_ACCESS_DENIED) {
|
} else if (Status == EFI_ACCESS_DENIED) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
||||||
|
|
||||||
CreatePopUp (
|
CreatePopUp (
|
||||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||||
|
@ -528,7 +528,7 @@ HttpBootCheckUriScheme (
|
|||||||
// Return EFI_INVALID_PARAMETER if the URI is not HTTP or HTTPS.
|
// Return EFI_INVALID_PARAMETER if the URI is not HTTP or HTTPS.
|
||||||
//
|
//
|
||||||
if ((AsciiStrnCmp (Uri, "http://", 7) != 0) && (AsciiStrnCmp (Uri, "https://", 8) != 0)) {
|
if ((AsciiStrnCmp (Uri, "http://", 7) != 0) && (AsciiStrnCmp (Uri, "https://", 8) != 0)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpBootCheckUriScheme: Invalid Uri.\n"));
|
DEBUG ((DEBUG_ERROR, "HttpBootCheckUriScheme: Invalid Uri.\n"));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -536,7 +536,7 @@ HttpBootCheckUriScheme (
|
|||||||
// HTTP is disabled, return EFI_ACCESS_DENIED if the URI is HTTP.
|
// HTTP is disabled, return EFI_ACCESS_DENIED if the URI is HTTP.
|
||||||
//
|
//
|
||||||
if (!PcdGetBool (PcdAllowHttpConnections) && (AsciiStrnCmp (Uri, "http://", 7) == 0)) {
|
if (!PcdGetBool (PcdAllowHttpConnections) && (AsciiStrnCmp (Uri, "http://", 7) == 0)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpBootCheckUriScheme: HTTP is disabled.\n"));
|
DEBUG ((DEBUG_ERROR, "HttpBootCheckUriScheme: HTTP is disabled.\n"));
|
||||||
return EFI_ACCESS_DENIED;
|
return EFI_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -729,7 +729,7 @@ HttpBootRegisterRamDisk (
|
|||||||
|
|
||||||
Status = gBS->LocateProtocol (&gEfiRamDiskProtocolGuid, NULL, (VOID**) &RamDisk);
|
Status = gBS->LocateProtocol (&gEfiRamDiskProtocolGuid, NULL, (VOID**) &RamDisk);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HTTP Boot: Couldn't find the RAM Disk protocol - %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "HTTP Boot: Couldn't find the RAM Disk protocol - %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -749,7 +749,7 @@ HttpBootRegisterRamDisk (
|
|||||||
&DevicePath
|
&DevicePath
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HTTP Boot: Failed to register RAM Disk - %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "HTTP Boot: Failed to register RAM Disk - %r\n", Status));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -362,7 +362,7 @@ EfiHttpRequest (
|
|||||||
//
|
//
|
||||||
if (!PcdGetBool (PcdAllowHttpConnections) && !(HttpInstance->UseHttps)) {
|
if (!PcdGetBool (PcdAllowHttpConnections) && !(HttpInstance->UseHttps)) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "EfiHttpRequest: HTTP is disabled.\n"));
|
DEBUG ((DEBUG_ERROR, "EfiHttpRequest: HTTP is disabled.\n"));
|
||||||
|
|
||||||
return EFI_ACCESS_DENIED;
|
return EFI_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
@ -531,7 +531,7 @@ EfiHttpRequest (
|
|||||||
|
|
||||||
FreePool (HostNameStr);
|
FreePool (HostNameStr);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Error: Could not retrieve the host address from DNS server.\n"));
|
DEBUG ((DEBUG_ERROR, "Error: Could not retrieve the host address from DNS server.\n"));
|
||||||
goto Error1;
|
goto Error1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ HttpTcpReceiveNotifyDpc (
|
|||||||
Wrap->TcpWrap.Rx6Token.CompletionToken.Event = NULL;
|
Wrap->TcpWrap.Rx6Token.CompletionToken.Event = NULL;
|
||||||
|
|
||||||
if (EFI_ERROR (Wrap->TcpWrap.Rx6Token.CompletionToken.Status)) {
|
if (EFI_ERROR (Wrap->TcpWrap.Rx6Token.CompletionToken.Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx6Token.CompletionToken.Status));
|
DEBUG ((DEBUG_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx6Token.CompletionToken.Status));
|
||||||
Wrap->HttpToken->Status = Wrap->TcpWrap.Rx6Token.CompletionToken.Status;
|
Wrap->HttpToken->Status = Wrap->TcpWrap.Rx6Token.CompletionToken.Status;
|
||||||
gBS->SignalEvent (Wrap->HttpToken->Event);
|
gBS->SignalEvent (Wrap->HttpToken->Event);
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ HttpTcpReceiveNotifyDpc (
|
|||||||
Wrap->TcpWrap.Rx4Token.CompletionToken.Event = NULL;
|
Wrap->TcpWrap.Rx4Token.CompletionToken.Event = NULL;
|
||||||
|
|
||||||
if (EFI_ERROR (Wrap->TcpWrap.Rx4Token.CompletionToken.Status)) {
|
if (EFI_ERROR (Wrap->TcpWrap.Rx4Token.CompletionToken.Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx4Token.CompletionToken.Status));
|
DEBUG ((DEBUG_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx4Token.CompletionToken.Status));
|
||||||
Wrap->HttpToken->Status = Wrap->TcpWrap.Rx4Token.CompletionToken.Status;
|
Wrap->HttpToken->Status = Wrap->TcpWrap.Rx4Token.CompletionToken.Status;
|
||||||
gBS->SignalEvent (Wrap->HttpToken->Event);
|
gBS->SignalEvent (Wrap->HttpToken->Event);
|
||||||
|
|
||||||
@ -968,7 +968,7 @@ HttpCreateConnection (
|
|||||||
Status = HttpInstance->Tcp4->Connect (HttpInstance->Tcp4, &HttpInstance->Tcp4ConnToken);
|
Status = HttpInstance->Tcp4->Connect (HttpInstance->Tcp4, &HttpInstance->Tcp4ConnToken);
|
||||||
HttpNotify (HttpEventConnectTcp, Status);
|
HttpNotify (HttpEventConnectTcp, Status);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpCreateConnection: Tcp4->Connect() = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpCreateConnection: Tcp4->Connect() = %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -984,7 +984,7 @@ HttpCreateConnection (
|
|||||||
Status = HttpInstance->Tcp6->Connect (HttpInstance->Tcp6, &HttpInstance->Tcp6ConnToken);
|
Status = HttpInstance->Tcp6->Connect (HttpInstance->Tcp6, &HttpInstance->Tcp6ConnToken);
|
||||||
HttpNotify (HttpEventConnectTcp, Status);
|
HttpNotify (HttpEventConnectTcp, Status);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpCreateConnection: Tcp6->Connect() = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpCreateConnection: Tcp6->Connect() = %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1109,7 +1109,7 @@ HttpConfigureTcp4 (
|
|||||||
|
|
||||||
Status = HttpInstance->Tcp4->Configure (HttpInstance->Tcp4, Tcp4CfgData);
|
Status = HttpInstance->Tcp4->Configure (HttpInstance->Tcp4, Tcp4CfgData);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpConfigureTcp4 - %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpConfigureTcp4 - %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1179,7 +1179,7 @@ HttpConfigureTcp6 (
|
|||||||
|
|
||||||
Status = HttpInstance->Tcp6->Configure (HttpInstance->Tcp6, Tcp6CfgData);
|
Status = HttpInstance->Tcp6->Configure (HttpInstance->Tcp6, Tcp6CfgData);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "HttpConfigureTcp6 - %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "HttpConfigureTcp6 - %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1232,7 +1232,7 @@ HttpConnectTcp4 (
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
if (EFI_ERROR(Status)){
|
if (EFI_ERROR(Status)){
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp4 GetModeData fail - %x\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp4 GetModeData fail - %x\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1244,7 +1244,7 @@ HttpConnectTcp4 (
|
|||||||
|
|
||||||
Status = HttpCreateConnection (HttpInstance);
|
Status = HttpCreateConnection (HttpInstance);
|
||||||
if (EFI_ERROR(Status)){
|
if (EFI_ERROR(Status)){
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp4 Connection fail - %x\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp4 Connection fail - %x\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1325,7 +1325,7 @@ HttpConnectTcp6 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR(Status)){
|
if (EFI_ERROR(Status)){
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp6 GetModeData fail - %x\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp6 GetModeData fail - %x\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1337,7 +1337,7 @@ HttpConnectTcp6 (
|
|||||||
|
|
||||||
Status = HttpCreateConnection (HttpInstance);
|
Status = HttpCreateConnection (HttpInstance);
|
||||||
if (EFI_ERROR(Status)){
|
if (EFI_ERROR(Status)){
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp6 Connection fail - %x\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp6 Connection fail - %x\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1587,7 +1587,7 @@ HttpTransmitTcp (
|
|||||||
Wrap->TcpWrap.IsTxDone = FALSE;
|
Wrap->TcpWrap.IsTxDone = FALSE;
|
||||||
Status = Tcp4->Transmit (Tcp4, Tx4Token);
|
Status = Tcp4->Transmit (Tcp4, Tx4Token);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Transmit failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Transmit failed: %r\n", Status));
|
||||||
goto ON_ERROR;
|
goto ON_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1610,7 +1610,7 @@ HttpTransmitTcp (
|
|||||||
Wrap->TcpWrap.IsTxDone = FALSE;
|
Wrap->TcpWrap.IsTxDone = FALSE;
|
||||||
Status = Tcp6->Transmit (Tcp6, Tx6Token);
|
Status = Tcp6->Transmit (Tcp6, Tx6Token);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Transmit failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Transmit failed: %r\n", Status));
|
||||||
goto ON_ERROR;
|
goto ON_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1875,7 +1875,7 @@ HttpTcpReceiveHeader (
|
|||||||
Rx4Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN;
|
Rx4Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN;
|
||||||
Status = Tcp4->Receive (Tcp4, Rx4Token);
|
Status = Tcp4->Receive (Tcp4, Rx4Token);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp4 receive failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1907,7 +1907,7 @@ HttpTcpReceiveHeader (
|
|||||||
|
|
||||||
Status = HttpsReceive (HttpInstance, &Fragment, Timeout);
|
Status = HttpsReceive (HttpInstance, &Fragment, Timeout);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp4 receive failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1975,7 +1975,7 @@ HttpTcpReceiveHeader (
|
|||||||
Rx6Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN;
|
Rx6Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN;
|
||||||
Status = Tcp6->Receive (Tcp6, Rx6Token);
|
Status = Tcp6->Receive (Tcp6, Rx6Token);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp6 receive failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2007,7 +2007,7 @@ HttpTcpReceiveHeader (
|
|||||||
|
|
||||||
Status = HttpsReceive (HttpInstance, &Fragment, Timeout);
|
Status = HttpsReceive (HttpInstance, &Fragment, Timeout);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp6 receive failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2111,7 +2111,7 @@ HttpTcpReceiveBody (
|
|||||||
|
|
||||||
Status = Tcp6->Receive (Tcp6, Rx6Token);
|
Status = Tcp6->Receive (Tcp6, Rx6Token);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp6 receive failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -2123,7 +2123,7 @@ HttpTcpReceiveBody (
|
|||||||
Rx4Token->CompletionToken.Status = EFI_NOT_READY;
|
Rx4Token->CompletionToken.Status = EFI_NOT_READY;
|
||||||
Status = Tcp4->Receive (Tcp4, Rx4Token);
|
Status = Tcp4->Receive (Tcp4, Rx4Token);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Tcp4 receive failed: %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -680,7 +680,7 @@ TlsConfigureSession (
|
|||||||
//
|
//
|
||||||
Status = TlsConfigCipherList (HttpInstance);
|
Status = TlsConfigCipherList (HttpInstance);
|
||||||
if (EFI_ERROR (Status) && Status != EFI_NOT_FOUND) {
|
if (EFI_ERROR (Status) && Status != EFI_NOT_FOUND) {
|
||||||
DEBUG ((EFI_D_ERROR, "TlsConfigCipherList: return %r error.\n", Status));
|
DEBUG ((DEBUG_ERROR, "TlsConfigCipherList: return %r error.\n", Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -689,7 +689,7 @@ TlsConfigureSession (
|
|||||||
//
|
//
|
||||||
Status = TlsConfigCertificate (HttpInstance);
|
Status = TlsConfigCertificate (HttpInstance);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "TLS Certificate Config Error!\n"));
|
DEBUG ((DEBUG_ERROR, "TLS Certificate Config Error!\n"));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1874,7 +1874,7 @@ HttpsReceive (
|
|||||||
FreePool (GetSessionDataBuffer);
|
FreePool (GetSessionDataBuffer);
|
||||||
|
|
||||||
if(HttpInstance->TlsSessionState == EfiTlsSessionError) {
|
if(HttpInstance->TlsSessionState == EfiTlsSessionError) {
|
||||||
DEBUG ((EFI_D_ERROR, "TLS Session State Error!\n"));
|
DEBUG ((DEBUG_ERROR, "TLS Session State Error!\n"));
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1887,4 +1887,3 @@ HttpsReceive (
|
|||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ IScsiCreateConnection (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "The configuration of Target address or DNS server address is invalid!\n"));
|
DEBUG ((DEBUG_ERROR, "The configuration of Target address or DNS server address is invalid!\n"));
|
||||||
FreePool (Conn);
|
FreePool (Conn);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -591,7 +591,7 @@ Ip6DriverBindingStart (
|
|||||||
0,
|
0,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
DEBUG ((EFI_D_WARN, "Ip6DriverBindingStart: Clean the invalid ManualAddress configuration.\n"));
|
DEBUG ((DEBUG_WARN, "Ip6DriverBindingStart: Clean the invalid ManualAddress configuration.\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -616,7 +616,7 @@ Ip6DriverBindingStart (
|
|||||||
0,
|
0,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
DEBUG ((EFI_D_WARN, "Ip6DriverBindingStart: Clean the invalid Gateway configuration.\n"));
|
DEBUG ((DEBUG_WARN, "Ip6DriverBindingStart: Clean the invalid Gateway configuration.\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ MnpAddFreeNbuf (
|
|||||||
for (Index = 0; Index < Count; Index++) {
|
for (Index = 0; Index < Count; Index++) {
|
||||||
Nbuf = NetbufAlloc (MnpDeviceData->BufferLength + MnpDeviceData->PaddingSize);
|
Nbuf = NetbufAlloc (MnpDeviceData->BufferLength + MnpDeviceData->PaddingSize);
|
||||||
if (Nbuf == NULL) {
|
if (Nbuf == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpAddFreeNbuf: NetBufAlloc failed.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpAddFreeNbuf: NetBufAlloc failed.\n"));
|
||||||
|
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
break;
|
break;
|
||||||
@ -121,7 +121,7 @@ MnpAllocNbuf (
|
|||||||
if (FreeNbufQue->BufNum == 0) {
|
if (FreeNbufQue->BufNum == 0) {
|
||||||
if ((MnpDeviceData->NbufCnt + MNP_NET_BUFFER_INCREASEMENT) > MNP_MAX_NET_BUFFER_NUM) {
|
if ((MnpDeviceData->NbufCnt + MNP_NET_BUFFER_INCREASEMENT) > MNP_MAX_NET_BUFFER_NUM) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpAllocNbuf: The maximum NET_BUF size is reached for MNP driver instance %p.\n",
|
"MnpAllocNbuf: The maximum NET_BUF size is reached for MNP driver instance %p.\n",
|
||||||
MnpDeviceData)
|
MnpDeviceData)
|
||||||
);
|
);
|
||||||
@ -133,7 +133,7 @@ MnpAllocNbuf (
|
|||||||
Status = MnpAddFreeNbuf (MnpDeviceData, MNP_NET_BUFFER_INCREASEMENT);
|
Status = MnpAddFreeNbuf (MnpDeviceData, MNP_NET_BUFFER_INCREASEMENT);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpAllocNbuf: Failed to add NET_BUFs into the FreeNbufQue, %r.\n",
|
"MnpAllocNbuf: Failed to add NET_BUFs into the FreeNbufQue, %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -230,12 +230,12 @@ MnpAddFreeTxBuf (
|
|||||||
for (Index = 0; Index < Count; Index++) {
|
for (Index = 0; Index < Count; Index++) {
|
||||||
TxBufWrap = (MNP_TX_BUF_WRAP*) AllocatePool (OFFSET_OF (MNP_TX_BUF_WRAP, TxBuf) + MnpDeviceData->BufferLength );
|
TxBufWrap = (MNP_TX_BUF_WRAP*) AllocatePool (OFFSET_OF (MNP_TX_BUF_WRAP, TxBuf) + MnpDeviceData->BufferLength );
|
||||||
if (TxBufWrap == NULL) {
|
if (TxBufWrap == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpAddFreeTxBuf: TxBuf Alloc failed.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpAddFreeTxBuf: TxBuf Alloc failed.\n"));
|
||||||
|
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DEBUG ((EFI_D_INFO, "MnpAddFreeTxBuf: Add TxBufWrap %p, TxBuf %p\n", TxBufWrap, TxBufWrap->TxBuf));
|
DEBUG ((DEBUG_INFO, "MnpAddFreeTxBuf: Add TxBufWrap %p, TxBuf %p\n", TxBufWrap, TxBufWrap->TxBuf));
|
||||||
TxBufWrap->Signature = MNP_TX_BUF_WRAP_SIGNATURE;
|
TxBufWrap->Signature = MNP_TX_BUF_WRAP_SIGNATURE;
|
||||||
TxBufWrap->InUse = FALSE;
|
TxBufWrap->InUse = FALSE;
|
||||||
InsertTailList (&MnpDeviceData->FreeTxBufList, &TxBufWrap->WrapEntry);
|
InsertTailList (&MnpDeviceData->FreeTxBufList, &TxBufWrap->WrapEntry);
|
||||||
@ -288,7 +288,7 @@ MnpAllocTxBuf (
|
|||||||
if (IsListEmpty (&MnpDeviceData->FreeTxBufList)) {
|
if (IsListEmpty (&MnpDeviceData->FreeTxBufList)) {
|
||||||
if ((MnpDeviceData->TxBufCount + MNP_TX_BUFFER_INCREASEMENT) > MNP_MAX_TX_BUFFER_NUM) {
|
if ((MnpDeviceData->TxBufCount + MNP_TX_BUFFER_INCREASEMENT) > MNP_MAX_TX_BUFFER_NUM) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpAllocTxBuf: The maximum TxBuf size is reached for MNP driver instance %p.\n",
|
"MnpAllocTxBuf: The maximum TxBuf size is reached for MNP driver instance %p.\n",
|
||||||
MnpDeviceData)
|
MnpDeviceData)
|
||||||
);
|
);
|
||||||
@ -300,7 +300,7 @@ MnpAllocTxBuf (
|
|||||||
Status = MnpAddFreeTxBuf (MnpDeviceData, MNP_TX_BUFFER_INCREASEMENT);
|
Status = MnpAddFreeTxBuf (MnpDeviceData, MNP_TX_BUFFER_INCREASEMENT);
|
||||||
if (IsListEmpty (&MnpDeviceData->FreeTxBufList)) {
|
if (IsListEmpty (&MnpDeviceData->FreeTxBufList)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpAllocNbuf: Failed to add TxBuf into the FreeTxBufList, %r.\n",
|
"MnpAllocNbuf: Failed to add TxBuf into the FreeTxBufList, %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -349,7 +349,7 @@ MnpFreeTxBuf (
|
|||||||
TxBufWrap = NET_LIST_USER_STRUCT (TxBuf, MNP_TX_BUF_WRAP, TxBuf);
|
TxBufWrap = NET_LIST_USER_STRUCT (TxBuf, MNP_TX_BUF_WRAP, TxBuf);
|
||||||
if (TxBufWrap->Signature != MNP_TX_BUF_WRAP_SIGNATURE) {
|
if (TxBufWrap->Signature != MNP_TX_BUF_WRAP_SIGNATURE) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpFreeTxBuf: Signature check failed in MnpFreeTxBuf.\n")
|
"MnpFreeTxBuf: Signature check failed in MnpFreeTxBuf.\n")
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
@ -357,7 +357,7 @@ MnpFreeTxBuf (
|
|||||||
|
|
||||||
if (!TxBufWrap->InUse) {
|
if (!TxBufWrap->InUse) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"MnpFreeTxBuf: Duplicated recycle report from SNP.\n")
|
"MnpFreeTxBuf: Duplicated recycle report from SNP.\n")
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
@ -491,7 +491,7 @@ MnpInitializeDeviceData (
|
|||||||
NetbufQueInit (&MnpDeviceData->FreeNbufQue);
|
NetbufQueInit (&MnpDeviceData->FreeNbufQue);
|
||||||
Status = MnpAddFreeNbuf (MnpDeviceData, MNP_INIT_NET_BUFFER_NUM);
|
Status = MnpAddFreeNbuf (MnpDeviceData, MNP_INIT_NET_BUFFER_NUM);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: MnpAddFreeNbuf failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: MnpAddFreeNbuf failed, %r.\n", Status));
|
||||||
|
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
@ -524,7 +524,7 @@ MnpInitializeDeviceData (
|
|||||||
&MnpDeviceData->PollTimer
|
&MnpDeviceData->PollTimer
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: CreateEvent for poll timer failed.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: CreateEvent for poll timer failed.\n"));
|
||||||
|
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
@ -540,7 +540,7 @@ MnpInitializeDeviceData (
|
|||||||
&MnpDeviceData->TimeoutCheckTimer
|
&MnpDeviceData->TimeoutCheckTimer
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: CreateEvent for packet timeout check failed.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: CreateEvent for packet timeout check failed.\n"));
|
||||||
|
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
@ -556,7 +556,7 @@ MnpInitializeDeviceData (
|
|||||||
&MnpDeviceData->MediaDetectTimer
|
&MnpDeviceData->MediaDetectTimer
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: CreateEvent for media detection failed.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: CreateEvent for media detection failed.\n"));
|
||||||
|
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
@ -1222,7 +1222,7 @@ MnpStart (
|
|||||||
//
|
//
|
||||||
Status = MnpStartSnp (MnpDeviceData->Snp);
|
Status = MnpStartSnp (MnpDeviceData->Snp);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpStart: MnpStartSnp failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "MnpStart: MnpStartSnp failed, %r.\n", Status));
|
||||||
|
|
||||||
goto ErrorExit;
|
goto ErrorExit;
|
||||||
}
|
}
|
||||||
@ -1237,7 +1237,7 @@ MnpStart (
|
|||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpStart, gBS->SetTimer for TimeoutCheckTimer %r.\n",
|
"MnpStart, gBS->SetTimer for TimeoutCheckTimer %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -1255,7 +1255,7 @@ MnpStart (
|
|||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpStart, gBS->SetTimer for MediaDetectTimer %r.\n",
|
"MnpStart, gBS->SetTimer for MediaDetectTimer %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -1274,7 +1274,7 @@ MnpStart (
|
|||||||
|
|
||||||
Status = gBS->SetTimer (MnpDeviceData->PollTimer, TimerOpType, MNP_SYS_POLL_INTERVAL);
|
Status = gBS->SetTimer (MnpDeviceData->PollTimer, TimerOpType, MNP_SYS_POLL_INTERVAL);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpStart: gBS->SetTimer for PollTimer failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "MnpStart: gBS->SetTimer for PollTimer failed, %r.\n", Status));
|
||||||
|
|
||||||
goto ErrorExit;
|
goto ErrorExit;
|
||||||
}
|
}
|
||||||
@ -1610,7 +1610,7 @@ MnpConfigReceiveFilters (
|
|||||||
MCastFilterCnt = MnpDeviceData->GroupAddressCount;
|
MCastFilterCnt = MnpDeviceData->GroupAddressCount;
|
||||||
MCastFilter = AllocatePool (sizeof (EFI_MAC_ADDRESS) * MCastFilterCnt);
|
MCastFilter = AllocatePool (sizeof (EFI_MAC_ADDRESS) * MCastFilterCnt);
|
||||||
if (MCastFilter == NULL) {
|
if (MCastFilter == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpConfigReceiveFilters: Failed to allocate memory resource for MCastFilter.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpConfigReceiveFilters: Failed to allocate memory resource for MCastFilter.\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -1672,7 +1672,7 @@ MnpConfigReceiveFilters (
|
|||||||
DEBUG_CODE (
|
DEBUG_CODE (
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpConfigReceiveFilters: Snp->ReceiveFilters failed, %r.\n",
|
"MnpConfigReceiveFilters: Snp->ReceiveFilters failed, %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -1729,7 +1729,7 @@ MnpGroupOpAddCtrlBlk (
|
|||||||
GroupAddress = AllocatePool (sizeof (MNP_GROUP_ADDRESS));
|
GroupAddress = AllocatePool (sizeof (MNP_GROUP_ADDRESS));
|
||||||
if (GroupAddress == NULL) {
|
if (GroupAddress == NULL) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "MnpGroupOpFormCtrlBlk: Failed to allocate memory resource.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpGroupOpFormCtrlBlk: Failed to allocate memory resource.\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -1861,7 +1861,7 @@ MnpGroupOp (
|
|||||||
//
|
//
|
||||||
NewCtrlBlk = AllocatePool (sizeof (MNP_GROUP_CONTROL_BLOCK));
|
NewCtrlBlk = AllocatePool (sizeof (MNP_GROUP_CONTROL_BLOCK));
|
||||||
if (NewCtrlBlk == NULL) {
|
if (NewCtrlBlk == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpGroupOp: Failed to allocate memory resource.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpGroupOp: Failed to allocate memory resource.\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
@ -164,14 +164,14 @@ MnpDriverBindingStart (
|
|||||||
//
|
//
|
||||||
MnpDeviceData = AllocateZeroPool (sizeof (MNP_DEVICE_DATA));
|
MnpDeviceData = AllocateZeroPool (sizeof (MNP_DEVICE_DATA));
|
||||||
if (MnpDeviceData == NULL) {
|
if (MnpDeviceData == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpDriverBindingStart(): Failed to allocate the Mnp Device Data.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpDriverBindingStart(): Failed to allocate the Mnp Device Data.\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = MnpInitializeDeviceData (MnpDeviceData, This->DriverBindingHandle, ControllerHandle);
|
Status = MnpInitializeDeviceData (MnpDeviceData, This->DriverBindingHandle, ControllerHandle);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpDriverBindingStart: MnpInitializeDeviceData failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "MnpDriverBindingStart: MnpInitializeDeviceData failed, %r.\n", Status));
|
||||||
|
|
||||||
FreePool (MnpDeviceData);
|
FreePool (MnpDeviceData);
|
||||||
return Status;
|
return Status;
|
||||||
@ -342,7 +342,7 @@ MnpDriverBindingStop (
|
|||||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpDriverBindingStop: try to stop unknown Controller.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpDriverBindingStop: try to stop unknown Controller.\n"));
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -468,7 +468,7 @@ MnpServiceBindingCreateChild (
|
|||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpServiceBindingCreateChild: Failed to install the MNP protocol, %r.\n",
|
"MnpServiceBindingCreateChild: Failed to install the MNP protocol, %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -614,7 +614,7 @@ MnpServiceBindingDestroyChild (
|
|||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"MnpServiceBindingDestroyChild: Failed to uninstall the ManagedNetwork protocol, %r.\n",
|
"MnpServiceBindingDestroyChild: Failed to uninstall the ManagedNetwork protocol, %r.\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
|
@ -40,7 +40,7 @@ MnpIsValidTxToken (
|
|||||||
// The token is invalid if the Event is NULL, or the TxData is NULL, or
|
// The token is invalid if the Event is NULL, or the TxData is NULL, or
|
||||||
// the fragment count is zero.
|
// the fragment count is zero.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxToken: Invalid Token.\n"));
|
DEBUG ((DEBUG_WARN, "MnpIsValidTxToken: Invalid Token.\n"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ MnpIsValidTxToken (
|
|||||||
// The token is invalid if the HeaderLength isn't zero while the DestinationAddress
|
// The token is invalid if the HeaderLength isn't zero while the DestinationAddress
|
||||||
// is NULL (The destination address is already put into the packet).
|
// is NULL (The destination address is already put into the packet).
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxToken: DestinationAddress isn't NULL, HeaderLength must be 0.\n"));
|
DEBUG ((DEBUG_WARN, "MnpIsValidTxToken: DestinationAddress isn't NULL, HeaderLength must be 0.\n"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ MnpIsValidTxToken (
|
|||||||
//
|
//
|
||||||
// The token is invalid if any FragmentLength is zero or any FragmentBuffer is NULL.
|
// The token is invalid if any FragmentLength is zero or any FragmentBuffer is NULL.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxToken: Invalid FragmentLength or FragmentBuffer.\n"));
|
DEBUG ((DEBUG_WARN, "MnpIsValidTxToken: Invalid FragmentLength or FragmentBuffer.\n"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ MnpIsValidTxToken (
|
|||||||
// The length calculated from the fragment information doesn't equal to the
|
// The length calculated from the fragment information doesn't equal to the
|
||||||
// sum of the DataLength and the HeaderLength.
|
// sum of the DataLength and the HeaderLength.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxData: Invalid Datalength compared with the sum of fragment length.\n"));
|
DEBUG ((DEBUG_WARN, "MnpIsValidTxData: Invalid Datalength compared with the sum of fragment length.\n"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ MnpIsValidTxToken (
|
|||||||
//
|
//
|
||||||
// The total length is larger than the MTU.
|
// The total length is larger than the MTU.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxData: TxData->DataLength exceeds Mtu.\n"));
|
DEBUG ((DEBUG_WARN, "MnpIsValidTxData: TxData->DataLength exceeds Mtu.\n"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ MnpSyncSendPacket (
|
|||||||
//
|
//
|
||||||
// Media not present, skip packet transmit and report EFI_NO_MEDIA
|
// Media not present, skip packet transmit and report EFI_NO_MEDIA
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpSyncSendPacket: No network cable detected.\n"));
|
DEBUG ((DEBUG_WARN, "MnpSyncSendPacket: No network cable detected.\n"));
|
||||||
Token->Status = EFI_NO_MEDIA;
|
Token->Status = EFI_NO_MEDIA;
|
||||||
goto SIGNAL_TOKEN;
|
goto SIGNAL_TOKEN;
|
||||||
}
|
}
|
||||||
@ -338,7 +338,7 @@ MnpInstanceDeliverPacket (
|
|||||||
//
|
//
|
||||||
DupNbuf = MnpAllocNbuf (MnpDeviceData);
|
DupNbuf = MnpAllocNbuf (MnpDeviceData);
|
||||||
if (DupNbuf == NULL) {
|
if (DupNbuf == NULL) {
|
||||||
DEBUG ((EFI_D_WARN, "MnpDeliverPacket: Failed to allocate a free Nbuf.\n"));
|
DEBUG ((DEBUG_WARN, "MnpDeliverPacket: Failed to allocate a free Nbuf.\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -488,7 +488,7 @@ MnpQueueRcvdPacket (
|
|||||||
//
|
//
|
||||||
if (Instance->RcvdPacketQueueSize == MNP_MAX_RCVD_PACKET_QUE_SIZE) {
|
if (Instance->RcvdPacketQueueSize == MNP_MAX_RCVD_PACKET_QUE_SIZE) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_WARN, "MnpQueueRcvdPacket: Drop one packet bcz queue size limit reached.\n"));
|
DEBUG ((DEBUG_WARN, "MnpQueueRcvdPacket: Drop one packet bcz queue size limit reached.\n"));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get the oldest packet.
|
// Get the oldest packet.
|
||||||
@ -724,7 +724,7 @@ MnpWrapRxData (
|
|||||||
//
|
//
|
||||||
RxDataWrap = AllocatePool (sizeof (MNP_RXDATA_WRAP));
|
RxDataWrap = AllocatePool (sizeof (MNP_RXDATA_WRAP));
|
||||||
if (RxDataWrap == NULL) {
|
if (RxDataWrap == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpDispatchPacket: Failed to allocate a MNP_RXDATA_WRAP.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpDispatchPacket: Failed to allocate a MNP_RXDATA_WRAP.\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -746,7 +746,7 @@ MnpWrapRxData (
|
|||||||
&RxDataWrap->RxData.RecycleEvent
|
&RxDataWrap->RxData.RecycleEvent
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpDispatchPacket: gBS->CreateEvent failed, %r.\n", Status));
|
DEBUG ((DEBUG_ERROR, "MnpDispatchPacket: gBS->CreateEvent failed, %r.\n", Status));
|
||||||
|
|
||||||
FreePool (RxDataWrap);
|
FreePool (RxDataWrap);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -900,7 +900,7 @@ MnpReceivePacket (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG_CODE (
|
DEBUG_CODE (
|
||||||
if (Status != EFI_NOT_READY) {
|
if (Status != EFI_NOT_READY) {
|
||||||
DEBUG ((EFI_D_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
|
DEBUG ((DEBUG_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -912,7 +912,7 @@ MnpReceivePacket (
|
|||||||
//
|
//
|
||||||
if ((HeaderSize != Snp->Mode->MediaHeaderSize) || (BufLen < HeaderSize)) {
|
if ((HeaderSize != Snp->Mode->MediaHeaderSize) || (BufLen < HeaderSize)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"MnpReceivePacket: Size error, HL:TL = %d:%d.\n",
|
"MnpReceivePacket: Size error, HL:TL = %d:%d.\n",
|
||||||
HeaderSize,
|
HeaderSize,
|
||||||
BufLen)
|
BufLen)
|
||||||
@ -970,7 +970,7 @@ MnpReceivePacket (
|
|||||||
Nbuf = MnpAllocNbuf (MnpDeviceData);
|
Nbuf = MnpAllocNbuf (MnpDeviceData);
|
||||||
MnpDeviceData->RxNbufCache = Nbuf;
|
MnpDeviceData->RxNbufCache = Nbuf;
|
||||||
if (Nbuf == NULL) {
|
if (Nbuf == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "MnpReceivePacket: Alloc packet for receiving cache failed.\n"));
|
DEBUG ((DEBUG_ERROR, "MnpReceivePacket: Alloc packet for receiving cache failed.\n"));
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1059,7 +1059,7 @@ MnpCheckPacketTimeout (
|
|||||||
//
|
//
|
||||||
// Drop the timeout packet.
|
// Drop the timeout packet.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "MnpCheckPacketTimeout: Received packet timeout.\n"));
|
DEBUG ((DEBUG_WARN, "MnpCheckPacketTimeout: Received packet timeout.\n"));
|
||||||
MnpRecycleRxData (NULL, RxDataWrap);
|
MnpRecycleRxData (NULL, RxDataWrap);
|
||||||
Instance->RcvdPacketQueueSize--;
|
Instance->RcvdPacketQueueSize--;
|
||||||
}
|
}
|
||||||
|
@ -130,9 +130,9 @@ Mtftp4GetInfoCheckPacket (
|
|||||||
case EFI_MTFTP4_OPCODE_ERROR:
|
case EFI_MTFTP4_OPCODE_ERROR:
|
||||||
ErrorHeader = (EFI_MTFTP4_ERROR_HEADER *) Packet;
|
ErrorHeader = (EFI_MTFTP4_ERROR_HEADER *) Packet;
|
||||||
if (ErrorHeader->ErrorCode == EFI_MTFTP4_ERRORCODE_FILE_NOT_FOUND) {
|
if (ErrorHeader->ErrorCode == EFI_MTFTP4_ERRORCODE_FILE_NOT_FOUND) {
|
||||||
DEBUG ((EFI_D_ERROR, "TFTP error code 1 (File Not Found)\n"));
|
DEBUG ((DEBUG_ERROR, "TFTP error code 1 (File Not Found)\n"));
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((EFI_D_ERROR, "TFTP error code %d\n", ErrorHeader->ErrorCode));
|
DEBUG ((DEBUG_ERROR, "TFTP error code %d\n", ErrorHeader->ErrorCode));
|
||||||
}
|
}
|
||||||
State->Status = EFI_TFTP_ERROR;
|
State->Status = EFI_TFTP_ERROR;
|
||||||
break;
|
break;
|
||||||
|
@ -246,7 +246,7 @@ SnpUndi32CallbackMap (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Index >= MAX_MAP_LENGTH) {
|
if (Index >= MAX_MAP_LENGTH) {
|
||||||
DEBUG ((EFI_D_INFO, "SNP maplist is FULL\n"));
|
DEBUG ((DEBUG_INFO, "SNP maplist is FULL\n"));
|
||||||
*DevAddrPtr = 0;
|
*DevAddrPtr = 0;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
@ -306,7 +306,7 @@ SnpUndi32CallbackUnmap (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Index >= MAX_MAP_LENGTH) {
|
if (Index >= MAX_MAP_LENGTH) {
|
||||||
DEBUG ((EFI_D_ERROR, "SNP could not find a mapping, failed to unmap.\n"));
|
DEBUG ((DEBUG_ERROR, "SNP could not find a mapping, failed to unmap.\n"));
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,13 +71,13 @@ PxeGetStatus (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.get_status() "));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.get_status() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nSnp->undi.get_status() %xh:%xh\n",
|
"\nSnp->undi.get_status() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -46,7 +46,7 @@ PxeInit (
|
|||||||
|
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nSnp->PxeInit() AllocateBuffer %xh (%r)\n",
|
"\nSnp->PxeInit() AllocateBuffer %xh (%r)\n",
|
||||||
Status,
|
Status,
|
||||||
Status)
|
Status)
|
||||||
@ -91,7 +91,7 @@ PxeInit (
|
|||||||
Snp->Cdb.IFnum = Snp->IfNum;
|
Snp->Cdb.IFnum = Snp->IfNum;
|
||||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.initialize() "));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.initialize() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ PxeInit (
|
|||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"\nSnp->undi.initialize() %xh:%xh\n",
|
"\nSnp->undi.initialize() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -55,7 +55,7 @@ PxeIp2Mac (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.mcast_ip_to_mac() "));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.mcast_ip_to_mac() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ PxeIp2Mac (
|
|||||||
|
|
||||||
case PXE_STATCODE_UNSUPPORTED:
|
case PXE_STATCODE_UNSUPPORTED:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",
|
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -81,7 +81,7 @@ PxeIp2Mac (
|
|||||||
// to caller.
|
// to caller.
|
||||||
//
|
//
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",
|
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -53,7 +53,7 @@ PxeNvDataRead (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.nvdata () "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.nvdata () "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ PxeNvDataRead (
|
|||||||
|
|
||||||
case PXE_STATCODE_UNSUPPORTED:
|
case PXE_STATCODE_UNSUPPORTED:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nsnp->undi.nvdata() %xh:%xh\n",
|
"\nsnp->undi.nvdata() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -73,7 +73,7 @@ PxeNvDataRead (
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nsnp->undi.nvdata() %xh:%xh\n",
|
"\nsnp->undi.nvdata() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -76,7 +76,7 @@ PxeReceive (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive () "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.receive () "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ PxeReceive (
|
|||||||
|
|
||||||
case PXE_STATCODE_NO_DATA:
|
case PXE_STATCODE_NO_DATA:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nsnp->undi.receive () %xh:%xh\n",
|
"\nsnp->undi.receive () %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -96,7 +96,7 @@ PxeReceive (
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.receive() %xh:%xh\n",
|
"\nsnp->undi.receive() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -73,7 +73,7 @@ PxeRecvFilterEnable (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive_filters() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.receive_filters() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ PxeRecvFilterEnable (
|
|||||||
// UNDI command failed. Return UNDI status to caller.
|
// UNDI command failed. Return UNDI status to caller.
|
||||||
//
|
//
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -161,7 +161,7 @@ PxeRecvFilterDisable (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive_filters() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.receive_filters() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ PxeRecvFilterDisable (
|
|||||||
// UNDI command failed. Return UNDI status to caller.
|
// UNDI command failed. Return UNDI status to caller.
|
||||||
//
|
//
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -213,7 +213,7 @@ PxeRecvFilterRead (
|
|||||||
Snp->Cdb.IFnum = Snp->IfNum;
|
Snp->Cdb.IFnum = Snp->IfNum;
|
||||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive_filters() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.receive_filters() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -222,7 +222,7 @@ PxeRecvFilterRead (
|
|||||||
// UNDI command failed. Return UNDI status to caller.
|
// UNDI command failed. Return UNDI status to caller.
|
||||||
//
|
//
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -37,13 +37,13 @@ PxeReset (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.reset() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.reset() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"\nsnp->undi32.reset() %xh:%xh\n",
|
"\nsnp->undi32.reset() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -98,7 +98,7 @@ SnpUndi32Reset (
|
|||||||
// Resolve Warning 4 unreferenced parameter problem
|
// Resolve Warning 4 unreferenced parameter problem
|
||||||
//
|
//
|
||||||
ExtendedVerification = 0;
|
ExtendedVerification = 0;
|
||||||
DEBUG ((EFI_D_WARN, "ExtendedVerification = %d is not implemented!\n", ExtendedVerification));
|
DEBUG ((DEBUG_WARN, "ExtendedVerification = %d is not implemented!\n", ExtendedVerification));
|
||||||
|
|
||||||
if (This == NULL) {
|
if (This == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
@ -37,7 +37,7 @@ PxeShutdown (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.shutdown() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.shutdown() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ PxeShutdown (
|
|||||||
//
|
//
|
||||||
// UNDI could not be shutdown. Return UNDI error.
|
// UNDI could not be shutdown. Return UNDI error.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "\nsnp->undi.shutdown() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
DEBUG ((DEBUG_WARN, "\nsnp->undi.shutdown() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||||
|
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ IssueHwUndiCommand (
|
|||||||
UINT64 Cdb
|
UINT64 Cdb
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DEBUG ((EFI_D_ERROR, "\nIssueHwUndiCommand() - This should not be called!"));
|
DEBUG ((DEBUG_ERROR, "\nIssueHwUndiCommand() - This should not be called!"));
|
||||||
|
|
||||||
if (Cdb == 0) {
|
if (Cdb == 0) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -149,12 +149,12 @@ SimpleNetworkDriverSupported (
|
|||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
if (Status == EFI_ALREADY_STARTED) {
|
if (Status == EFI_ALREADY_STARTED) {
|
||||||
DEBUG ((EFI_D_INFO, "Support(): Already Started. on handle %p\n", Controller));
|
DEBUG ((DEBUG_INFO, "Support(): Already Started. on handle %p\n", Controller));
|
||||||
}
|
}
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((EFI_D_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
|
DEBUG ((DEBUG_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
|
||||||
|
|
||||||
//
|
//
|
||||||
// check the version, we don't want to connect to the undi16
|
// check the version, we don't want to connect to the undi16
|
||||||
@ -167,7 +167,7 @@ SimpleNetworkDriverSupported (
|
|||||||
// Check to see if !PXE structure is valid. Paragraph alignment of !PXE structure is required.
|
// Check to see if !PXE structure is valid. Paragraph alignment of !PXE structure is required.
|
||||||
//
|
//
|
||||||
if ((NiiProtocol->Id & 0x0F) != 0) {
|
if ((NiiProtocol->Id & 0x0F) != 0) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE structure is not paragraph aligned.\n"));
|
DEBUG ((DEBUG_NET, "\n!PXE structure is not paragraph aligned.\n"));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
@ -178,25 +178,25 @@ SimpleNetworkDriverSupported (
|
|||||||
// Verify !PXE revisions.
|
// Verify !PXE revisions.
|
||||||
//
|
//
|
||||||
if (Pxe->hw.Signature != PXE_ROMID_SIGNATURE) {
|
if (Pxe->hw.Signature != PXE_ROMID_SIGNATURE) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE signature is not valid.\n"));
|
DEBUG ((DEBUG_NET, "\n!PXE signature is not valid.\n"));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Pxe->hw.Rev < PXE_ROMID_REV) {
|
if (Pxe->hw.Rev < PXE_ROMID_REV) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE.Rev is not supported.\n"));
|
DEBUG ((DEBUG_NET, "\n!PXE.Rev is not supported.\n"));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Pxe->hw.MajorVer < PXE_ROMID_MAJORVER) {
|
if (Pxe->hw.MajorVer < PXE_ROMID_MAJORVER) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE.MajorVer is not supported.\n"));
|
DEBUG ((DEBUG_NET, "\n!PXE.MajorVer is not supported.\n"));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
|
|
||||||
} else if (Pxe->hw.MajorVer == PXE_ROMID_MAJORVER && Pxe->hw.MinorVer < PXE_ROMID_MINORVER) {
|
} else if (Pxe->hw.MajorVer == PXE_ROMID_MAJORVER && Pxe->hw.MinorVer < PXE_ROMID_MINORVER) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE.MinorVer is not supported."));
|
DEBUG ((DEBUG_NET, "\n!PXE.MinorVer is not supported."));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
@ -205,20 +205,20 @@ SimpleNetworkDriverSupported (
|
|||||||
//
|
//
|
||||||
if ((Pxe->hw.Implementation & PXE_ROMID_IMP_HW_UNDI) == 0) {
|
if ((Pxe->hw.Implementation & PXE_ROMID_IMP_HW_UNDI) == 0) {
|
||||||
if (Pxe->sw.EntryPoint < Pxe->sw.Len) {
|
if (Pxe->sw.EntryPoint < Pxe->sw.Len) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE S/W entry point is not valid."));
|
DEBUG ((DEBUG_NET, "\n!PXE S/W entry point is not valid."));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Pxe->sw.BusCnt == 0) {
|
if (Pxe->sw.BusCnt == 0) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE.BusCnt is zero."));
|
DEBUG ((DEBUG_NET, "\n!PXE.BusCnt is zero."));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
DEBUG ((EFI_D_INFO, "Support(): supported on %p\n", Controller));
|
DEBUG ((DEBUG_INFO, "Support(): supported on %p\n", Controller));
|
||||||
|
|
||||||
Done:
|
Done:
|
||||||
gBS->CloseProtocol (
|
gBS->CloseProtocol (
|
||||||
@ -271,7 +271,7 @@ SimpleNetworkDriverStart (
|
|||||||
BOOLEAN FoundIoBar;
|
BOOLEAN FoundIoBar;
|
||||||
BOOLEAN FoundMemoryBar;
|
BOOLEAN FoundMemoryBar;
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
|
DEBUG ((DEBUG_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
|
||||||
|
|
||||||
Status = gBS->OpenProtocol (
|
Status = gBS->OpenProtocol (
|
||||||
Controller,
|
Controller,
|
||||||
@ -328,12 +328,12 @@ SimpleNetworkDriverStart (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((EFI_D_INFO, "Start(): UNDI3.1 found\n"));
|
DEBUG ((DEBUG_INFO, "Start(): UNDI3.1 found\n"));
|
||||||
|
|
||||||
Pxe = (PXE_UNDI *) (UINTN) (Nii->Id);
|
Pxe = (PXE_UNDI *) (UINTN) (Nii->Id);
|
||||||
|
|
||||||
if (Calc8BitCksum (Pxe, Pxe->hw.Len) != 0) {
|
if (Calc8BitCksum (Pxe, Pxe->hw.Len) != 0) {
|
||||||
DEBUG ((EFI_D_NET, "\n!PXE checksum is not correct.\n"));
|
DEBUG ((DEBUG_NET, "\n!PXE checksum is not correct.\n"));
|
||||||
goto NiiError;
|
goto NiiError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -348,7 +348,7 @@ SimpleNetworkDriverStart (
|
|||||||
// broadcast support or we cannot do DHCP!
|
// broadcast support or we cannot do DHCP!
|
||||||
//
|
//
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((EFI_D_NET, "\nUNDI does not have promiscuous or broadcast support."));
|
DEBUG ((DEBUG_NET, "\nUNDI does not have promiscuous or broadcast support."));
|
||||||
goto NiiError;
|
goto NiiError;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@ -365,7 +365,7 @@ SimpleNetworkDriverStart (
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
DEBUG ((EFI_D_NET, "\nCould not allocate SNP_DRIVER structure.\n"));
|
DEBUG ((DEBUG_NET, "\nCould not allocate SNP_DRIVER structure.\n"));
|
||||||
goto NiiError;
|
goto NiiError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -452,7 +452,7 @@ SimpleNetworkDriverStart (
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
DEBUG ((EFI_D_NET, "\nCould not allocate CPB and DB structures.\n"));
|
DEBUG ((DEBUG_NET, "\nCould not allocate CPB and DB structures.\n"));
|
||||||
goto Error_DeleteSNP;
|
goto Error_DeleteSNP;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -519,7 +519,7 @@ SimpleNetworkDriverStart (
|
|||||||
Snp->Cdb.IFnum = Snp->IfNum;
|
Snp->Cdb.IFnum = Snp->IfNum;
|
||||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.get_init_info() "));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.get_init_info() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -529,7 +529,7 @@ SimpleNetworkDriverStart (
|
|||||||
InitStatFlags = Snp->Cdb.StatFlags;
|
InitStatFlags = Snp->Cdb.StatFlags;
|
||||||
|
|
||||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||||
PxeStop (Snp);
|
PxeStop (Snp);
|
||||||
goto Error_DeleteSNP;
|
goto Error_DeleteSNP;
|
||||||
}
|
}
|
||||||
@ -627,7 +627,7 @@ SimpleNetworkDriverStart (
|
|||||||
Status = PxeGetStnAddr (Snp);
|
Status = PxeGetStnAddr (Snp);
|
||||||
|
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
DEBUG ((EFI_D_ERROR, "\nSnp->undi.get_station_addr() failed.\n"));
|
DEBUG ((DEBUG_ERROR, "\nSnp->undi.get_station_addr() failed.\n"));
|
||||||
PxeShutdown (Snp);
|
PxeShutdown (Snp);
|
||||||
PxeStop (Snp);
|
PxeStop (Snp);
|
||||||
goto Error_DeleteSNP;
|
goto Error_DeleteSNP;
|
||||||
|
@ -66,7 +66,7 @@ PxeStart (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.start() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.start() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ PxeStart (
|
|||||||
// UNDI could not be started. Return UNDI error.
|
// UNDI could not be started. Return UNDI error.
|
||||||
//
|
//
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.start() %xh:%xh\n",
|
"\nsnp->undi.start() %xh:%xh\n",
|
||||||
Snp->Cdb.StatCode,
|
Snp->Cdb.StatCode,
|
||||||
Snp->Cdb.StatFlags)
|
Snp->Cdb.StatFlags)
|
||||||
|
@ -44,13 +44,13 @@ PxeGetStnAddr (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.station_addr() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.station_addr() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.station_addr() %xh:%xh\n",
|
"\nsnp->undi.station_addr() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -132,13 +132,13 @@ PxeSetStnAddr (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.station_addr() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.station_addr() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.station_addr() %xh:%xh\n",
|
"\nsnp->undi.station_addr() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -133,7 +133,7 @@ SnpUndi32Statistics (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.statistics() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.statistics() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ SnpUndi32Statistics (
|
|||||||
|
|
||||||
case PXE_STATCODE_UNSUPPORTED:
|
case PXE_STATCODE_UNSUPPORTED:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.statistics() %xh:%xh\n",
|
"\nsnp->undi.statistics() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -154,7 +154,7 @@ SnpUndi32Statistics (
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nsnp->undi.statistics() %xh:%xh\n",
|
"\nsnp->undi.statistics() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -37,13 +37,13 @@ PxeStop (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command
|
// Issue UNDI command
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nsnp->undi.stop() "));
|
DEBUG ((DEBUG_NET, "\nsnp->undi.stop() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"\nsnp->undi.stop() %xh:%xh\n",
|
"\nsnp->undi.stop() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -95,7 +95,7 @@ PxeFillHeader (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.fill_header() "));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.fill_header() "));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ PxeFillHeader (
|
|||||||
|
|
||||||
case PXE_STATCODE_INVALID_PARAMETER:
|
case PXE_STATCODE_INVALID_PARAMETER:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nSnp->undi.fill_header() %xh:%xh\n",
|
"\nSnp->undi.fill_header() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -115,7 +115,7 @@ PxeFillHeader (
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nSnp->undi.fill_header() %xh:%xh\n",
|
"\nSnp->undi.fill_header() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -171,15 +171,15 @@ PxeTransmit (
|
|||||||
//
|
//
|
||||||
// Issue UNDI command and check result.
|
// Issue UNDI command and check result.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->undi.transmit() "));
|
DEBUG ((DEBUG_NET, "\nSnp->undi.transmit() "));
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->Cdb.OpCode == %x", Snp->Cdb.OpCode));
|
DEBUG ((DEBUG_NET, "\nSnp->Cdb.OpCode == %x", Snp->Cdb.OpCode));
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->Cdb.CPBaddr == %LX", Snp->Cdb.CPBaddr));
|
DEBUG ((DEBUG_NET, "\nSnp->Cdb.CPBaddr == %LX", Snp->Cdb.CPBaddr));
|
||||||
DEBUG ((EFI_D_NET, "\nSnp->Cdb.DBaddr == %LX", Snp->Cdb.DBaddr));
|
DEBUG ((DEBUG_NET, "\nSnp->Cdb.DBaddr == %LX", Snp->Cdb.DBaddr));
|
||||||
DEBUG ((EFI_D_NET, "\nCpb->FrameAddr == %LX\n", Cpb->FrameAddr));
|
DEBUG ((DEBUG_NET, "\nCpb->FrameAddr == %LX\n", Cpb->FrameAddr));
|
||||||
|
|
||||||
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);
|
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "\nexit Snp->undi.transmit() "));
|
DEBUG ((DEBUG_NET, "\nexit Snp->undi.transmit() "));
|
||||||
|
|
||||||
//
|
//
|
||||||
// we will unmap the buffers in get_status call, not here
|
// we will unmap the buffers in get_status call, not here
|
||||||
@ -193,7 +193,7 @@ PxeTransmit (
|
|||||||
case PXE_STATCODE_BUSY:
|
case PXE_STATCODE_BUSY:
|
||||||
Status = EFI_NOT_READY;
|
Status = EFI_NOT_READY;
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"\nSnp->undi.transmit() %xh:%xh\n",
|
"\nSnp->undi.transmit() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
@ -202,7 +202,7 @@ PxeTransmit (
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"\nSnp->undi.transmit() %xh:%xh\n",
|
"\nSnp->undi.transmit() %xh:%xh\n",
|
||||||
Snp->Cdb.StatFlags,
|
Snp->Cdb.StatFlags,
|
||||||
Snp->Cdb.StatCode)
|
Snp->Cdb.StatCode)
|
||||||
|
@ -381,7 +381,7 @@ SockProcessTcpSndData (
|
|||||||
|
|
||||||
if (NULL == SndData) {
|
if (NULL == SndData) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockKProcessSndData: Failed to call NetBufferFromExt\n")
|
"SockKProcessSndData: Failed to call NetBufferFromExt\n")
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -516,7 +516,7 @@ SockWakeListenToken (
|
|||||||
|
|
||||||
Parent->ConnCnt--;
|
Parent->ConnCnt--;
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"SockWakeListenToken: accept a socket, now conncnt is %d",
|
"SockWakeListenToken: accept a socket, now conncnt is %d",
|
||||||
Parent->ConnCnt)
|
Parent->ConnCnt)
|
||||||
);
|
);
|
||||||
@ -667,7 +667,7 @@ SockCreate (
|
|||||||
|
|
||||||
if ((Parent != NULL) && (Parent->ConnCnt == Parent->BackLog)) {
|
if ((Parent != NULL) && (Parent->ConnCnt == Parent->BackLog)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreate: Socket parent has reached its connection limit with %d ConnCnt and %d BackLog\n",
|
"SockCreate: Socket parent has reached its connection limit with %d ConnCnt and %d BackLog\n",
|
||||||
Parent->ConnCnt,
|
Parent->ConnCnt,
|
||||||
Parent->BackLog)
|
Parent->BackLog)
|
||||||
@ -679,7 +679,7 @@ SockCreate (
|
|||||||
Sock = AllocateZeroPool (sizeof (SOCKET));
|
Sock = AllocateZeroPool (sizeof (SOCKET));
|
||||||
if (NULL == Sock) {
|
if (NULL == Sock) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "SockCreate: No resource to create a new socket\n"));
|
DEBUG ((DEBUG_ERROR, "SockCreate: No resource to create a new socket\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -695,7 +695,7 @@ SockCreate (
|
|||||||
Sock->SndBuffer.DataQueue = NetbufQueAlloc ();
|
Sock->SndBuffer.DataQueue = NetbufQueAlloc ();
|
||||||
if (NULL == Sock->SndBuffer.DataQueue) {
|
if (NULL == Sock->SndBuffer.DataQueue) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreate: No resource to allocate SndBuffer for new socket\n")
|
"SockCreate: No resource to allocate SndBuffer for new socket\n")
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -705,7 +705,7 @@ SockCreate (
|
|||||||
Sock->RcvBuffer.DataQueue = NetbufQueAlloc ();
|
Sock->RcvBuffer.DataQueue = NetbufQueAlloc ();
|
||||||
if (NULL == Sock->RcvBuffer.DataQueue) {
|
if (NULL == Sock->RcvBuffer.DataQueue) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreate: No resource to allocate RcvBuffer for new socket\n")
|
"SockCreate: No resource to allocate RcvBuffer for new socket\n")
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -751,7 +751,7 @@ SockCreate (
|
|||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreate: Install TCP protocol in socket failed with %r\n",
|
"SockCreate: Install TCP protocol in socket failed with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -770,7 +770,7 @@ SockCreate (
|
|||||||
Parent->ConnCnt++;
|
Parent->ConnCnt++;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"SockCreate: Create a new socket and add to parent, now conncnt is %d\n",
|
"SockCreate: Create a new socket and add to parent, now conncnt is %d\n",
|
||||||
Parent->ConnCnt)
|
Parent->ConnCnt)
|
||||||
);
|
);
|
||||||
@ -850,7 +850,7 @@ SockDestroy (
|
|||||||
(Sock->Parent->ConnCnt)--;
|
(Sock->Parent->ConnCnt)--;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"SockDestroy: Delete a unaccepted socket from parent now conncnt is %d\n",
|
"SockDestroy: Delete a unaccepted socket from parent now conncnt is %d\n",
|
||||||
Sock->Parent->ConnCnt)
|
Sock->Parent->ConnCnt)
|
||||||
);
|
);
|
||||||
@ -975,7 +975,7 @@ SockClone (
|
|||||||
ClonedSock = SockCreate (&InitData);
|
ClonedSock = SockCreate (&InitData);
|
||||||
|
|
||||||
if (NULL == ClonedSock) {
|
if (NULL == ClonedSock) {
|
||||||
DEBUG ((EFI_D_ERROR, "SockClone: no resource to create a cloned sock\n"));
|
DEBUG ((DEBUG_ERROR, "SockClone: no resource to create a cloned sock\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1230,4 +1230,3 @@ SockNoMoreData (
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ SockBufferToken (
|
|||||||
if (NULL == SockToken) {
|
if (NULL == SockToken) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockBufferIOToken: No Memory to allocate SockToken\n")
|
"SockBufferIOToken: No Memory to allocate SockToken\n")
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ SockDestroyChild (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockDestroyChild: Open protocol installed on socket failed with %r\n",
|
"SockDestroyChild: Open protocol installed on socket failed with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -213,7 +213,7 @@ SockDestroyChild (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockDestroyChild: Get the lock to access socket failed with %r\n",
|
"SockDestroyChild: Get the lock to access socket failed with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -229,7 +229,7 @@ SockDestroyChild (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockDestroyChild: Protocol detach socket failed with %r\n",
|
"SockDestroyChild: Protocol detach socket failed with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -280,7 +280,7 @@ SockCreateChild (
|
|||||||
if (NULL == Sock) {
|
if (NULL == Sock) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreateChild: No resource to create a new socket\n")
|
"SockCreateChild: No resource to create a new socket\n")
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -291,7 +291,7 @@ SockCreateChild (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreateChild: Get the lock to access socket failed with %r\n",
|
"SockCreateChild: Get the lock to access socket failed with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -306,7 +306,7 @@ SockCreateChild (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCreateChild: Protocol failed to attach a socket with %r\n",
|
"SockCreateChild: Protocol failed to attach a socket with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -371,7 +371,7 @@ SockConfigure (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockConfigure: Get the access for socket failed with %r",
|
"SockConfigure: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -425,7 +425,7 @@ SockConnect (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockConnect: Get the access for socket failed with %r",
|
"SockConnect: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -504,7 +504,7 @@ SockAccept (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockAccept: Get the access for socket failed with %r",
|
"SockAccept: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -557,7 +557,7 @@ SockAccept (
|
|||||||
Socket->Parent->ConnCnt--;
|
Socket->Parent->ConnCnt--;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"SockAccept: Accept a socket, now conncount is %d",
|
"SockAccept: Accept a socket, now conncount is %d",
|
||||||
Socket->Parent->ConnCnt)
|
Socket->Parent->ConnCnt)
|
||||||
);
|
);
|
||||||
@ -619,7 +619,7 @@ SockSend (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockSend: Get the access for socket failed with %r",
|
"SockSend: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -686,7 +686,7 @@ SockSend (
|
|||||||
|
|
||||||
if (NULL == SockToken) {
|
if (NULL == SockToken) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockSend: Failed to buffer IO token into socket processing SndToken List\n",
|
"SockSend: Failed to buffer IO token into socket processing SndToken List\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -699,7 +699,7 @@ SockSend (
|
|||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockSend: Failed to process Snd Data\n",
|
"SockSend: Failed to process Snd Data\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -750,7 +750,7 @@ SockRcv (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockRcv: Get the access for socket failed with %r",
|
"SockRcv: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -848,7 +848,7 @@ SockFlush (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockFlush: Get the access for socket failed with %r",
|
"SockFlush: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -866,7 +866,7 @@ SockFlush (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockFlush: Protocol failed handling SOCK_FLUSH with %r",
|
"SockFlush: Protocol failed handling SOCK_FLUSH with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -919,7 +919,7 @@ SockClose (
|
|||||||
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockClose: Get the access for socket failed with %r",
|
"SockClose: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -990,7 +990,7 @@ SockCancel (
|
|||||||
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockCancel: Get the access for socket failed with %r",
|
"SockCancel: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -1099,7 +1099,7 @@ SockRoute (
|
|||||||
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"SockRoute: Get the access for socket failed with %r",
|
"SockRoute: Get the access for socket failed with %r",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
@ -1123,4 +1123,3 @@ Exit:
|
|||||||
EfiReleaseLock (&(Sock->Lock));
|
EfiReleaseLock (&(Sock->Lock));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ TcpBind (
|
|||||||
if (*RandomPort <= TCP_PORT_KNOWN) {
|
if (*RandomPort <= TCP_PORT_KNOWN) {
|
||||||
if (Cycle) {
|
if (Cycle) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpBind: no port can be allocated for this pcb\n")
|
"TcpBind: no port can be allocated for this pcb\n")
|
||||||
);
|
);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
@ -359,7 +359,7 @@ TcpAttachPcb (
|
|||||||
|
|
||||||
if (Tcb == NULL) {
|
if (Tcb == NULL) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "TcpConfigurePcb: failed to allocate a TCB\n"));
|
DEBUG ((DEBUG_ERROR, "TcpConfigurePcb: failed to allocate a TCB\n"));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -540,7 +540,7 @@ TcpConfigurePcb (
|
|||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpConfigurePcb: Bind endpoint failed with %r\n",
|
"TcpConfigurePcb: Bind endpoint failed with %r\n",
|
||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
|
@ -905,7 +905,7 @@ TcpServiceBindingCreateChild (
|
|||||||
Sock = SockCreateChild (&mTcpDefaultSockData);
|
Sock = SockCreateChild (&mTcpDefaultSockData);
|
||||||
if (NULL == Sock) {
|
if (NULL == Sock) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpDriverBindingCreateChild: No resource to create a Tcp Child\n")
|
"TcpDriverBindingCreateChild: No resource to create a Tcp Child\n")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ TcpFastRecover (
|
|||||||
Tcb->CWnd = Tcb->Ssthresh + 3 * Tcb->SndMss;
|
Tcb->CWnd = Tcb->Ssthresh + 3 * Tcb->SndMss;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpFastRecover: enter fast retransmission for TCB %p, recover point is %d\n",
|
"TcpFastRecover: enter fast retransmission for TCB %p, recover point is %d\n",
|
||||||
Tcb,
|
Tcb,
|
||||||
Tcb->Recover)
|
Tcb->Recover)
|
||||||
@ -91,7 +91,7 @@ TcpFastRecover (
|
|||||||
//
|
//
|
||||||
Tcb->CWnd += Tcb->SndMss;
|
Tcb->CWnd += Tcb->SndMss;
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpFastRecover: received another duplicated ACK (%d) for TCB %p\n",
|
"TcpFastRecover: received another duplicated ACK (%d) for TCB %p\n",
|
||||||
Seg->Ack,
|
Seg->Ack,
|
||||||
Tcb)
|
Tcb)
|
||||||
@ -115,7 +115,7 @@ TcpFastRecover (
|
|||||||
|
|
||||||
Tcb->CongestState = TCP_CONGEST_OPEN;
|
Tcb->CongestState = TCP_CONGEST_OPEN;
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpFastRecover: received a full ACK(%d) for TCB %p, exit fast recovery\n",
|
"TcpFastRecover: received a full ACK(%d) for TCB %p, exit fast recovery\n",
|
||||||
Seg->Ack,
|
Seg->Ack,
|
||||||
Tcb)
|
Tcb)
|
||||||
@ -144,7 +144,7 @@ TcpFastRecover (
|
|||||||
Tcb->CWnd -= Acked;
|
Tcb->CWnd -= Acked;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpFastRecover: received a partial ACK(%d) for TCB %p\n",
|
"TcpFastRecover: received a partial ACK(%d) for TCB %p\n",
|
||||||
Seg->Ack,
|
Seg->Ack,
|
||||||
Tcb)
|
Tcb)
|
||||||
@ -182,7 +182,7 @@ TcpFastLossRecover (
|
|||||||
Tcb->CongestState = TCP_CONGEST_OPEN;
|
Tcb->CongestState = TCP_CONGEST_OPEN;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpFastLossRecover: received a full ACK(%d) for TCB %p\n",
|
"TcpFastLossRecover: received a full ACK(%d) for TCB %p\n",
|
||||||
Seg->Ack,
|
Seg->Ack,
|
||||||
Tcb)
|
Tcb)
|
||||||
@ -196,7 +196,7 @@ TcpFastLossRecover (
|
|||||||
//
|
//
|
||||||
TcpRetransmit (Tcb, Seg->Ack);
|
TcpRetransmit (Tcb, Seg->Ack);
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpFastLossRecover: received a partial ACK(%d) for TCB %p\n",
|
"TcpFastLossRecover: received a partial ACK(%d) for TCB %p\n",
|
||||||
Seg->Ack,
|
Seg->Ack,
|
||||||
Tcb)
|
Tcb)
|
||||||
@ -258,7 +258,7 @@ TcpComputeRtt (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpComputeRtt: new RTT for TCB %p computed SRTT: %d RTTVAR: %d RTO: %d\n",
|
"TcpComputeRtt: new RTT for TCB %p computed SRTT: %d RTTVAR: %d RTO: %d\n",
|
||||||
Tcb,
|
Tcb,
|
||||||
Tcb->SRtt,
|
Tcb->SRtt,
|
||||||
@ -423,7 +423,7 @@ TcpDeliverData (
|
|||||||
|
|
||||||
if (TcpVerifySegment (Nbuf) == 0) {
|
if (TcpVerifySegment (Nbuf) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpToSendData: discard a broken segment for TCB %p\n",
|
"TcpToSendData: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -454,7 +454,7 @@ TcpDeliverData (
|
|||||||
//
|
//
|
||||||
if (!IsListEmpty (&Tcb->RcvQue)) {
|
if (!IsListEmpty (&Tcb->RcvQue)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpDeliverData: data received after FIN from peer of TCB %p, reset connection\n",
|
"TcpDeliverData: data received after FIN from peer of TCB %p, reset connection\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -464,7 +464,7 @@ TcpDeliverData (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpDeliverData: processing FIN from peer of TCB %p\n",
|
"TcpDeliverData: processing FIN from peer of TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -498,7 +498,7 @@ TcpDeliverData (
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -771,7 +771,7 @@ TcpInput (
|
|||||||
ASSERT (Head != NULL);
|
ASSERT (Head != NULL);
|
||||||
|
|
||||||
if (Nbuf->TotalSize < sizeof (TCP_HEAD)) {
|
if (Nbuf->TotalSize < sizeof (TCP_HEAD)) {
|
||||||
DEBUG ((EFI_D_NET, "TcpInput: received a malformed packet\n"));
|
DEBUG ((DEBUG_NET, "TcpInput: received a malformed packet\n"));
|
||||||
goto DISCARD;
|
goto DISCARD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -779,7 +779,7 @@ TcpInput (
|
|||||||
|
|
||||||
if ((Head->HeadLen < 5) || (Len < 0)) {
|
if ((Head->HeadLen < 5) || (Len < 0)) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_NET, "TcpInput: received a malformed packet\n"));
|
DEBUG ((DEBUG_NET, "TcpInput: received a malformed packet\n"));
|
||||||
|
|
||||||
goto DISCARD;
|
goto DISCARD;
|
||||||
}
|
}
|
||||||
@ -793,7 +793,7 @@ TcpInput (
|
|||||||
Checksum = TcpChecksum (Nbuf, Checksum);
|
Checksum = TcpChecksum (Nbuf, Checksum);
|
||||||
|
|
||||||
if (Checksum != 0) {
|
if (Checksum != 0) {
|
||||||
DEBUG ((EFI_D_ERROR, "TcpInput: received a checksum error packet\n"));
|
DEBUG ((DEBUG_ERROR, "TcpInput: received a checksum error packet\n"));
|
||||||
goto DISCARD;
|
goto DISCARD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -815,7 +815,7 @@ TcpInput (
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ((Tcb == NULL) || (Tcb->State == TCP_CLOSED)) {
|
if ((Tcb == NULL) || (Tcb->State == TCP_CLOSED)) {
|
||||||
DEBUG ((EFI_D_NET, "TcpInput: send reset because no TCB found\n"));
|
DEBUG ((DEBUG_NET, "TcpInput: send reset because no TCB found\n"));
|
||||||
|
|
||||||
Tcb = NULL;
|
Tcb = NULL;
|
||||||
goto SEND_RESET;
|
goto SEND_RESET;
|
||||||
@ -829,7 +829,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (TcpParseOption (Nbuf->Tcp, &Option) == -1) {
|
if (TcpParseOption (Nbuf->Tcp, &Option) == -1) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: reset the peer because of malformed option for TCB %p\n",
|
"TcpInput: reset the peer because of malformed option for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -852,7 +852,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_RST)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_RST)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: discard a reset segment for TCB %p in listening\n",
|
"TcpInput: discard a reset segment for TCB %p in listening\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -866,7 +866,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: send reset because of segment with ACK for TCB %p in listening\n",
|
"TcpInput: send reset because of segment with ACK for TCB %p in listening\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -886,7 +886,7 @@ TcpInput (
|
|||||||
Tcb = TcpCloneTcb (Parent);
|
Tcb = TcpCloneTcb (Parent);
|
||||||
if (Tcb == NULL) {
|
if (Tcb == NULL) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a segment because failed to clone a child for TCB %p\n",
|
"TcpInput: discard a segment because failed to clone a child for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -895,7 +895,7 @@ TcpInput (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpInput: create a child for TCB %p in listening\n",
|
"TcpInput: create a child for TCB %p in listening\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -915,7 +915,7 @@ TcpInput (
|
|||||||
TcpSetTimer (Tcb, TCP_TIMER_CONNECT, Tcb->ConnectTimeout);
|
TcpSetTimer (Tcb, TCP_TIMER_CONNECT, Tcb->ConnectTimeout);
|
||||||
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a broken segment for TCB %p\n",
|
"TcpInput: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -935,7 +935,7 @@ TcpInput (
|
|||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK) && (Seg->Ack != Tcb->Iss + 1)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK) && (Seg->Ack != Tcb->Iss + 1)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: send reset because of wrong ACK received for TCB %p in SYN_SENT\n",
|
"TcpInput: send reset because of wrong ACK received for TCB %p in SYN_SENT\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -951,7 +951,7 @@ TcpInput (
|
|||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: connection reset by peer for TCB %p in SYN_SENT\n",
|
"TcpInput: connection reset by peer for TCB %p in SYN_SENT\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -961,7 +961,7 @@ TcpInput (
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: discard a reset segment because of no ACK for TCB %p in SYN_SENT\n",
|
"TcpInput: discard a reset segment because of no ACK for TCB %p in SYN_SENT\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1005,7 +1005,7 @@ TcpInput (
|
|||||||
|
|
||||||
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a broken segment for TCB %p\n",
|
"TcpInput: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1016,7 +1016,7 @@ TcpInput (
|
|||||||
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW);
|
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW);
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpInput: connection established for TCB %p in SYN_SENT\n",
|
"TcpInput: connection established for TCB %p in SYN_SENT\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1032,7 +1032,7 @@ TcpInput (
|
|||||||
|
|
||||||
if (TcpAdjustSndQue (Tcb, Tcb->SndNxt) == 0 || TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
if (TcpAdjustSndQue (Tcb, Tcb->SndNxt) == 0 || TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a broken segment for TCB %p\n",
|
"TcpInput: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1041,7 +1041,7 @@ TcpInput (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: simultaneous open for TCB %p in SYN_SENT\n",
|
"TcpInput: simultaneous open for TCB %p in SYN_SENT\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1070,7 +1070,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (TcpSeqAcceptable (Tcb, Seg) == 0) {
|
if (TcpSeqAcceptable (Tcb, Seg) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: sequence acceptance test failed for segment of TCB %p\n",
|
"TcpInput: sequence acceptance test failed for segment of TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1095,7 +1095,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_RST)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_RST)) {
|
||||||
|
|
||||||
DEBUG ((EFI_D_WARN, "TcpInput: connection reset for TCB %p\n", Tcb));
|
DEBUG ((DEBUG_WARN, "TcpInput: connection reset for TCB %p\n", Tcb));
|
||||||
|
|
||||||
if (Tcb->State == TCP_SYN_RCVD) {
|
if (Tcb->State == TCP_SYN_RCVD) {
|
||||||
|
|
||||||
@ -1126,7 +1126,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a broken segment for TCB %p\n",
|
"TcpInput: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1144,7 +1144,7 @@ TcpInput (
|
|||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: connection reset because received extra SYN for TCB %p\n",
|
"TcpInput: connection reset because received extra SYN for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1157,7 +1157,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
if (!TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
if (!TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: segment discard because of no ACK for connected TCB %p\n",
|
"TcpInput: segment discard because of no ACK for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1186,7 +1186,7 @@ TcpInput (
|
|||||||
TcpDeliverData (Tcb);
|
TcpDeliverData (Tcb);
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpInput: connection established for TCB %p in SYN_RCVD\n",
|
"TcpInput: connection established for TCB %p in SYN_RCVD\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1196,7 +1196,7 @@ TcpInput (
|
|||||||
//
|
//
|
||||||
} else {
|
} else {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: send reset because of wrong ACK for TCB %p in SYN_RCVD\n",
|
"TcpInput: send reset because of wrong ACK for TCB %p in SYN_RCVD\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1208,7 +1208,7 @@ TcpInput (
|
|||||||
if (TCP_SEQ_LT (Seg->Ack, Tcb->SndUna)) {
|
if (TCP_SEQ_LT (Seg->Ack, Tcb->SndUna)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: ignore the out-of-data ACK for connected TCB %p\n",
|
"TcpInput: ignore the out-of-data ACK for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1218,7 +1218,7 @@ TcpInput (
|
|||||||
} else if (TCP_SEQ_GT (Seg->Ack, Tcb->SndNxt)) {
|
} else if (TCP_SEQ_GT (Seg->Ack, Tcb->SndNxt)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: discard segment for future ACK for connected TCB %p\n",
|
"TcpInput: discard segment for future ACK for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1309,7 +1309,7 @@ TcpInput (
|
|||||||
|
|
||||||
if (TcpAdjustSndQue (Tcb, Seg->Ack) == 0) {
|
if (TcpAdjustSndQue (Tcb, Seg->Ack) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a broken segment for TCB %p\n",
|
"TcpInput: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1347,7 +1347,7 @@ TcpInput (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: peer shrinks the window for connected TCB %p\n",
|
"TcpInput: peer shrinks the window for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1375,14 +1375,14 @@ TcpInput (
|
|||||||
// 2^Rcv.Wind.Shift before moving the SndNxt to the left.
|
// 2^Rcv.Wind.Shift before moving the SndNxt to the left.
|
||||||
//
|
//
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: peer advise negative useable window for connected TCB %p\n",
|
"TcpInput: peer advise negative useable window for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
Usable = TCP_SUB_SEQ (Tcb->SndNxt, Right);
|
Usable = TCP_SUB_SEQ (Tcb->SndNxt, Right);
|
||||||
if ((Usable >> Tcb->SndWndScale) > 0) {
|
if ((Usable >> Tcb->SndWndScale) > 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: SndNxt is out of window by more than window scale for TCB %p\n",
|
"TcpInput: SndNxt is out of window by more than window scale for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1409,7 +1409,7 @@ NO_UPDATE:
|
|||||||
{
|
{
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpInput: local FIN is ACKed by peer for connected TCB %p\n",
|
"TcpInput: local FIN is ACKed by peer for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1452,7 +1452,7 @@ NO_UPDATE:
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1481,7 +1481,7 @@ NO_UPDATE:
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1505,7 +1505,7 @@ StepSix:
|
|||||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_URG) && !TCP_FIN_RCVD (Tcb->State)) {
|
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_URG) && !TCP_FIN_RCVD (Tcb->State)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpInput: received urgent data from peer for connected TCB %p\n",
|
"TcpInput: received urgent data from peer for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1531,7 +1531,7 @@ StepSix:
|
|||||||
if (TCP_FIN_RCVD (Tcb->State)) {
|
if (TCP_FIN_RCVD (Tcb->State)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: connection reset because data is lost for connected TCB %p\n",
|
"TcpInput: connection reset because data is lost for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1541,7 +1541,7 @@ StepSix:
|
|||||||
|
|
||||||
if (TCP_LOCAL_CLOSED (Tcb->State) && (Nbuf->TotalSize != 0)) {
|
if (TCP_LOCAL_CLOSED (Tcb->State) && (Nbuf->TotalSize != 0)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpInput: connection reset because data is lost for connected TCB %p\n",
|
"TcpInput: connection reset because data is lost for connected TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1551,7 +1551,7 @@ StepSix:
|
|||||||
|
|
||||||
if (TcpQueueData (Tcb, Nbuf) == 0) {
|
if (TcpQueueData (Tcb, Nbuf) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpInput: discard a broken segment for TCB %p\n",
|
"TcpInput: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1615,7 +1615,7 @@ DISCARD:
|
|||||||
//
|
//
|
||||||
// Tcb is a child of Parent, and it doesn't survive
|
// Tcb is a child of Parent, and it doesn't survive
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "TcpInput: Discard a packet\n"));
|
DEBUG ((DEBUG_WARN, "TcpInput: Discard a packet\n"));
|
||||||
NetbufFree (Nbuf);
|
NetbufFree (Nbuf);
|
||||||
|
|
||||||
if ((Parent != NULL) && (Tcb != NULL)) {
|
if ((Parent != NULL) && (Tcb != NULL)) {
|
||||||
|
@ -80,7 +80,7 @@ TcpSendIpPacket (
|
|||||||
IpSender = IpIoFindSender (&IpIo, Version, Src);
|
IpSender = IpIoFindSender (&IpIo, Version, Src);
|
||||||
|
|
||||||
if (IpSender == NULL) {
|
if (IpSender == NULL) {
|
||||||
DEBUG ((EFI_D_WARN, "TcpSendIpPacket: No appropriate IpSender.\n"));
|
DEBUG ((DEBUG_WARN, "TcpSendIpPacket: No appropriate IpSender.\n"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ TcpSendIpPacket (
|
|||||||
Status = IpIoSend (IpIo, Nbuf, IpSender, NULL, NULL, Dest, &Override);
|
Status = IpIoSend (IpIo, Nbuf, IpSender, NULL, NULL, Dest, &Override);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "TcpSendIpPacket: return %r error\n", Status));
|
DEBUG ((DEBUG_ERROR, "TcpSendIpPacket: return %r error\n", Status));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ Tcp6RefreshNeighbor (
|
|||||||
IpIoFindSender (&IpIo, IP_VERSION_6, Neighbor);
|
IpIoFindSender (&IpIo, IP_VERSION_6, Neighbor);
|
||||||
|
|
||||||
if (IpIo == NULL) {
|
if (IpIo == NULL) {
|
||||||
DEBUG ((EFI_D_WARN, "Tcp6AddNeighbor: No appropriate IpIo.\n"));
|
DEBUG ((DEBUG_WARN, "Tcp6AddNeighbor: No appropriate IpIo.\n"));
|
||||||
return EFI_NOT_STARTED;
|
return EFI_NOT_STARTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,4 +183,3 @@ Tcp6RefreshNeighbor (
|
|||||||
|
|
||||||
return IpIoRefreshNeighbor (IpIo, Neighbor, Timeout);
|
return IpIoRefreshNeighbor (IpIo, Neighbor, Timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ TcpCloneTcb (
|
|||||||
|
|
||||||
Clone->Sk = SockClone (Tcb->Sk);
|
Clone->Sk = SockClone (Tcb->Sk);
|
||||||
if (Clone->Sk == NULL) {
|
if (Clone->Sk == NULL) {
|
||||||
DEBUG ((EFI_D_ERROR, "TcpCloneTcb: failed to clone a sock\n"));
|
DEBUG ((DEBUG_ERROR, "TcpCloneTcb: failed to clone a sock\n"));
|
||||||
FreePool (Clone);
|
FreePool (Clone);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -608,7 +608,7 @@ TcpSetState (
|
|||||||
ASSERT (State < (sizeof (mTcpStateName) / sizeof (CHAR16 *)));
|
ASSERT (State < (sizeof (mTcpStateName) / sizeof (CHAR16 *)));
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"Tcb (%p) state %s --> %s\n",
|
"Tcb (%p) state %s --> %s\n",
|
||||||
Tcb,
|
Tcb,
|
||||||
mTcpStateName[Tcb->State],
|
mTcpStateName[Tcb->State],
|
||||||
@ -757,7 +757,7 @@ TcpOnAppClose (
|
|||||||
if (!IsListEmpty (&Tcb->RcvQue) || GET_RCV_DATASIZE (Tcb->Sk) != 0) {
|
if (!IsListEmpty (&Tcb->RcvQue) || GET_RCV_DATASIZE (Tcb->Sk) != 0) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpOnAppClose: connection reset because data is lost for TCB %p\n",
|
"TcpOnAppClose: connection reset because data is lost for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -857,7 +857,7 @@ TcpOnAppConsume (
|
|||||||
if (TcpOld < Tcb->RcvMss) {
|
if (TcpOld < Tcb->RcvMss) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpOnAppConsume: send a window update for a window closed Tcb %p\n",
|
"TcpOnAppConsume: send a window update for a window closed Tcb %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -866,7 +866,7 @@ TcpOnAppConsume (
|
|||||||
} else if (Tcb->DelayedAck == 0) {
|
} else if (Tcb->DelayedAck == 0) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpOnAppConsume: scheduled a delayed ACK to update window for Tcb %p\n",
|
"TcpOnAppConsume: scheduled a delayed ACK to update window for Tcb %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -895,7 +895,7 @@ TcpOnAppAbort (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpOnAppAbort: connection reset issued by application for TCB %p\n",
|
"TcpOnAppAbort: connection reset issued by application for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1039,4 +1039,3 @@ TcpInstallDevicePath (
|
|||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ SetPersistTimer:
|
|||||||
if (!TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_REXMIT)) {
|
if (!TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_REXMIT)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpDataToSend: enter persistent state for TCB %p\n",
|
"TcpDataToSend: enter persistent state for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -562,7 +562,7 @@ TcpGetSegmentSock (
|
|||||||
|
|
||||||
if (Nbuf == NULL) {
|
if (Nbuf == NULL) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpGetSegmentSock: failed to allocate a netbuf for TCB %p\n",
|
"TcpGetSegmentSock: failed to allocate a netbuf for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -678,7 +678,7 @@ TcpRetransmit (
|
|||||||
(TCP_SEQ_GT (Seq, Tcb->RetxmitSeqMax) || TCP_SEQ_BETWEEN (Tcb->SndWl2 + Tcb->SndWnd, Seq, Tcb->SndWl2 + Tcb->SndWnd + (1 << Tcb->SndWndScale)))) {
|
(TCP_SEQ_GT (Seq, Tcb->RetxmitSeqMax) || TCP_SEQ_BETWEEN (Tcb->SndWl2 + Tcb->SndWnd, Seq, Tcb->SndWl2 + Tcb->SndWnd + (1 << Tcb->SndWndScale)))) {
|
||||||
Len = TCP_SUB_SEQ (Tcb->SndNxt, Seq);
|
Len = TCP_SUB_SEQ (Tcb->SndNxt, Seq);
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpRetransmit: retransmission without regard to the receiver window for TCB %p\n",
|
"TcpRetransmit: retransmission without regard to the receiver window for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -688,7 +688,7 @@ TcpRetransmit (
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpRetransmit: retransmission cancelled because send window too small for TCB %p\n",
|
"TcpRetransmit: retransmission cancelled because send window too small for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -845,7 +845,7 @@ TcpToSendData (
|
|||||||
|
|
||||||
if (Nbuf == NULL) {
|
if (Nbuf == NULL) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpToSendData: failed to get a segment for TCB %p\n",
|
"TcpToSendData: failed to get a segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -874,7 +874,7 @@ TcpToSendData (
|
|||||||
TCP_SEQ_LT (End + 1, Tcb->SndWnd + Tcb->SndWl2)
|
TCP_SEQ_LT (End + 1, Tcb->SndWnd + Tcb->SndWl2)
|
||||||
) {
|
) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpToSendData: send FIN to peer for TCB %p in state %s\n",
|
"TcpToSendData: send FIN to peer for TCB %p in state %s\n",
|
||||||
Tcb,
|
Tcb,
|
||||||
mTcpStateName[Tcb->State])
|
mTcpStateName[Tcb->State])
|
||||||
@ -892,7 +892,7 @@ TcpToSendData (
|
|||||||
|
|
||||||
if (TcpVerifySegment (Nbuf) == 0 || TcpCheckSndQue (&Tcb->SndQue) == 0) {
|
if (TcpVerifySegment (Nbuf) == 0 || TcpCheckSndQue (&Tcb->SndQue) == 0) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpToSendData: discard a broken segment for TCB %p\n",
|
"TcpToSendData: discard a broken segment for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -904,7 +904,7 @@ TcpToSendData (
|
|||||||
//
|
//
|
||||||
if (Seg->End == Seg->Seq) {
|
if (Seg->End == Seg->Seq) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpToSendData: created a empty segment for TCB %p, free it now\n",
|
"TcpToSendData: created a empty segment for TCB %p, free it now\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -959,7 +959,7 @@ TcpToSendData (
|
|||||||
if ((Tcb->CongestState == TCP_CONGEST_OPEN) && !TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) {
|
if ((Tcb->CongestState == TCP_CONGEST_OPEN) && !TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpToSendData: set RTT measure sequence %d for TCB %p\n",
|
"TcpToSendData: set RTT measure sequence %d for TCB %p\n",
|
||||||
Seq,
|
Seq,
|
||||||
Tcb)
|
Tcb)
|
||||||
@ -1090,7 +1090,7 @@ TcpToSendAck (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_NET,
|
(DEBUG_NET,
|
||||||
"TcpToSendAck: scheduled a delayed ACK for TCB %p\n",
|
"TcpToSendAck: scheduled a delayed ACK for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -1248,4 +1248,3 @@ TcpVerifySegment (
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ TcpConnectTimeout (
|
|||||||
{
|
{
|
||||||
if (!TCP_CONNECTED (Tcb->State)) {
|
if (!TCP_CONNECTED (Tcb->State)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpConnectTimeout: connection closed because connection timer timeout for TCB %p\n",
|
"TcpConnectTimeout: connection closed because connection timer timeout for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -159,7 +159,7 @@ TcpConnectTimeout (
|
|||||||
|
|
||||||
if (TCP_SYN_RCVD == Tcb->State) {
|
if (TCP_SYN_RCVD == Tcb->State) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpConnectTimeout: send reset because connection timer timeout for TCB %p\n",
|
"TcpConnectTimeout: send reset because connection timer timeout for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -187,7 +187,7 @@ TcpRexmitTimeout (
|
|||||||
UINT32 FlightSize;
|
UINT32 FlightSize;
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpRexmitTimeout: transmission timeout for TCB %p\n",
|
"TcpRexmitTimeout: transmission timeout for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -207,7 +207,7 @@ TcpRexmitTimeout (
|
|||||||
if ((Tcb->LossTimes > Tcb->MaxRexmit) && !TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_CONNECT)) {
|
if ((Tcb->LossTimes > Tcb->MaxRexmit) && !TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_CONNECT)) {
|
||||||
|
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_ERROR,
|
(DEBUG_ERROR,
|
||||||
"TcpRexmitTimeout: connection closed because too many timeouts for TCB %p\n",
|
"TcpRexmitTimeout: connection closed because too many timeouts for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -299,7 +299,7 @@ TcpFinwait2Timeout (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"TcpFinwait2Timeout: connection closed because FIN_WAIT2 timer timeouts for TCB %p\n",
|
"TcpFinwait2Timeout: connection closed because FIN_WAIT2 timer timeouts for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -319,7 +319,7 @@ Tcp2MSLTimeout (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(EFI_D_WARN,
|
(DEBUG_WARN,
|
||||||
"Tcp2MSLTimeout: connection closed because TIME_WAIT timer timeouts for TCB %p\n",
|
"Tcp2MSLTimeout: connection closed because TIME_WAIT timer timeouts for TCB %p\n",
|
||||||
Tcb)
|
Tcb)
|
||||||
);
|
);
|
||||||
@ -584,4 +584,3 @@ TcpTicking (
|
|||||||
{
|
{
|
||||||
QueueDpc (TPL_CALLBACK, TcpTickingDpc, Context);
|
QueueDpc (TPL_CALLBACK, TcpTickingDpc, Context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ TlsEncryptPacket (
|
|||||||
//
|
//
|
||||||
// No data was successfully encrypted, continue to encrypt other messages.
|
// No data was successfully encrypted, continue to encrypt other messages.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "TlsEncryptPacket: No data read from TLS object.\n"));
|
DEBUG ((DEBUG_WARN, "TlsEncryptPacket: No data read from TLS object.\n"));
|
||||||
|
|
||||||
ThisMessageSize = 0;
|
ThisMessageSize = 0;
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ TlsDecryptPacket (
|
|||||||
//
|
//
|
||||||
// No data was successfully decrypted, continue to decrypt other messages.
|
// No data was successfully decrypted, continue to decrypt other messages.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "TlsDecryptPacket: No data read from TLS object.\n"));
|
DEBUG ((DEBUG_WARN, "TlsDecryptPacket: No data read from TLS object.\n"));
|
||||||
|
|
||||||
ThisPlainMessageSize = 0;
|
ThisPlainMessageSize = 0;
|
||||||
}
|
}
|
||||||
@ -346,4 +346,3 @@ ERROR:
|
|||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ PxeBcBuildDhcp4Options (
|
|||||||
//
|
//
|
||||||
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||||
ZeroMem (OptEnt.Uuid->Guid, sizeof (EFI_GUID));
|
ZeroMem (OptEnt.Uuid->Guid, sizeof (EFI_GUID));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1277,7 +1277,7 @@ PxeBcDhcp4CallBack (
|
|||||||
//
|
//
|
||||||
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||||
ZeroMem (Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
|
ZeroMem (Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
|
||||||
}
|
}
|
||||||
Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
|
Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
|
||||||
@ -1466,7 +1466,7 @@ PxeBcDhcp4Discover (
|
|||||||
//
|
//
|
||||||
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||||
ZeroMem (Token.Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
|
ZeroMem (Token.Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
|
||||||
}
|
}
|
||||||
Token.Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
|
Token.Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
|
||||||
|
@ -1951,7 +1951,7 @@ EfiPxeBcSetParameters (
|
|||||||
|
|
||||||
if (NewSendGUID != NULL) {
|
if (NewSendGUID != NULL) {
|
||||||
if (*NewSendGUID && EFI_ERROR (NetLibGetSystemGuid (&SystemGuid))) {
|
if (*NewSendGUID && EFI_ERROR (NetLibGetSystemGuid (&SystemGuid))) {
|
||||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
Mode->SendGUID = *NewSendGUID;
|
Mode->SendGUID = *NewSendGUID;
|
||||||
@ -2418,4 +2418,3 @@ EfiPxeLoadFile (
|
|||||||
}
|
}
|
||||||
|
|
||||||
EFI_LOAD_FILE_PROTOCOL gLoadFileProtocolTemplate = { EfiPxeLoadFile };
|
EFI_LOAD_FILE_PROTOCOL gLoadFileProtocolTemplate = { EfiPxeLoadFile };
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user