projects
/
working
/
SIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06bab7a
)
Restore the byte-by-byte checksum method, since the Unicode-aware
author
djfiander
<djfiander>
Thu, 7 Jan 2010 01:24:02 +0000
(
01:24
+0000)
committer
djfiander
<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
patch
|
blob
|
history
diff --git
a/Sip/Checksum.pm
b/Sip/Checksum.pm
index
49ea78b
..
5840d38
100644
(file)
--- a/
Sip/Checksum.pm
+++ b/
Sip/Checksum.pm
@@
-29,7
+29,7
@@
our @EXPORT_OK = qw(checksum verify_cksum);
sub checksum {
\r
my $pkt = shift;
\r
\r
- return (-unpack('%16
U
*', $pkt) & 0xFFFF);
\r
+ return (-unpack('%16
C
*', $pkt) & 0xFFFF);
\r
}
\r
\r
sub verify_cksum {
\r