From Mike Morrin:
[obnox/wireshark/wip.git] / asn1 / gsm_map / packet-gsm_map-template.h
1 /* packet-gsm_map-template.h
2  * Routines for GSM MAP packet dissection
3  * Copyright 2004 - 2006, Anders Broman <anders.broman@ericsson.com>
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef PACKET_GSM_MAP_H
27 #define PACKET_GSM_MAP_H
28
29 /* Defines for the GSM MAP taps */
30 #define GSM_MAP_MAX_NUM_OPR_CODES       256
31
32 typedef struct _gsm_map_tap_rec_t {
33     gboolean            invoke;
34     guint8              opr_code_idx;
35     guint16             size;
36 } gsm_map_tap_rec_t;
37
38
39 #define SMS_ENCODING_NOT_SET    0
40 #define SMS_ENCODING_7BIT               1
41 #define SMS_ENCODING_8BIT               2
42 #define SMS_ENCODING_UCS2               3
43 #define SMS_ENCODING_7BIT_LANG  4
44 #define SMS_ENCODING_UCS2_LANG  5
45
46 WS_VAR_IMPORT const value_string gsm_map_opr_code_strings[];
47 const char* unpack_digits(tvbuff_t *tvb, int offset);
48
49 extern const value_string ssCode_vals[];
50 extern const value_string gsm_map_PDP_Type_Organisation_vals[];
51 extern const value_string gsm_map_ietf_defined_pdp_vals[];
52 extern const value_string gsm_map_etsi_defined_pdp_vals[];
53
54 guint8 dissect_cbs_data_coding_scheme(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint16 offset);
55 void dissect_gsm_map_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree);
56
57 #include "packet-gsm_map-exp.h"
58
59
60 #endif  /* PACKET_GSM_MAP_H */