Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 55 of file inet6.c.
Referenced by GetPrivateProfileStructW(), inet_chksum(), inet_chksum_pbuf(), and inet_chksum_pseudo().
{ u16_t *sdataptr = dataptr; u32_t acc; for(acc = 0; len > 1; len -= 2) { acc += *sdataptr++; } /* add up any odd byte */ if (len == 1) { acc += htons((u16_t)(*(u8_t *)dataptr) << 8); } return acc; }