Only use ports with a network connection (media present) when connecting to a remote host.
Fix bug causing early exit with NO_MEDIA. Add fix to TCP6. Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13432 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -512,7 +512,6 @@ EslTcp4ConnectStart (
|
||||
//
|
||||
// Verify the port connection
|
||||
//
|
||||
pTcp4Protocol = pPort->pProtocol.TCPv4;
|
||||
Status = pTcp4Protocol->GetModeData ( pTcp4Protocol,
|
||||
NULL,
|
||||
NULL,
|
||||
@@ -525,7 +524,18 @@ EslTcp4ConnectStart (
|
||||
//
|
||||
// Port is not connected to the network
|
||||
//
|
||||
Status = EFI_NO_MEDIA;
|
||||
pTcp4->ConnectToken.CompletionToken.Status = EFI_NO_MEDIA;
|
||||
|
||||
//
|
||||
// Continue with the next port
|
||||
//
|
||||
gBS->CheckEvent ( pTcp4->ConnectToken.CompletionToken.Event );
|
||||
gBS->SignalEvent ( pTcp4->ConnectToken.CompletionToken.Event );
|
||||
|
||||
//
|
||||
// Connection in progress
|
||||
//
|
||||
Status = EFI_SUCCESS;
|
||||
}
|
||||
else {
|
||||
//
|
||||
|
Reference in New Issue
Block a user