aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_common.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2012-08-01 14:07:18 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2012-08-01 14:07:18 +0000
commit6c8d938dd4c3e8f61e900f69a13b3568dc19dbe0 (patch)
treebad3527dc12990037418607cd8973b8aeb809e33 /epan/dissectors/packet-gsm_a_common.c
parent1cd8b5b0cc7b43eaf3a8e2ca64033615abcb54cc (diff)
Follow-up of r44162: clean more filters
svn path=/trunk/; revision=44187
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r--epan/dissectors/packet-gsm_a_common.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c
index 61e5d3d2b2..ac2b2d855c 100644
--- a/epan/dissectors/packet-gsm_a_common.c
+++ b/epan/dissectors/packet-gsm_a_common.c
@@ -68,6 +68,12 @@ const value_string gsm_common_elem_strings[] = {
{ 0, NULL }
};
+static const true_false_string gsm_a_extension_value = {
+ "No Extension",
+ "Extended"
+};
+
+
/* Mobile Station Classmark Value strings
*/
@@ -555,11 +561,14 @@ static int hf_gsm_a_tmgi_mcc_mnc_ind = -1;
static int hf_gsm_a_mbs_ses_id_ind = -1;
static int hf_gsm_a_mbs_service_id = -1;
static int hf_gsm_a_mbs_session_id = -1;
+static int hf_gsm_a_length = -1;
+int hf_gsm_a_extension = -1;
int hf_gsm_a_L3_protocol_discriminator = -1;
int hf_gsm_a_call_prio = -1;
int hf_gsm_a_skip_ind = -1;
int hf_gsm_a_spare_bits = -1;
int hf_gsm_a_lac = -1;
+
static int hf_gsm_a_spare_nibble = -1;
static int hf_gsm_a_type_of_ciph_alg = -1;
static int hf_gsm_a_att = -1;
@@ -3645,6 +3654,16 @@ proto_register_gsm_a_common(void)
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
+ { &hf_gsm_a_length,
+ { "Length", "gsm_a.len",
+ FT_UINT16, BASE_DEC, NULL, 0,
+ NULL, HFILL }
+ },
+ { &hf_gsm_a_extension,
+ { "Extension", "gsm_a.extension",
+ FT_BOOLEAN, 8, TFS(&gsm_a_extension_value), 0x80,
+ NULL, HFILL }
+ },
{ &hf_gsm_a_L3_protocol_discriminator,
{ "Protocol discriminator", "gsm_a.L3_protocol_discriminator",
FT_UINT8, BASE_HEX, VALS(protocol_discriminator_vals), 0x0f,
@@ -4328,7 +4347,7 @@ proto_register_gsm_a_common(void)
/* Register the protocol name and description */
proto_a_common =
- proto_register_protocol("GSM A-I/F COMMON", "GSM COMMON", "gsm_a_common");
+ proto_register_protocol("GSM A-I/F COMMON", "GSM COMMON", "gsm_a");
proto_register_field_array(proto_a_common, hf, array_length(hf));