Description
This example transmits 10 packets where L3/L4 checksum calculation is controlled via control bits in the packet descriptor.
By default this program transmits packets where the adapter recalculates both L3 and L4 checksum.
It is controlled by these code lines:
constexpr ChecksumCmdLayer3 cmd_l3 = CHECKSUM_LAYER3_GOOD;
constexpr ChecksumCmdLayer4 cmd_l4 = CHECKSUM_LAYER4_GOOD;
By changing these code lines and recompiling, the behavior can be changed to perform other action on the L3 and L4 checksum.
L3 options:
CHECKSUM_LAYER3_DO_NOTHING
CHECKSUM_LAYER3_BAD
CHECKSUM_LAYER3_GOOD
L4 options:
CHECKSUM_LAYER4_DO_NOTHING
CHECKSUM_LAYER4_BAD
CHECKSUM_LAYER4_GOOD
CHECKSUM_LAYER4_GOOD_TCP_ZERO_UDP
CHECKSUM_LAYER4_GOOD_TCP_ZERO_UDP_IPV4
CHECKSUM_LAYER4_GOOD_TCP_UDP_ZERO_UDP_TUNNEL
CHECKSUM_LAYER4_GOOD_TCP_UDP_ZERO_UDP_IPV4_TUNNEL