summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-rlc-lte.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2014-01-10 12:51:57 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2014-01-10 12:51:57 +0000
commit92b1a4a112708e96f352142961bef9e1ef05e107 (patch)
tree4282ff2e78b3a4b494e92c0b88b951fa29676ffd /epan/dissectors/packet-rlc-lte.c
parent4debda5779b3cbc2b4e51a79a9f37c175e423d2a (diff)
downloadwireshark-92b1a4a112708e96f352142961bef9e1ef05e107.tar.gz
Move UEId to the beginning of summary shown in info column, plus only look for existing reassembly info when not starting a new SDU
svn path=/trunk/; revision=54691
Diffstat (limited to 'epan/dissectors/packet-rlc-lte.c')
-rw-r--r--epan/dissectors/packet-rlc-lte.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/epan/dissectors/packet-rlc-lte.c b/epan/dissectors/packet-rlc-lte.c
index d6c3e8dbf7..867e15b820 100644
--- a/epan/dissectors/packet-rlc-lte.c
+++ b/epan/dissectors/packet-rlc-lte.c
@@ -24,7 +24,7 @@
*/
#include "config.h"
-
+#include <stdio.h>
#include <string.h>
#include <epan/packet.h>
@@ -2580,9 +2580,11 @@ static void dissect_rlc_lte_am(tvbuff_t *tvb, packet_info *pinfo,
/*************************************/
/* Data */
- reassembly_info = (rlc_channel_reassembly_info *)g_hash_table_lookup(reassembly_report_hash,
- get_report_hash_key((guint16)sn, pinfo->fd->num,
- p_rlc_lte_info, FALSE));
+ if (!first_includes_start) {
+ reassembly_info = (rlc_channel_reassembly_info *)g_hash_table_lookup(reassembly_report_hash,
+ get_report_hash_key((guint16)sn, pinfo->fd->num,
+ p_rlc_lte_info, FALSE));
+ }
if (s_number_of_extensions > 0) {
/* Show each data segment separately */
@@ -2841,6 +2843,7 @@ static void dissect_rlc_lte_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree
/* Append highlights to top-level item */
if (p_rlc_lte_info->ueid != 0) {
proto_item_append_text(top_ti, " UEId=%u", p_rlc_lte_info->ueid);
+ col_append_fstr(pinfo->cinfo, COL_INFO, "UEId=%-4u ", p_rlc_lte_info->ueid);
}
/* Append context highlights to info column */
@@ -2848,9 +2851,7 @@ static void dissect_rlc_lte_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree
" [%s] [%s] ",
(p_rlc_lte_info->direction == 0) ? "UL" : "DL",
val_to_str_const(p_rlc_lte_info->rlcMode, rlc_mode_short_vals, "Unknown"));
- if (p_rlc_lte_info->ueid != 0) {
- col_append_fstr(pinfo->cinfo, COL_INFO, "UEId=%-4u ", p_rlc_lte_info->ueid);
- }
+
if (p_rlc_lte_info->channelId == 0) {
write_pdu_label_and_info(top_ti, NULL, pinfo, "%s ",
val_to_str_const(p_rlc_lte_info->channelType, rlc_channel_type_vals, "Unknown"));