datapath-windows/ovsext/Offload.c
/*
 *----------------------------------------------------------------------------
 * CopyAndCalculateChecksum --
 *
 *  This is similar to CalculateChecksum, except it will also copy data to
 *  destination address.
 *----------------------------------------------------------------------------
 */
CopyAndCalculateChecksum
This is similar to CalculateChecksum, except it will also copy data to
destination address.
CopyAndCalculateChecksum This is similar to CalculateChecksum except it will also copy data to destination address .
UINT16
CopyAndCalculateChecksum(UINT8 *dst,
                         UINT8 *src,
                         UINT16 length,
                         UINT16 initial)
{
    UINT64  sum = CopyAndCalculateOnesComplement(dst, src, length, initial,
                                                 TRUE);
    fold64(sum);
    return (UINT16)~sum;
}
UINT16 CopyAndCalculateChecksum ( UINT8 * dst , UINT8 * src , UINT16 length , UINT16 initial ) { UINT64 sum = CopyAndCalculateOnesComplement ( dst , src , length , initial , TRUE ) ; fold64 ( sum ) ; return ( UINT16 ) ~ sum ; }
CopyAndCalculateChecksum
  This is similar to CalculateChecksum, except it will also copy data to
  destination address.
CopyAndCalculateChecksum This is similar to CalculateChecksum except it will also copy data to destination address .