2006-01-26 06:54:52 +00:00
|
|
|
/* packet-e212.h
|
|
|
|
* E212 tables
|
|
|
|
* Copyright 2006, Anders Broman <anders.broman@ericsson.com>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2006-01-26 06:54:52 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2006-01-26 06:54:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_E212_H__
|
|
|
|
#define __PACKET_E212_H__
|
|
|
|
|
2009-08-21 20:25:24 +00:00
|
|
|
#include <epan/value_string.h>
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
2006-01-26 06:54:52 +00:00
|
|
|
|
2010-10-13 18:51:23 +00:00
|
|
|
extern value_string_ext E212_codes_ext;
|
2006-01-26 06:54:52 +00:00
|
|
|
|
2016-11-05 16:21:23 +00:00
|
|
|
extern value_string_ext mcc_mnc_2digits_codes_ext;
|
|
|
|
|
|
|
|
extern value_string_ext mcc_mnc_3digits_codes_ext;
|
2016-09-19 12:40:11 +00:00
|
|
|
|
2015-01-09 15:39:47 +00:00
|
|
|
typedef enum {
|
2015-02-13 17:05:26 +00:00
|
|
|
E212_NONE,
|
|
|
|
E212_LAI,
|
|
|
|
E212_RAI,
|
2016-10-25 08:29:54 +00:00
|
|
|
E212_SAI,
|
|
|
|
E212_CGI,
|
|
|
|
E212_ECGI,
|
2018-08-09 14:43:48 +00:00
|
|
|
E212_TAI,
|
|
|
|
E212_NRCGI
|
2015-01-09 15:39:47 +00:00
|
|
|
} e212_number_type_t;
|
|
|
|
|
|
|
|
gchar* dissect_e212_mcc_mnc_wmem_packet_str(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, e212_number_type_t number_type, gboolean little_endian);
|
2014-08-19 12:24:13 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2015-01-14 12:47:08 +00:00
|
|
|
int dissect_e212_mcc_mnc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, e212_number_type_t number_type, gboolean little_endian);
|
2014-08-19 12:24:13 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-02-01 21:19:56 +00:00
|
|
|
int dissect_e212_mcc_mnc_in_address(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset);
|
2006-01-26 06:54:52 +00:00
|
|
|
|
2016-10-27 19:18:13 +00:00
|
|
|
WS_DLL_PUBLIC
|
|
|
|
int dissect_e212_mcc_mnc_in_utf8_address(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset);
|
|
|
|
|
2014-08-19 12:24:13 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* 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
|
2014-08-20 02:50:17 +00:00
|
|
|
* set of 0-9 returning "?" for overdecadic digits and then
|
|
|
|
* create a string in the tree and a corresponding filter
|
2014-08-19 12:24:13 +00:00
|
|
|
*
|
|
|
|
* Note a tvbuff content of 0xf is considered a 'filler' and will end the
|
|
|
|
* conversion.
|
2014-08-20 02:50:17 +00:00
|
|
|
* A wmem allocated string will be returned.
|
2014-08-19 12:24:13 +00:00
|
|
|
*/
|
|
|
|
WS_DLL_PUBLIC
|
|
|
|
const gchar * dissect_e212_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length, gboolean skip_first);
|
|
|
|
|
2014-08-20 02:50:17 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* 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);
|
|
|
|
|
2014-10-14 19:58:21 +00:00
|
|
|
#endif /* __PACKET_E212_H__ */
|
|
|
|
|
2014-09-29 18:07:49 +00:00
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-09-29 18:07:49 +00:00
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|