Increment discarded packets properly
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6cc9786b47
commit
96553f4217
2
wintun.c
2
wintun.c
@ -337,10 +337,8 @@ cleanupKeReleaseInStackQueuedSpinLock:
|
|||||||
KeReleaseInStackQueuedSpinLock(&LockHandle);
|
KeReleaseInStackQueuedSpinLock(&LockHandle);
|
||||||
skipNbl:
|
skipNbl:
|
||||||
for (NET_BUFFER_LIST *Nbl = NetBufferLists; Nbl; Nbl = NET_BUFFER_LIST_NEXT_NBL(Nbl))
|
for (NET_BUFFER_LIST *Nbl = NetBufferLists; Nbl; Nbl = NET_BUFFER_LIST_NEXT_NBL(Nbl))
|
||||||
{
|
|
||||||
NET_BUFFER_LIST_STATUS(Nbl) = Status;
|
NET_BUFFER_LIST_STATUS(Nbl) = Status;
|
||||||
DiscardedPacketsCount += PacketsCount;
|
DiscardedPacketsCount += PacketsCount;
|
||||||
}
|
|
||||||
ExReleaseSpinLockShared(&Ctx->TransitionLock, Irql);
|
ExReleaseSpinLockShared(&Ctx->TransitionLock, Irql);
|
||||||
NdisMSendNetBufferListsComplete(Ctx->MiniportAdapterHandle, NetBufferLists, 0);
|
NdisMSendNetBufferListsComplete(Ctx->MiniportAdapterHandle, NetBufferLists, 0);
|
||||||
updateStatistics:
|
updateStatistics:
|
||||||
|
Loading…
Reference in New Issue
Block a user