3 * Copyright 2006, Anders Broman <anders.broman@ericsson.com>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __PACKET_E212_H__
13 #define __PACKET_E212_H__
15 #include <epan/value_string.h>
16 #include "ws_symbol_export.h"
18 extern value_string_ext E212_codes_ext
;
20 extern value_string_ext mcc_mnc_2digits_codes_ext
;
22 extern value_string_ext mcc_mnc_3digits_codes_ext
;
38 char* dissect_e212_mcc_mnc_wmem_packet_str(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, e212_number_type_t number_type
, bool little_endian
);
41 int dissect_e212_mcc_mnc(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, e212_number_type_t number_type
, bool little_endian
);
44 int dissect_e212_mcc_mnc_in_address(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
);
47 int dissect_e212_mcc_mnc_in_utf8_address(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
, int offset
);
51 * Given a tvbuff, an offset into the tvbuff, and a length that starts
52 * at that offset, fetch BCD encoded digits from a tvbuff starting from either
53 * the low or high half byte, formatting the digits according to a digit
54 * set of 0-9 returning "?" for overdecadic digits and then
55 * create a string in the tree and a corresponding filter
57 * Note a tvbuff content of 0xf is considered a 'filler' and will end the
60 * When skip_first is true, the high bit of the skipped nibble is treated as a odd/even indicator,
61 * according to Figure 10.5.4/3GPP TS 24.008 Mobile Identity information element
63 * A wmem allocated string will be returned.
66 const char * dissect_e212_imsi(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, int length
, bool skip_first
);
70 * Given a tvbuff, an offset into the tvbuff, and a length that starts
71 * at that offset, fetch UTF8-encoded digits from the tvbuff and then
72 * create a string in the tree and a corresponding filter.
74 * The wmem allocated string will be returned.
77 const char * dissect_e212_utf8_imsi(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, int length
);
79 #endif /* __PACKET_E212_H__ */
82 * Editor modelines - https://www.wireshark.org/tools/modelines.html
87 * indent-tabs-mode: nil
90 * vi: set shiftwidth=4 tabstop=8 expandtab:
91 * :indentSize=4:tabSize=8:noTabs=true: