Show number of extensions in header root.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 28 Feb 2012 19:01:24 +0000 (19:01 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 28 Feb 2012 19:01:24 +0000 (19:01 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41229 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-rlc-lte.c

index ba7b7ac..a073ca6 100644 (file)
@@ -2007,6 +2007,11 @@ static void dissect_rlc_lte_um(tvbuff_t *tvb, packet_info *pinfo,
         }
     }
 
+    /* Show number of extensions in header root */
+    if (s_number_of_extensions > 0) {
+        proto_item_append_text(um_header_ti, " (%u extensions)", s_number_of_extensions);
+    }
+
     /* Call sequence analysis function now */
     if (((global_rlc_lte_um_sequence_analysis == SEQUENCE_ANALYSIS_MAC_ONLY) &&
          (p_get_proto_data(pinfo->fd, proto_mac_lte) != NULL)) ||
@@ -2348,6 +2353,11 @@ static void dissect_rlc_lte_am(tvbuff_t *tvb, packet_info *pinfo,
     /* Header is now complete */
     proto_item_set_len(am_header_ti, offset-start_offset);
 
+    /* Show number of extensions in header root */
+    if (s_number_of_extensions > 0) {
+        proto_item_append_text(am_header_ti, " (%u extensions)", s_number_of_extensions);
+    }
+
     /* Extract these 2 flags from framing_info */
     first_includes_start = (framing_info & 0x02) == 0;
     last_includes_end =    (framing_info & 0x01) == 0;