Restore the byte-by-byte checksum method, since the Unicode-aware
authordjfiander <djfiander>
Thu, 7 Jan 2010 01:24:02 +0000 (01:24 +0000)
committerdjfiander <djfiander>
Thu, 7 Jan 2010 01:24:02 +0000 (01:24 +0000)
version breaks with very new 3M self-check units, according to dbs.

Sip/Checksum.pm

index 49ea78b..5840d38 100644 (file)
@@ -29,7 +29,7 @@ our @EXPORT_OK = qw(checksum verify_cksum);
 sub checksum {\r
     my $pkt = shift;\r
 \r
-    return (-unpack('%16U*', $pkt) & 0xFFFF);\r
+    return (-unpack('%16C*', $pkt) & 0xFFFF);\r
 }\r
 \r
 sub verify_cksum {\r