5 * Copyright 2003, Michael Lum <mlum [AT] telostech.com>,
6 * In association with Telos Technology Inc.
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
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.
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.
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.
26 #ifndef __PACKET_GSM_A_H__
27 #define __PACKET_GSM_A_H__
30 * this enum must be kept in-sync with 'gsm_a_pd_str'
31 * it is used as an index into the array
54 typedef struct _gsm_a_tap_rec_t {
56 * value from packet-bssap.h
60 gsm_a_pd_str_e protocol_disc;
63 void dissect_bssmap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
65 void dtap_mm_mm_info(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len);
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);
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);
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);
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);
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);
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);
97 guint8 de_rej_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
99 void dtap_rr_ho_cmd(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len);
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.
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[];
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[];
123 extern const value_string gsm_a_type_of_number_values[];
124 extern const value_string gsm_a_numbering_plan_id_values[];
126 #endif /* __PACKET_GSM_A_H__ */