Lines Matching refs:checksum
74 * checksum. A packet consists of
76 * $<packet info>#<checksum>.
80 * <checksum> :: < two hex digits computed as modulo 256 sum of <packetinfo>>
112 /* debug > 0 prints ill-formed commands in valid packets & checksum errors */
454 /* scan for the sequence $<data>#<checksum> */
460 unsigned char checksum;
472 checksum = 0;
484 checksum = checksum + ch;
497 if (checksum != xmitcsum)
502 "bad checksum. My count = 0x%x, sent=0x%x. buf=%s\n",
503 checksum, xmitcsum, buffer);
505 putDebugChar ('-'); /* failed checksum */
531 unsigned char checksum;
535 /* $<packet info>#<checksum>. */
539 checksum = 0;
545 checksum += ch;
550 putDebugChar (hexchars[checksum >> 4]);
551 putDebugChar (hexchars[checksum % 16]);