Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
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 <epan/value_string.h>
16 #include "ws_symbol_export.h"
17 
18 extern const value_string E164_country_code_value[];
19 extern const value_string E164_International_Networks_vals[];
20 
21 #define E164_NA_INTERNATIONAL_NUMBER 4
22 
23 typedef enum {
24  NONE,
25  CALLING_PARTY_NUMBER,
26  CALLED_PARTY_NUMBER
27 } e164_number_type_t;
28 
29 typedef struct {
30  e164_number_type_t e164_number_type;
31  guint nature_of_address;
32  const char *E164_number_str; /* E164 number string */
33  guint E164_number_length; /* Length of the E164_number string */
34 } e164_info_t;
35 
36 typedef enum {
37  E164_ENC_BINARY,
38  E164_ENC_BCD,
39  E164_ENC_UTF8
40 } e164_encoding_t;
41 
42 extern void dissect_e164_number(tvbuff_t *tvb, proto_tree *tree, int offset, int length, e164_info_t e164_info);
43 WS_DLL_PUBLIC void dissect_e164_cc(tvbuff_t *tvb, proto_tree *tree, int offset, e164_encoding_t encoding);
44 WS_DLL_PUBLIC const gchar * dissect_e164_msisdn(tvbuff_t *tvb, proto_tree *tree, int offset, int length, e164_encoding_t encoding);
45 #endif
Definition: tvbuff-int.h:35
Definition: packet-e164.h:29
Definition: value_string.h:24
Definition: proto.h:759