aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-e212.h
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2014-08-19 22:50:17 -0400
committerJeff Morriss <jeff.morriss.ws@gmail.com>2014-08-20 02:55:09 +0000
commitb9a94f009eb0bdecca27caf3e892cc58932c9eab (patch)
treedf111ab01376ae9eaa7add7ff9e996a00d64e31e /epan/dissectors/packet-e212.h
parent9d7784dfeb053cc468290e76eff0efaacf04b9b5 (diff)
Add a routine to dissect an UTF8-encoded IMSI (as you'd find in Diameter) and use it to decode the User-Name AVP of S6a/S6d messages.
Also clean up some white space/formatting. Change-Id: Idf2d4cad2af1826b24de7d59407ffeb36100c19b Reviewed-on: https://code.wireshark.org/review/3742 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-e212.h')
-rw-r--r--epan/dissectors/packet-e212.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/epan/dissectors/packet-e212.h b/epan/dissectors/packet-e212.h
index ec865cde25..257f8a9c27 100644
--- a/epan/dissectors/packet-e212.h
+++ b/epan/dissectors/packet-e212.h
@@ -42,14 +42,26 @@ int dissect_e212_mcc_mnc_in_address(tvbuff_t *tvb, packet_info *pinfo, proto_tre
* Given a tvbuff, an offset into the tvbuff, and a length that starts
* at that offset, fetch BCD encoded digits from a tvbuff starting from either
* the low or high half byte, formatting the digits according to a digit
- * set of 0-9 returning "?" for overdecadic digits create a string in the tree and a corresponding filter
+ * set of 0-9 returning "?" for overdecadic digits and then
+ * create a string in the tree and a corresponding filter
*
* Note a tvbuff content of 0xf is considered a 'filler' and will end the
* conversion.
- * the wmem allocated string will be returned.
+ * A wmem allocated string will be returned.
*/
WS_DLL_PUBLIC
const gchar * dissect_e212_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length, gboolean skip_first);
+/**
+ *
+ * Given a tvbuff, an offset into the tvbuff, and a length that starts
+ * at that offset, fetch UTF8-encoded digits from the tvbuff and then
+ * create a string in the tree and a corresponding filter.
+ *
+ * The wmem allocated string will be returned.
+ */
+WS_DLL_PUBLIC
+const gchar * dissect_e212_utf8_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length);
+
#endif /* __PACKET_E212_H__ */