aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-umts_fp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2008-05-27 11:13:57 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2008-05-27 11:13:57 +0000
commit44c5c69d0411eac63676e69468d9e36cd83882d8 (patch)
tree8e6167184cb1ec221d3a2b908d792bcded7231eb /epan/dissectors/packet-umts_fp.c
parent9fbeaf2d28709abe627c7027143f9af755684184 (diff)
Fix max pdu size in hsdsch alloc type 2.
svn path=/trunk/; revision=25385
Diffstat (limited to 'epan/dissectors/packet-umts_fp.c')
-rw-r--r--epan/dissectors/packet-umts_fp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 2ed8ffa211..fd329fd5a9 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -846,7 +846,7 @@ int dissect_hsdpa_capacity_allocation(packet_info *pinfo, proto_tree *tree,
offset++;
/* Max MAC-d PDU length (13 bits) */
- max_pdu_length = (tvb_get_ntohs(tvb, offset) >> 3);
+ max_pdu_length = tvb_get_ntohs(tvb, offset) >> 3;
proto_tree_add_item(tree, hf_fp_hsdsch_max_macd_pdu_len, tvb, offset, 2, FALSE);
offset++;
@@ -934,7 +934,7 @@ int dissect_hsdpa_capacity_allocation_type_2(packet_info *pinfo, proto_tree *tre
/* 5 spare bits follow here */
/* Max MAC-d/c PDU length (11 bits) */
- max_pdu_length = (tvb_get_ntohs(tvb, offset) >> 3);
+ max_pdu_length = tvb_get_ntohs(tvb, offset) & 0x7ff;
proto_tree_add_item(tree, hf_fp_hsdsch_max_macdc_pdu_len, tvb, offset, 2, FALSE);
offset += 2;