next up previous contents index
Next: ocsum Up: Checksum Previous: Checksum

inCkSum

   

Calculates a 16-bit 1's complement checksum over buffer (of length length) and message, returning the bit complement of the sum. length should be even and the buffer must be aligned on a 16-bit boundary. length may be zero.

u_short inCkSum(Msg *message, u_short *buffer, int length)



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