Home | History | Annotate | Download | only in stubs

Lines Matching refs:checksum

90  * checksum.  A packet consists of 
92 * $<packet info>#<checksum>.
96 * <checksum> :: < two hex digits computed as modulo 256 sum of <packetinfo>>
139 /* debug > 0 prints ill-formed commands in valid packets & checksum errors */
534 /* scan for the sequence $<data>#<checksum> */
540 unsigned char checksum;
552 checksum = 0;
564 checksum = checksum + ch;
577 if (checksum != xmitcsum)
582 "bad checksum. My count = 0x%x, sent=0x%x. buf=%s\n",
583 checksum, xmitcsum, buffer);
585 putDebugChar ('-'); /* failed checksum */
612 unsigned char checksum;
616 /* $<packet info>#<checksum>. */
620 checksum = 0;
626 checksum += ch;
631 putDebugChar (hexchars[checksum >> 4]);
632 putDebugChar (hexchars[checksum % 16]);