1 | initial version |
The UDP checksum is "Checksum is the 16-bit one's complement of the one's complement sum of a pseudo header of information from the IP header, the UDP header, and the data, padded with zero octets at the end (if necessary) to make a multiple of two octets.", as per RFC 768. See also the TCP/IP Guide, or wikipedia.