aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_common.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.mathieson@keysight.com>2020-10-09 21:57:59 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2020-10-11 18:46:31 +0000
commit6894bccf0304d4500c171960726e177a9dc41038 (patch)
tree189470ce2eb10e83d6d51e1090d49cd76ca28aa8 /epan/dissectors/packet-gsm_a_common.c
parent6af49f053710f9d0e44dbe635a47ad47d511f16d (diff)
check_tfs.py: Also match case insensitively
Fix up some issues where the words were the same except for captitalisation.
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r--epan/dissectors/packet-gsm_a_common.c80
1 files changed, 36 insertions, 44 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c
index e01f99b520..bf7e98286f 100644
--- a/epan/dissectors/packet-gsm_a_common.c
+++ b/epan/dissectors/packet-gsm_a_common.c
@@ -210,10 +210,6 @@ static const true_false_string oddevenind_vals = {
"Even number of identity digits"
};
-static const true_false_string true_false_vals = {
- "true",
- "false"
-};
const value_string gsm_a_sms_vals[] = {
{ 0, "1/4 timeslot (~144 microseconds)" },
@@ -2249,10 +2245,6 @@ de_lai(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guin
* [3] 10.5.1.4 Mobile Identity
* 3GPP TS 24.008 version 7.8.0 Release 7
*/
-static const true_false_string gsm_a_present_vals = {
- "Present" ,
- "Not present"
-};
guint16
de_mid(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len)
@@ -4019,12 +4011,12 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_tmgi_mcc_mnc_ind,
{ "MCC/MNC indication", "gsm_a.tmgi_mcc_mnc_ind",
- FT_BOOLEAN, 8, TFS(&gsm_a_present_vals), 0x10,
+ FT_BOOLEAN, 8, TFS(&tfs_present_not_present), 0x10,
NULL, HFILL}
},
{ &hf_gsm_a_mbs_ses_id_ind,
{ "MBMS Session Identity indication", "gsm_a.mbs_session_id_ind",
- FT_BOOLEAN, 8, TFS(&gsm_a_present_vals), 0x20,
+ FT_BOOLEAN, 8, TFS(&tfs_present_not_present), 0x20,
NULL, HFILL}
},
{ &hf_gsm_a_mbs_service_id,
@@ -4124,17 +4116,17 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_pgsm_supported,
{ "P-GSM Supported", "gsm_a.classmark3.pgsmSupported",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_egsm_supported,
{ "E-GSM or R-GSM Supported", "gsm_a.classmark3.egsmSupported",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_gsm1800_supported,
{ "GSM 1800 Supported", "gsm_a.classmark3.gsm1800Supported",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_ass_radio_cap1,
@@ -4154,7 +4146,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_rsupport,
{ "R Support", "gsm_a.classmark3.rsupport",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_r_capabilities,
@@ -4164,7 +4156,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_multislot_capabilities,
{ "HSCSD Multi Slot Capability", "gsm_a.classmark3.multislot_capabilities",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_multislot_class,
@@ -4179,12 +4171,12 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_extended_measurement_cap,
{ "Extended Measurement Capability", "gsm_a.classmark3.ext_meas_cap",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_ms_measurement_capability,
{ "MS measurement capability", "gsm_a.classmark3.ms_measurement_capability",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x0,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x0,
NULL, HFILL}
},
{ &hf_gsm_a_sms_value,
@@ -4199,7 +4191,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_ms_pos_method_cap_present,
{ "MS Positioning Method Capability present", "gsm_a.classmark3.ms_pos_method_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_ms_pos_method,
@@ -4234,7 +4226,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_ecsd_multi_slot_capability,
{ "ECSD Multi Slot Capability present", "gsm_a.classmark3.ecsd_multi_slot_capability",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_ecsd_multi_slot_class,
@@ -4244,7 +4236,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_8_psk_struct_present,
{ "8-PSK Struct present", "gsm_a.classmark3.8_psk_struct_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_8_psk_struct,
@@ -4259,7 +4251,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_8_psk_rf_power_capability_1_present,
{ "8-PSK RF Power Capability 1 present", "gsm_a.classmark3.8_psk_rf_power_capability_1_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_8_psk_rf_power_capability_1,
@@ -4269,7 +4261,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_8_psk_rf_power_capability_2_present,
{ "8-PSK RF Power Capability 2 present", "gsm_a.classmark3.8_psk_rf_power_capability_2_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_8_psk_rf_power_capability_2,
@@ -4279,7 +4271,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_gsm_400_band_info_present,
{ "GSM 400 Band Information present", "gsm_a.classmark3.gsm_400_band_info_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_gsm_400_bands_supported,
@@ -4294,7 +4286,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_gsm_850_assoc_radio_cap_present,
{ "GSM 850 Associated Radio Capability present", "gsm_a.classmark3.gsm_850_assoc_radio_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_gsm_850_assoc_radio_cap,
@@ -4304,7 +4296,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_gsm_1900_assoc_radio_cap_present,
{ "GSM 1900 Associated Radio Capability present", "gsm_a.classmark3.gsm_1900_assoc_radio_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_gsm_1900_assoc_radio_cap,
@@ -4329,7 +4321,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_dtm_e_gprs_multi_slot_info_present,
{ "DTM E/GPRS Multi Slot Information present", "gsm_a.classmark3.dtm_e_gprs_multi_slot_info_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_dtm_gprs_multi_slot_class,
@@ -4344,7 +4336,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_dtm_egprs_multi_slot_class_present,
{ "DTM EGPRS Multi Slot Class present", "gsm_a.classmark3.dtm_egprs_multi_slot_class_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_dtm_egprs_multi_slot_class,
@@ -4354,7 +4346,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_single_band_support,
{ "Single Band Support", "gsm_a.classmark3.single_band_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_gsm_band,
@@ -4364,7 +4356,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_gsm_750_assoc_radio_cap_present,
{ "GSM 750 Associated Radio Capability present", "gsm_a.classmark3.gsm_750_assoc_radio_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_gsm_750_assoc_radio_cap,
@@ -4384,7 +4376,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_ext_dtm_e_gprs_multi_slot_info_present,
{ "Extended DTM E/GPRS Multi Slot Information present", "gsm_a.classmark3.ext_dtm_e_gprs_info_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_ext_dtm_gprs_multi_slot_class,
@@ -4399,7 +4391,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_high_multislot_cap_present,
{ "High Multislot Capability present", "gsm_a.classmark3.high_multislot_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_high_multislot_cap,
@@ -4409,7 +4401,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_geran_iu_mode_support,
{ "GERAN Iu Mode Support", "gsm_a.classmark3.geran_iu_mode_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_geran_iu_mode_cap,
@@ -4444,7 +4436,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_t_gsm_400_band_info_present,
{ "T-GSM 400 Band Information present", "gsm_a.classmark3.gsm_400_band_info_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_t_gsm_400_bands_supported,
@@ -4459,7 +4451,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_t_gsm_900_assoc_radio_cap_present,
{ "T-GSM 900 Associated Radio Capability present", "gsm_a.classmark3.t_gsm_900_assoc_radio_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_t_gsm_900_assoc_radio_cap,
@@ -4479,7 +4471,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_dtm_e_gprs_high_multi_slot_info_present,
{ "DTM E/GPRS High Multi Slot Information present", "gsm_a.classmark3.dtm_e_gprs_high_mutli_slot_info_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_dtm_gprs_high_multi_slot_class,
@@ -4494,7 +4486,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_dtm_egprs_high_multi_slot_class_present,
{ "DTM EGPRS High Multi Slot Class present", "gsm_a.classmark3.dtm_egprs_high_multi_slot_class_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_dtm_egprs_high_multi_slot_class,
@@ -4509,7 +4501,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_gsm_710_assoc_radio_cap_present,
{ "GSM 710 Associated Radio Capability present", "gsm_a.classmark3.gsm_710_assoc_radio_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_gsm_710_assoc_radio_cap,
@@ -4519,7 +4511,7 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_t_gsm_810_assoc_radio_cap_present,
{ "T-GSM 810 Associated Radio Capability present", "gsm_a.classmark3.t_gsm_810_assoc_radio_cap_present",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_t_gsm_810_assoc_radio_cap,
@@ -4589,32 +4581,32 @@ proto_register_gsm_a_common(void)
},
{ &hf_gsm_a_geran_network_sharing_support,
{ "GERAN Network Sharing support", "gsm_a.classmark3.geran_network_sharing_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_eutra_wb_rsrq_support,
{ "E-UTRA Wideband RSRQ measurements support", "gsm_a.classmark3.eutra_wb_rsrq_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_er_band_support,
{ "ER Band support", "gsm_a.classmark3.er_band_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_utra_mfbi_support,
{ "UTRA Multiple Frequency Band Indicators support", "gsm_a.classmark3.utra_mfbi_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_eutra_mfbi_support,
{ "E-UTRA Multiple Frequency Band Indicators support", "gsm_a.classmark3.eutra_mfbi_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_ext_tsc_set_cap_support,
{ "Extended TSC Set Capability support", "gsm_a.classmark3.ext_tsc_set_cap_support",
- FT_BOOLEAN, BASE_NONE, TFS(&true_false_vals), 0x00,
+ FT_BOOLEAN, BASE_NONE, TFS(&tfs_true_false), 0x00,
NULL, HFILL}
},
{ &hf_gsm_a_ext_earfcn_value_range,