| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-e164.h
1/* packet-e164.h
2 * E164 tables
3 * Copyright 2004, Anders Broman <anders.broman@ericsson.com>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12#ifndef __PACKET_E164_H__
13#define __PACKET_E164_H__
14
15#include <wsutil/value_string.h>
16#include "ws_symbol_export.h"
17
18extern const value_string E164_country_code_value[];
19extern const value_string E164_ISO3166_country_code_short_value[];
20extern value_string_ext E164_ISO3166_country_code_short_value_ext;
21extern const value_string E164_International_Networks_vals[];
22
23#define E164_NA_INTERNATIONAL_NUMBER 4
24
25typedef enum {
26 NONE,
27 CALLING_PARTY_NUMBER,
28 CALLED_PARTY_NUMBER
29} e164_number_type_t;
30
31 typedef struct {
32 e164_number_type_t e164_number_type;
33 unsigned nature_of_address;
34 const char *E164_number_str; /* E164 number string */
35 unsigned E164_number_length; /* Length of the E164_number string */
36} e164_info_t;
37
38typedef enum {
39 E164_ENC_BINARY,
40 E164_ENC_BCD,
41 E164_ENC_UTF8
42} e164_encoding_t;
43
44extern void dissect_e164_number(tvbuff_t *tvb, proto_tree *tree, int offset, int length, e164_info_t e164_info);
45WS_DLL_PUBLIC void dissect_e164_cc(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, int offset, e164_encoding_t encoding);
46WS_DLL_PUBLIC const char * dissect_e164_msisdn(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, int offset, int length, e164_encoding_t encoding);
47WS_DLL_PUBLIC const char * dissect_e164_isdn(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, int offset, int length, e164_encoding_t encoding);
48#endif
_packet_info
Definition packet_info.h:43
_proto_node
Definition proto.h:907
_value_string_ext
Extended metadata for a value_string array.
Definition value_string.h:325
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
e164_info_t
Definition packet-e164.h:31
tvbuff
Definition tvbuff-int.h:35
value_string.h