![]() |
![]() |
Transmit checksum configuration. More...
#include <pa.h>
Data Fields | |
uint16_t | startOffset |
uint16_t | lengthBytes |
uint16_t | resultOffset |
uint16_t | initialSum |
uint16_t | negative0 |
Transmit checksum configuration.
paTxChksum_t is used in the call to Pa_formatTxRoute or Pa_formatTxCmd to create a tx command header that instructs the packet accelerator sub-system to generate ones' complement checksums into network packets. The checksums are typically used for TCP and UDP payload checksums as well as IPv4 header checksums. In the case of TCP and UDP payload checksums the psuedo header checksum must be pre-calculated and provided, the sub-system does not calculate it.
uint16_t paTxChksum_t::initialSum |
Initial value of the checksum
uint16_t paTxChksum_t::lengthBytes |
Number of bytes covered by the checksum. Must be even
uint16_t paTxChksum_t::negative0 |
If TRUE, a computed value of 0 is written as -0
uint16_t paTxChksum_t::resultOffset |
Byte offset, from startOffset, to place the resulting checksum
uint16_t paTxChksum_t::startOffset |
Byte location, from SOP, where the checksum calculation begins