NetRingGetPacketAtIndex - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ring.h

NET_PACKET * NetRingGetPacketAtIndex(
  NET_RING const *Ring,
  UINT32         Index
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ring-netringgetpacketatindex)

NetRingGetPacketAtIndex function

Description

The NetRingGetPacketAtIndex function retrieves a packet from a net ring.

Parameters

Ring

A pointer to a NET_RING.

Index

The packet index, within the range [0, Ring->NumberOfElements).

Return value

Returns a pointer to the NET_PACKET at the specified index in the packet ring.

Remarks

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.

See also

NET_PACKET

NetRingGetElementAtIndex