Print cic in info column for BICC messages similar to ISUP.
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Sep 2009 21:20:31 +0000 (21:20 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Sep 2009 21:20:31 +0000 (21:20 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29810 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-isup.c

index 7f8e063e574ad346064cd7cfba6eb1f0fffe735d..7c482379365e017b58df12cefe8b46436a76ed08 100644 (file)
@@ -7125,7 +7125,7 @@ dissect_isup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
 
        /* In the interest of speed, if "tree" is NULL, don't do any work not
-     * necessary to generate protocol tree items.
+        * necessary to generate protocol tree items.
         */
        if (tree) {
                ti = proto_tree_add_item(tree, proto_isup, tvb, 0, -1, FALSE);
@@ -7159,17 +7159,22 @@ dissect_bicc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 /* Extract message type field */
        message_type = tvb_get_guint8(tvb, BICC_CIC_OFFSET + BICC_CIC_LENGTH);
 
-       if (check_col(pinfo->cinfo, COL_INFO))
-               col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(message_type, isup_message_type_value_acro, "reserved"));
-
-       /* dissect CIC in main dissector since pass-along message type carrying complete BICC/ISUP message w/o CIC needs
-        * recursive message dissector call
-        */
        bicc_cic = tvb_get_letohl(tvb, BICC_CIC_OFFSET);
 
        pinfo->ctype = CT_BICC;
        pinfo->circuit_id = bicc_cic;
 
+
+       if (check_col(pinfo->cinfo, COL_INFO)) {
+               if (isup_show_cic_in_info) {
+                       col_add_fstr(pinfo->cinfo, COL_INFO, "%s (CIC %u) ", val_to_str(message_type, isup_message_type_value_acro, "reserved"), bicc_cic);
+               } else {
+                       col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(message_type, isup_message_type_value_acro, "reserved"));
+               }
+       }
+       /* dissect CIC in main dissector since pass-along message type carrying complete BICC/ISUP message w/o CIC needs
+        * recursive message dissector call
+        */
        /* In the interest of speed, if "tree" is NULL, don't do any work not
         * necessary to generate protocol tree items.
         */