NdisRecalculatePacketCounts

This function resets the valid counts for a given packet.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisRecalculatePacketCounts( IN OUT PNDIS_PACKET Packet );

Parameters

Packet
Pointer to the packet descriptor.

Remarks

If a driver explicitly modifies a buffer descriptor chain for a packet descriptor, that driver should call this function with the modified packet. In general, any NDIS driver should avoid modifying buffer descriptor chains that it sets up, and any driver must not modify chains set up by other drivers.

This call resets the valid counts for the packet to FALSE, thus forcing NdisQueryPacket to recalculate the buffer count for the modified packet if it is called subsequently with that packet.

A driver that calls this function can run at any IRQL.

See Also

NdisQueryPacket, NdisReinitializePacket