// ring.h
NET_PACKET * NetRingGetPacketAtIndex(
NET_RING const *Ring,
UINT32 Index
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetRingGetPacketAtIndex function retrieves a packet from a net ring.
RingA pointer to a NET_RING.
IndexThe packet index, within the range [0, Ring->NumberOfElements).
Returns a pointer to the NET_PACKET at the specified index in the packet ring.
This function is a convenient wrapper around NetRingGetElementAtIndex. Client drivers should call this function when working with a packet ring instead of calling NetRingGetElementAtIndex directly.