mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Don't use NdisTransferData if the whole packet is contained in the header+lookup buffer.
svn path=/trunk/; revision=11266
This commit is contained in:
parent
02b3928237
commit
0f86ec1497
1 changed files with 10 additions and 13 deletions
|
@ -371,9 +371,8 @@ NDIS_STATUS STDCALL ProtocolReceive(
|
||||||
IPPacket.NdisPacket = NdisPacket;
|
IPPacket.NdisPacket = NdisPacket;
|
||||||
IPPacket.Position = 0;
|
IPPacket.Position = 0;
|
||||||
|
|
||||||
#if 0
|
if ((LookaheadBufferSize + HeaderBufferSize) < PacketSize)
|
||||||
if (LookaheadBufferSize < PacketSize) {
|
{
|
||||||
#endif
|
|
||||||
TI_DbgPrint(DEBUG_DATALINK, ("pretransfer LookaheadBufferSize %d packsize %d\n",LookaheadBufferSize,PacketSize));
|
TI_DbgPrint(DEBUG_DATALINK, ("pretransfer LookaheadBufferSize %d packsize %d\n",LookaheadBufferSize,PacketSize));
|
||||||
/* Get the data */
|
/* Get the data */
|
||||||
NdisTransferData(&NdisStatus,
|
NdisTransferData(&NdisStatus,
|
||||||
|
@ -383,7 +382,6 @@ NDIS_STATUS STDCALL ProtocolReceive(
|
||||||
PacketSize + HeaderBufferSize,
|
PacketSize + HeaderBufferSize,
|
||||||
NdisPacket,
|
NdisPacket,
|
||||||
&BytesTransferred);
|
&BytesTransferred);
|
||||||
#if 0
|
|
||||||
} else {
|
} else {
|
||||||
TI_DbgPrint(DEBUG_DATALINK, ("copy\n"));
|
TI_DbgPrint(DEBUG_DATALINK, ("copy\n"));
|
||||||
NdisStatus = NDIS_STATUS_SUCCESS;
|
NdisStatus = NDIS_STATUS_SUCCESS;
|
||||||
|
@ -394,7 +392,6 @@ NDIS_STATUS STDCALL ProtocolReceive(
|
||||||
RtlCopyMemory(BufferData + HeaderBufferSize,
|
RtlCopyMemory(BufferData + HeaderBufferSize,
|
||||||
LookaheadBuffer, LookaheadBufferSize);
|
LookaheadBuffer, LookaheadBufferSize);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
TI_DbgPrint(DEBUG_DATALINK, ("Calling complete\n"));
|
TI_DbgPrint(DEBUG_DATALINK, ("Calling complete\n"));
|
||||||
|
|
||||||
/* Release the packet descriptor */
|
/* Release the packet descriptor */
|
||||||
|
|
Loading…
Reference in a new issue