aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_gm.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-10-31 16:19:46 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-10-31 16:19:46 +0000
commit361adb382200a15c1f35c57ea6edbda7ae57267f (patch)
tree8a32a0c05e6e44d2cc62e58434c50eda9da79344 /epan/dissectors/packet-gsm_a_gm.c
parent09945d2ac9d7480d0a2dc6a557c982a1781e76c7 (diff)
Make APN name a filterable item.
Fixes part of bug 7932. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7932 svn path=/trunk/; revision=45850
Diffstat (limited to 'epan/dissectors/packet-gsm_a_gm.c')
-rw-r--r--epan/dissectors/packet-gsm_a_gm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c
index 2e05c9d7dd..7862104614 100644
--- a/epan/dissectors/packet-gsm_a_gm.c
+++ b/epan/dissectors/packet-gsm_a_gm.c
@@ -303,6 +303,7 @@ static int hf_gsm_a_gm_nsapi_13_ul_stat = -1;
static int hf_gsm_a_gm_nsapi_14_ul_stat = -1;
static int hf_gsm_a_gm_nsapi_15_ul_stat = -1;
static int hf_gsm_a_gm_device_prop_low_prio = -1;
+static int hf_gsm_a_gm_apn = -1;
static int hf_gsm_a_gm_pco_pid = -1;
static int hf_gsm_a_gm_pco_app_spec_info = -1;
static int hf_gsm_a_gm_type_of_identity = -1;
@@ -3868,10 +3869,7 @@ de_sm_apn(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g
curr_len += step+1;
}
- proto_tree_add_text(tree,
- tvb, curr_offset, len,
- "APN: %s %s", str+1, add_string ? add_string : "");
-
+ proto_tree_add_string(tree, hf_gsm_a_gm_apn, tvb, curr_offset+1, len-1, str+1);
curr_offset += len;
EXTRANEOUS_DATA_CHECK_EXPERT(len, curr_offset - offset, pinfo);
@@ -7504,6 +7502,11 @@ proto_register_gsm_a_gm(void)
FT_BOOLEAN, BASE_NONE, TFS(&gsm_a_gm_device_prop_low_prio_value), 0x0,
NULL, HFILL }
},
+ { &hf_gsm_a_gm_apn,
+ { "APN", "gsm_a.gm.gmm.apn",
+ FT_STRING,BASE_NONE, NULL,0x0,
+ NULL, HFILL }
+ },
{ &hf_gsm_a_gm_pco_pid,
{ "Protocol or Container ID", "gsm_a.gm.sm.pco_pid",
FT_UINT16, BASE_DEC, NULL, 0x0,