next up previous contents index
Next: Strings to Hosts Up: Checksum Previous: inCkSum

ocsum

   

Returns the 1's complement sum of the count 16-bit words pointed to by hdr, which must be aligned on a 16-bit boundary.

u_short ocsum(u_short *hdr, int count)



Larry Peterson
Wed Jan 10 10:40:08 MST 1996