aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2014-08-20 22:47:22 -0400
committerJeff Morriss <jeff.morriss.ws@gmail.com>2014-08-21 13:01:22 +0000
commita3d8f31ad0a48f72cd6d8fa2b0c3659c9ea84745 (patch)
tree48dfaefaf4298963c9a7c132d34e2f08da15ac4e /epan/dissectors/packet-diameter.c
parentc7c4abaab00ce1a8bc35e326c80095e9cc47584e (diff)
Add a function to dissect an E.164 (MSISDN) number in UTF8 format and use it
in the Diameter dissector. This new API adds a filter for the MSISDN as well as a subtree and filter for the Country Code. Change-Id: Ibcbf4b5f72178b7e4af63efa7496188d608a9de7 Reviewed-on: https://code.wireshark.org/review/3760 Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com> Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r--epan/dissectors/packet-diameter.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c
index 6478f588be..b86977331d 100644
--- a/epan/dissectors/packet-diameter.c
+++ b/epan/dissectors/packet-diameter.c
@@ -65,6 +65,7 @@
#include "packet-tcp.h"
#include "packet-diameter.h"
#include "packet-e212.h"
+#include "packet-e164.h"
void proto_register_diameter(void);
void proto_reg_handoff_diameter(void);
@@ -514,9 +515,9 @@ dissect_diameter_subscription_id_data(tvbuff_t *tvb, packet_info *pinfo, proto_t
dissect_e212_utf8_imsi(tvb, pinfo, tree, 0, str_len);
return str_len;
case SUBSCRIPTION_ID_TYPE_E164:
- /* TODO:
- * dissect_e164_utf8_number()
- */
+ str_len = tvb_reported_length(tvb);
+ dissect_e164_utf8_number(tvb, tree, 0, str_len);
+ return str_len;
break;
}