Contents

getChecksumSupport

Gets checksums that are supported by the network controller for the given checksum family.

Declaration

virtual IOReturn getChecksumSupport(
 UInt32 *checksumMask, 
 UInt32checksumFamily, 
 boolisOutput );

Parameters

  • checksumMask:

    A pointer to the mask of supported checksums returned by this method.

  • checksumFamily:

    A value that specifies the checksum family.

  • isOutput:

    Set to true to query the support for checksum insertion on output packets, or false to query the support for checksum verification on input packets. Controllers that have symmetric hardware checksum support can return a fixed checksum mask value, and ignore this argument.

Return Value

Default return is kIOReturnUnsupported. Controllers that override this method must return kIOReturnSuccess. Any other return value will be interpretated as a lack of checksum support, regardless of the value returned through the first argument.

Overview

A network controller that is capable of inserting and verifying checksums on output and input packets, should override this method and advertise its capability in order to assist or offload the software checksum calculations performed by the protocol stacks.

See Also

Miscellaneous