aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-t124.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2019-04-04 13:00:35 +0200
committerAnders Broman <a.broman58@gmail.com>2019-04-04 12:28:11 +0000
commitca694eb078ac710b9e9bd3d1b0f8dc80af185a31 (patch)
treec84b52318c555f1e1460eb7b74d30f035e7c46d1 /epan/dissectors/packet-t124.c
parent24ef40990020d06884ee4164b723a345e9985907 (diff)
PER: Use proto_tree_add_bitmask... () for named bits.
Change-Id: I2f4258e2f4fd11c26bdc101e1375d0b5708610b7 Reviewed-on: https://code.wireshark.org/review/32713 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-t124.c')
-rw-r--r--epan/dissectors/packet-t124.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-t124.c b/epan/dissectors/packet-t124.c
index a103755aee..2231d05ae9 100644
--- a/epan/dissectors/packet-t124.c
+++ b/epan/dissectors/packet-t124.c
@@ -1679,11 +1679,16 @@ dissect_t124_DataPriority(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U
}
+static const int * Segmentation_bits[] = {
+ &hf_t124_Segmentation_begin,
+ &hf_t124_Segmentation_end,
+ NULL
+};
static int
dissect_t124_Segmentation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
- 2, 2, FALSE, NULL, NULL);
+ 2, 2, FALSE, Segmentation_bits, 2, NULL, NULL);
return offset;
}