aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-e164.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-08-26 14:49:24 +0200
committerAnders Broman <a.broman58@gmail.com>2014-09-01 05:07:20 +0000
commita11b7bfc34268c93b370e3a66cb68aad7ea180a9 (patch)
treef0db355d917e0aea0a02569f8e415e8f0e4df6a7 /epan/dissectors/packet-e164.c
parent5e6e0600c5cc4144bbdc84180a884b0bf258f50d (diff)
Use a common hf for international E164 numbers (MSISDN).
Change-Id: Ie0103c04033d7bf69c92947b789ba4f5a300a74b Reviewed-on: https://code.wireshark.org/review/3863 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-e164.c')
-rw-r--r--epan/dissectors/packet-e164.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-e164.c b/epan/dissectors/packet-e164.c
index 9c9f9c5c8f..71c4ea9e03 100644
--- a/epan/dissectors/packet-e164.c
+++ b/epan/dissectors/packet-e164.c
@@ -415,8 +415,10 @@ static int hf_E164_country_code = -1;
static int ett_e164_msisdn = -1;
void
-dissect_e164_number(tvbuff_t *tvb, proto_tree *tree, int offset, int length,e164_info_t e164_info)
+dissect_e164_number(tvbuff_t *tvb, proto_tree *tree, int offset, int length, e164_info_t e164_info)
{
+ proto_item *pi;
+
switch (e164_info.e164_number_type) {
case CALLING_PARTY_NUMBER:
proto_tree_add_string(tree, hf_E164_calling_party_number, tvb, offset,
@@ -432,6 +434,10 @@ dissect_e164_number(tvbuff_t *tvb, proto_tree *tree, int offset, int length,e164
break;
}
+ if(e164_info.nature_of_address == E164_NA_INTERNATIONAL_NUMBER){
+ pi = proto_tree_add_string(tree, hf_E164_number, tvb, offset, length, e164_info.E164_number_str);
+ PROTO_ITEM_SET_HIDDEN(pi);
+ }
}
void