mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-06-28 11:55:08 +03:00
spelling: packet
This commit is contained in:
parent
67f3177a80
commit
3f5e44167f
@ -524,7 +524,7 @@ NTSTATUS SlDeviceCloseProc(DEVICE_OBJECT *device_object, IRP *irp)
|
||||
// Wait until the number of packet being sent becomes the zero
|
||||
while (true)
|
||||
{
|
||||
if (f->NumSendingPacketets == 0)
|
||||
if (f->NumSendingPackets == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
@ -1060,7 +1060,7 @@ NTSTATUS SlDeviceWriteProc(DEVICE_OBJECT *device_object, IRP *irp)
|
||||
|
||||
if (nbl_head != NULL)
|
||||
{
|
||||
InterlockedExchangeAdd(&f->NumSendingPacketets, num_packets);
|
||||
InterlockedExchangeAdd(&f->NumSendingPackets, num_packets);
|
||||
InterlockedExchangeAdd(&f->Adapter->NumPendingSendPackets, num_packets);
|
||||
|
||||
SlUnlock(f->Adapter->Lock);
|
||||
@ -1741,7 +1741,7 @@ void SlNdisSendNetBufferListsCompleteProc(NDIS_HANDLE protocol_binding_context,
|
||||
NdisFreeNetBufferList(current_nbl);
|
||||
|
||||
// Reduce the number of packets being sent by 1
|
||||
InterlockedExchangeAdd(&f->NumSendingPacketets, (LONG)-1);
|
||||
InterlockedExchangeAdd(&f->NumSendingPackets, (LONG)-1);
|
||||
InterlockedExchangeAdd(&f->Adapter->NumPendingSendPackets, (LONG)-1);
|
||||
}
|
||||
}
|
||||
|
@ -260,7 +260,7 @@ typedef struct SL_FILE
|
||||
SL_PACKET *RecvPacketTail; // Tail of the received packet
|
||||
UINT NumRecvPackets; // Number of items of the received packet queue
|
||||
NDIS_HANDLE NetBufferListPool; // NET_BUFFER_LIST Pool
|
||||
volatile UINT NumSendingPacketets; // Number of packets being transmitted
|
||||
volatile UINT NumSendingPackets; // Number of packets being transmitted
|
||||
bool SetEventFlag; // Flag to set an event
|
||||
bool FinalWakeUp;
|
||||
} SL_FILE;
|
||||
|
Loading…
Reference in New Issue
Block a user