Lines Matching defs:Checksum
912 This function calculates the checksum for the Packet, utilizing the pre-calculated
916 @param[in] HeadSum Checksum of the pseudo header, execpt the length
919 @return The 16-bit checksum of this udp datagram.
928 UINT16 Checksum;
930 Checksum = NetbufChecksum (Packet);
931 Checksum = NetAddChecksum (Checksum, HeadSum);
933 Checksum = NetAddChecksum (Checksum, HTONS ((UINT16) Packet->TotalSize));
934 Checksum = (UINT16) (~Checksum);
935 return Checksum;
1612 if (Udp6Header->Checksum != 0) {
1614 // check the checksum.
1625 // Wrong checksum.
1775 IcmpErrHdr->Head.Checksum = 0;
1794 // Set the checksum as zero, and IP6 driver will calcuate it with pseudo header.
1796 IcmpErrHdr->Head.Checksum = 0;