Contents

getChecksumDemand

Fetches the demand for hardware checksum computation and insertion for the given packet before it is transmitted on the network.

Declaration

virtual void getChecksumDemand(
 const mbuf_t packet, 
 UInt32 checksumFamily, 
 UInt32 *demandMask, 
 void *param0 = 0, 
 void *param1 = 0 );

Parameters

  • packet:

    An mbuf containing a packet that may be missing one or more checksums in the specified checksum family.

  • checksumFamily:

    A value that specifies the checksum family.

  • demandMask:

    A mask of all checksums that the hardware must compute and insert into the appropriate checksum fields in the packet.

  • param0:

    Optional parameter 0, defaults to 0.

  • param1:

    Optional parameter 1, defaults to 0.

Overview

A network controller that can insert a checksum for output packets must call this method to obtain the set of checksums that it must compute, and insert into the appropriate fields in the given output packet.

See Also

Miscellaneous