aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/isdn-sup/packet-isdn-sup-template.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-02-19 07:06:55 +0000
committerGuy Harris <guy@alum.mit.edu>2013-02-19 07:06:55 +0000
commitf910cb502c9e5e01d5217bc0105fb7f0e925f31b (patch)
tree42f44dfa7815f35691b5ba461460db3117e792eb /asn1/isdn-sup/packet-isdn-sup-template.c
parent2a02a5d367e87e17e24d7ea081799851805c18cc (diff)
calc_checksum() should be passed the length of the block to be
checksummed, which is the length of the TPDU, not that length + 1. Calculate the TPDU length correctly - use tvb_reported_length_remaining(), not tvb_length_remaining() (we want the *actual* length, not the amount of captured data we have), and take the offset handed to the dissector routine into account. Don't take the length indicator into account for TPDUs with user data, as they run to the end of the lower-level packet containing the TPDU(s). The CLTP UD TPDU contains user data. Note that this dissects both COTP *and* CLTP (that's why it's "packet-ositp.c", not "packet-cotp.c"). Separate some groups of #includes with blank lines. svn path=/trunk/; revision=47745
Diffstat (limited to 'asn1/isdn-sup/packet-isdn-sup-template.c')
0 files changed, 0 insertions, 0 deletions