// checksum.h
EXTERN_C_START NET_PACKET_CHECKSUM * NetExtensionGetPacketChecksum(
NET_EXTENSION const *Extension,
UINT32 Index
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetExtensionGetPacketChecksum function retrieves checksum information for a packet.
ExtensionA pointer to a NET_EXTENSION structure that describes the checksum extension information for this packet queue.
IndexThe index in the packet ring for the target NET_PACKET.
Returns a pointer to a NET_PACKET_CHECKSUM structure that holds the checksum information for this packet.
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 function is a wrapper function around NetExtensionGetData.
Packet descriptors and extensions