Modify UDP and IP to transmit on all network adapters instead of just the first network adapter.
Fix comment in Socket.c. Signed-off-by: lpleahy Reviewed and tested by: Sreenivasula Reddy of Dell git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13713 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -794,21 +794,21 @@ EslUdp4TxBuffer (
|
||||
//
|
||||
if ( SOCKET_STATE_CONNECTED == pSocket->State ) {
|
||||
//
|
||||
// Locate the port
|
||||
// Verify that there is enough room to buffer another
|
||||
// transmit operation
|
||||
//
|
||||
pPort = pSocket->pPortList;
|
||||
if ( NULL != pPort ) {
|
||||
pTxBytes = &pSocket->TxBytes;
|
||||
if ( pSocket->MaxTxBuf > *pTxBytes ) {
|
||||
//
|
||||
// Determine the queue head
|
||||
// Locate the port
|
||||
//
|
||||
pUdp4 = &pPort->Context.Udp4;
|
||||
pTxBytes = &pSocket->TxBytes;
|
||||
pPort = pSocket->pPortList;
|
||||
while ( NULL != pPort ) {
|
||||
//
|
||||
// Determine the queue head
|
||||
//
|
||||
pUdp4 = &pPort->Context.Udp4;
|
||||
|
||||
//
|
||||
// Verify that there is enough room to buffer another
|
||||
// transmit operation
|
||||
//
|
||||
if ( pSocket->MaxTxBuf > *pTxBytes ) {
|
||||
//
|
||||
// Attempt to allocate the packet
|
||||
//
|
||||
@@ -923,6 +923,7 @@ EslUdp4TxBuffer (
|
||||
// Free the packet
|
||||
//
|
||||
EslSocketPacketFree ( pPacket, DEBUG_TX );
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -935,16 +936,22 @@ EslUdp4TxBuffer (
|
||||
// Packet allocation failed
|
||||
//
|
||||
pSocket->errno = ENOMEM;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
//
|
||||
// Not enough buffer space available
|
||||
// Set the next port
|
||||
//
|
||||
pSocket->errno = EAGAIN;
|
||||
Status = EFI_NOT_READY;
|
||||
pPort = pPort->pLinkSocket;
|
||||
}
|
||||
}
|
||||
else {
|
||||
//
|
||||
// Not enough buffer space available
|
||||
//
|
||||
pSocket->errno = EAGAIN;
|
||||
Status = EFI_NOT_READY;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user