Get rid of get_ber_last_reated_item() and fix dissection of wIN-TriggerList.
[obnox/wireshark/wip.git] / epan / dissectors / packet-gsm_a.h
1 /* packet-gsm_a.h
2  *
3  * $Id$
4  *
5  * Copyright 2003, Michael Lum <mlum [AT] telostech.com>,
6  * In association with Telos Technology Inc.
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25  */
26 #ifndef __PACKET_GSM_A_H__
27 #define __PACKET_GSM_A_H__
28
29 /*
30  * this enum must be kept in-sync with 'gsm_a_pd_str'
31  * it is used as an index into the array
32  */
33 typedef enum
34 {
35     PD_GCC = 0,
36     PD_BCC,
37     PD_RSVD_1,
38     PD_CC,
39     PD_GTTP,
40     PD_MM,
41     PD_RR,
42     PD_UNK_1,
43     PD_GMM,
44     PD_SMS,
45     PD_SM,
46     PD_SS,
47     PD_LCS,
48     PD_UNK_2,
49     PD_RSVD_EXT,
50     PD_RSVD_TEST
51 }
52 gsm_a_pd_str_e;
53
54 typedef struct _gsm_a_tap_rec_t {
55     /*
56      * value from packet-bssap.h
57      */
58     guint8              pdu_type;
59     guint8              message_type;
60     gsm_a_pd_str_e      protocol_disc;
61 } gsm_a_tap_rec_t;
62
63 void dissect_bssmap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
64
65 void dtap_mm_mm_info(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len);
66
67 guint8 be_cell_id_aux(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len, guint8 disc);
68 guint8 be_cell_id_list(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
69 guint8 be_chan_type(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
70
71 guint8 de_lai(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
72 guint8 de_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
73 guint8 de_cell_id(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
74
75 guint8 de_ms_cm_1(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
76 guint8 de_ms_cm_2(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
77
78 guint8 de_sm_apn(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
79 guint8 de_sm_qos(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
80 guint8 de_sm_pflow_id(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
81
82 guint8 de_gmm_drx_param(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
83 guint8 de_gmm_ms_net_cap(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
84 guint8 de_gmm_rai(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
85 guint8 de_gmm_ms_radio_acc_cap(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
86
87 guint8 de_rr_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
88 guint8 de_rr_cell_dsc(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
89 guint8 de_rr_ch_mode(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
90 guint8 de_rr_chnl_needed(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
91 guint8 de_rr_cip_mode_set(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
92 guint8 de_rr_cm_enq_mask(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
93 guint8 de_rr_multirate_conf(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
94 guint8 de_rr_sus_cau(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
95 guint8 de_rr_tlli(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len);
96
97 guint8 de_rej_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
98
99 void dtap_rr_ho_cmd(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len);
100
101 /*
102  * the following allows TAP code access to the messages
103  * without having to duplicate it. With MSVC and a 
104  * libwireshark.dll, we need a special declaration.
105  */
106 WS_VAR_IMPORT const value_string gsm_a_bssmap_msg_strings[];
107 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_mm_strings[];
108 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_rr_strings[];
109 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_cc_strings[];
110 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_gmm_strings[];
111 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_sms_strings[];
112 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_sm_strings[];
113 WS_VAR_IMPORT const value_string gsm_a_dtap_msg_ss_strings[];
114 WS_VAR_IMPORT const gchar *gsm_a_pd_str[];
115
116 extern const value_string gsm_a_qos_del_of_err_sdu_vals[];
117 extern const value_string gsm_a_qos_del_order_vals[];
118 extern const value_string gsm_a_qos_traffic_cls_vals[];
119 extern const value_string gsm_a_qos_ber_vals[];
120 extern const value_string gsm_a_qos_sdu_err_rat_vals[];
121 extern const value_string gsm_a_qos_traff_hdl_pri_vals[];
122
123 extern const value_string gsm_a_type_of_number_values[];
124 extern const value_string gsm_a_numbering_plan_id_values[]; 
125
126 #endif /* __PACKET_GSM_A_H__ */