aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter_3gpp.c
diff options
context:
space:
mode:
authorJoakim Karlsson <oakimk@gmail.com>2017-03-25 16:48:48 +0100
committerMichael Mann <mmann78@netscape.net>2017-03-26 11:51:52 +0000
commit457f4fbab0b6f66ed50bdfd663eb9f5e228c77dd (patch)
tree043a518f7bb95b65da83ad7dd43bcf0623715023 /epan/dissectors/packet-diameter_3gpp.c
parenta5b61039424788dfb7c0e9fc1b8b89bf5863a2d0 (diff)
diameter: Improvement of AVP 8
Will now show country and operator Same as Ic16623c226228ab0c3e31d33cda81953c80551d6 Change-Id: Iecae92d531b9d37254573894f0e7e7f2e2a970aa Reviewed-on: https://code.wireshark.org/review/20708 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-diameter_3gpp.c')
-rw-r--r--epan/dissectors/packet-diameter_3gpp.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/dissectors/packet-diameter_3gpp.c b/epan/dissectors/packet-diameter_3gpp.c
index 0aa2c277f0..0db68c073d 100644
--- a/epan/dissectors/packet-diameter_3gpp.c
+++ b/epan/dissectors/packet-diameter_3gpp.c
@@ -427,6 +427,20 @@ static dissector_handle_t xml_handle;
/* Forward declarations */
static int dissect_diameter_3gpp_ipv6addr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_);
+/*
+ * AVP Code: 8 IMSI-MNC-MCC
+ */
+static int
+dissect_diameter_3gpp_imsi_mnc_mcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
+{
+ guint32 str_len;
+
+ str_len = tvb_reported_length(tvb);
+ dissect_e212_mcc_mnc_in_utf8_address(tvb, pinfo, tree, 0);
+
+ return str_len;
+}
+
/* AVP Code: 15 3GPP-SGSN-IPv6-Address */
static int
dissect_diameter_3gpp_sgsn_ipv6_address(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
@@ -2063,6 +2077,9 @@ proto_reg_handoff_diameter_3gpp(void)
/* AVP Code: 5 3GPP-GPRS Negotiated QoS profile */
/* Registered by packet-gtp.c */
+ /* AVP Code: 8 3GPP-IMSI-MNC-MCC */
+ dissector_add_uint("diameter.3gpp", 8, create_dissector_handle(dissect_diameter_3gpp_imsi_mnc_mcc, proto_diameter_3gpp));
+
/* AVP Code: 15 3GPP-SGSN-IPv6-Address */
dissector_add_uint("diameter.3gpp", 15, create_dissector_handle(dissect_diameter_3gpp_sgsn_ipv6_address, proto_diameter_3gpp));