[SDK][IP] Fix formatting

This commit is contained in:
Victor Perevertkin 2019-11-22 22:04:56 +03:00 committed by Victor Perevertkin
parent 792b64ea46
commit cf3ab9d15a

View file

@ -49,7 +49,8 @@ BOOLEAN DGRemoveIRP(
return Found;
}
VOID DGDeliverData(
VOID
DGDeliverData(
PADDRESS_FILE AddrFile,
PIP_ADDRESS SrcAddress,
PIP_ADDRESS DstAddress,
@ -81,7 +82,7 @@ VOID DGDeliverData(
NTSTATUS Status;
PVOID DataBuffer;
TI_DbgPrint(MAX_TRACE, ("Called.\n"));
TI_DbgPrint(MIN_TRACE, ("Called.\n"));
LockObject(AddrFile, &OldIrql);
@ -89,16 +90,15 @@ VOID DGDeliverData(
{
DataBuffer = IPPacket->Data;
}
else
else if (AddrFile->HeaderIncl)
{
if (AddrFile->HeaderIncl)
DataBuffer = IPPacket->Header;
}
else
{
DataBuffer = IPPacket->Data;
DataSize -= IPPacket->HeaderSize;
}
}
if (!IsListEmpty(&AddrFile->ReceiveQueue))
{
@ -110,13 +110,15 @@ VOID DGDeliverData(
/* Search receive request list to find a match */
CurrentEntry = AddrFile->ReceiveQueue.Flink;
while(CurrentEntry != &AddrFile->ReceiveQueue) {
while (CurrentEntry != &AddrFile->ReceiveQueue)
{
Current = CONTAINING_RECORD(CurrentEntry, DATAGRAM_RECEIVE_REQUEST, ListEntry);
CurrentEntry = CurrentEntry->Flink;
if( DstPort == AddrFile->Port &&
if (DstPort == AddrFile->Port &&
(AddrIsEqual(DstAddress, &AddrFile->Address) ||
AddrIsUnspecified(&AddrFile->Address) ||
AddrIsUnspecified(DstAddress))) {
AddrIsUnspecified(DstAddress)))
{
/* Remove the request from the queue */
RemoveEntryList(&Current->ListEntry);
@ -128,9 +130,9 @@ VOID DGDeliverData(
Current->Buffer, DataBuffer, DataSize));
/* Copy the data into buffer provided by the user */
RtlCopyMemory( Current->Buffer,
RtlCopyMemory(Current->Buffer,
DataBuffer,
MIN(Current->BufferSize, DataSize) );
MIN(Current->BufferSize, DataSize));
RTAIPAddress = (PTA_IP_ADDRESS)Current->ReturnInfo->RemoteAddress;
RTAIPAddress->TAAddressCount = 1;