aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sscop.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-06-03 14:02:06 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-06-03 14:02:06 +0000
commit29b44f1ebf3ac4d22d13809a4592b9c3c4f93469 (patch)
tree98152844165af626ff9bfdcf6c2d60c792131e8a /epan/dissectors/packet-sscop.c
parent4f986a78b45ab54797da1d65a16b14a5d549b724 (diff)
fix the PDU list, and put it at the bottom
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14544 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sscop.c')
-rw-r--r--epan/dissectors/packet-sscop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sscop.c b/epan/dissectors/packet-sscop.c
index a99aa974bb..66391ef444 100644
--- a/epan/dissectors/packet-sscop.c
+++ b/epan/dissectors/packet-sscop.c
@@ -167,7 +167,7 @@ static const value_string sscop_type_vals[] = {
#define SSCOP_SS_N_R (reported_length - 4) /* lower 3 bytes thereof */
extern void dissect_stat_list(proto_tree *tree, tvbuff_t *tvb) {
- gint n = tvb_reported_length(tvb)/4 -3;
+ gint n = (tvb_reported_length(tvb)-3)/4 ;
proto_item* pi = proto_tree_add_text(tree,tvb,0,n*4,"SD List");
gint i;
@@ -276,14 +276,13 @@ dissect_sscop_and_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, d
break;
case SSCOP_STAT:
- dissect_stat_list(sscop_tree,tvb);
proto_tree_add_item(sscop_tree, hf_sscop_ps, tvb, SSCOP_N_PS + 1, 3,FALSE);
proto_tree_add_item(sscop_tree, hf_sscop_mr, tvb, SSCOP_N_MR + 1, 3, FALSE);
proto_tree_add_item(sscop_tree, hf_sscop_r, tvb, SSCOP_SS_N_R + 1, 3,FALSE);
+ dissect_stat_list(sscop_tree,tvb);
break;
case SSCOP_USTAT:
- dissect_stat_list(sscop_tree,tvb);
proto_tree_add_item(sscop_tree, hf_sscop_mr, tvb, SSCOP_N_MR + 1, 3, FALSE);
proto_tree_add_item(sscop_tree, hf_sscop_r, tvb, SSCOP_SS_N_R + 1, 3,FALSE);
dissect_stat_list(sscop_tree,tvb);