aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-umts_fp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.mathieson@keysight.com>2022-12-28 19:17:08 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2022-12-30 11:56:41 +0000
commitdfd3a4d61bca3a61171ae60eafe259f2bf512817 (patch)
treeb68ac4444687bba507de28ef6585fa77f33cd5d4 /epan/dissectors/packet-umts_fp.c
parenta661ebaae2a187e2d11c1d83f1896ace9cd86313 (diff)
check_tfs: find entries that define value_string identical to common tfs
Diffstat (limited to 'epan/dissectors/packet-umts_fp.c')
-rw-r--r--epan/dissectors/packet-umts_fp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 1cc0942ea8..a3a6e0600c 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -312,12 +312,6 @@ static const value_string frame_type_vals[] = {
{ 0, NULL }
};
-static const value_string direction_vals[] = {
- { 0, "Downlink" },
- { 1, "Uplink" },
- { 0, NULL }
-};
-
static const value_string crci_vals[] = {
{ 0, "Correct" },
{ 1, "Not correct" },
@@ -5911,7 +5905,7 @@ dissect_fp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
}
/* Add link direction as a generated field */
- ti = proto_tree_add_uint(fp_tree, hf_fp_direction, tvb, 0, 0, p_fp_info->is_uplink);
+ ti = proto_tree_add_boolean(fp_tree, hf_fp_direction, tvb, 0, 0, p_fp_info->is_uplink);
proto_item_set_generated(ti);
/* Don't currently handle IuR-specific formats, but it's useful to even see
@@ -6106,7 +6100,7 @@ void proto_register_fp(void)
},
{ &hf_fp_direction,
{ "Direction",
- "fp.direction", FT_UINT8, BASE_HEX, VALS(direction_vals), 0x0,
+ "fp.direction", FT_BOOLEAN, 8, TFS(&tfs_uplink_downlink), 0x0,
"Link direction", HFILL
}
},