RFC 1071, "Computing the Internet checksum", September 1988
Source of RFC: Legacy
Updated by: RFC1141
Area assignment: int
Errata-ID: 560
- Status:
- Verified
- Type:
- Editorial
- Reported By:
- Tim Moors
- Date Reported:
- 2004-04-05
Section 4.1 says:
while( count > 1 ) {
/* This is the inner loop */
sum += * (unsigned short) addr++;
count -= 2;
It should say:
while( count > 1 ) {
/* This is the inner loop */
sum += * (unsigned short *) addr++;
count -= 2;