aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-umts_fp.c
diff options
context:
space:
mode:
authorDarien Spencer <cusneud@mail.com>2017-07-07 17:40:06 +0300
committerPascal Quantin <pascal.quantin@gmail.com>2017-07-07 17:23:03 +0000
commita7a66a18908924cc3a56605ea3ff389476b364c4 (patch)
treef95787d4fb6fad33a63644296e857e4cce627a11 /epan/dissectors/packet-umts_fp.c
parent993542685b92de2a78946ca8747f0ee5ea99db0b (diff)
UMTS FP: Set missing sub-frame
HS-DSCH T2 dissection method did not set the 'subnum' field in the packet info which broke dissection in higher layers. Change-Id: Ib50e9d783b4abfed477479b7fbaa46d005431322 Reviewed-on: https://code.wireshark.org/review/22540 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-umts_fp.c')
-rw-r--r--epan/dissectors/packet-umts_fp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 4f9512709e..84568e3d74 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -891,14 +891,15 @@ dissect_macd_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* Data bytes! */
if (data_tree) {
- pinfo->fd->subnum = pdu; /* set subframe number to current TB */
- p_fp_info->cur_tb = pdu; /*Set TB (PDU) index correctly*/
pdu_ti = proto_tree_add_item(data_tree, hf_fp_mac_d_pdu, tvb,
offset + (bit_offset/8),
((bit_offset % 8) + length + 7) / 8,
ENC_NA);
proto_item_set_text(pdu_ti, "MAC-d PDU (PDU %u)", pdu+1);
}
+
+ pinfo->fd->subnum = pdu; /* set subframe number to current TB */
+ p_fp_info->cur_tb = pdu; /*Set TB (PDU) index correctly*/
if (preferences_call_mac_dissectors /*&& !rlc_is_ciphered(pinfo)*/) {
tvbuff_t *next_tvb;
next_tvb = tvb_new_subset_length_caplen(tvb, offset + bit_offset/8,
@@ -970,6 +971,7 @@ dissect_macd_pdu_data_type_2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
fpi->cur_tb = pdu; /*Set proper pdu index for MAC and higher layers*/
+ pinfo->fd->subnum = pdu;
call_dissector_with_data(mac_fdd_hsdsch_handle, next_tvb, pinfo, top_level_tree, data);
dissected = TRUE;
}