NetExtensionGetPacketChecksum function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

The NetExtensionGetPacketChecksum method retrieves checksum information for a packet.

Syntax

EXTERN_C_START NET_PACKET_CHECKSUM * NetExtensionGetPacketChecksum(
  NET_EXTENSION const *Extension,
  UINT32              Index
);

Parameters

Extension

A pointer to a NET_EXTENSION structure that describes the checksum extension information for this packet queue.

Index

The index in the packet ring for the target NET_PACKET.

Return Value

Returns a pointer to a NET_PACKET_CHECKSUM structure that holds the checksum information for this packet.

Remarks

NIC client drivers typically query offsets for packet extensions during datapath queue creation, then store them in their queue context space so they don't have to query them too often. For an example of this, see Transmit and receive queues. Clients can retrieve the checksum offset from the queue context to pass to NetExtensionGetPacketChecksum.

This method is a wrapper method around NetExtensionGetData.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.29
Header checksum.h (include netadaptercx.h)
IRQL Any level as long as target memory is resident

See Also

Packet descriptors and extensions

NetExtensionGetData