NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES_INIT function (netadapter.h)

Note

The NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES_INIT function is deprecated in NetAdapterCx 2.1 and later. For more information on current checksum offload functions, see Checksum offload.

The NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES_INIT function initializes a NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES structure.

Syntax

void NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES_INIT(
  [_Out_] NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES *ChecksumCapabilities,
  [_In_]  BOOLEAN                                   IPv4,
  [_In_]  BOOLEAN                                   Tcp,
  [_In_]  BOOLEAN                                   Udp,
  [_In_]  PFN_NET_ADAPTER_OFFLOAD_SET_CHECKSUM      EvtAdapterOffloadSetChecksum
);

Parameters

[_Out_] ChecksumCapabilities

A pointer to a driver-allocated NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES structure.

[_In_] IPv4

A flag specifying whether the hardware can calculate and validate IPv4 checksum.

[_In_] Tcp

A flag specifying whether the hardware can calculate and validate TCP checksum.

[_In_] Udp

A flag specifying whether the hardware can calculate and validate UDP checksum.

[_In_] EvtAdapterOffloadSetChecksum

A pointer to the client driver's implementation of the EVT_NET_ADAPTER_OFFLOAD_SET_CHECKSUM callback function.

Return value

None

Remarks

The NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES structure initialized by this function is passed as a parameter to the NetAdapterOffloadSetChecksumCapabilities function.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.29
Header netadapter.h (include netadaptercx.h)
Library netadaptercxstub.lib

See also

NetAdapterCx hardware offloads

NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES