Fix bug 1508:

http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1508

Dissect ISUP CIC as 14 bits in ANSI (instead of 12 bits like in ITU)


svn path=/trunk/; revision=21310
This commit is contained in:
Jeff Morriss 2007-04-03 06:27:18 +00:00
parent 4500ada811
commit 755698ebcf
1 changed files with 4 additions and 2 deletions

View File

@ -6763,8 +6763,10 @@ dissect_isup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
message_type = tvb_get_guint8(tvb, CIC_OFFSET + CIC_LENGTH);
/* dissect CIC in main dissector since pass-along message type carrying complete IUSP message w/o CIC needs
recursive message dissector call */
cic = tvb_get_letohs(tvb, CIC_OFFSET) & 0x0FFF; /*since upper 4 bits spare */
if (mtp3_standard == ITU_STANDARD)
cic = tvb_get_letohs(tvb, CIC_OFFSET) & 0x0FFF; /*since upper 4 bits spare */
else if (mtp3_standard == ANSI_STANDARD)
cic = tvb_get_letohs(tvb, CIC_OFFSET) & 0x3FFF; /*since upper 2 bits spare */
pinfo->ctype = CT_ISUP;
pinfo->circuit_id = cic;