2008-08-24 17:42:30 +00:00
/* packet-gsm_a_gm.c
2012-01-21 02:39:59 +00:00
* Routines for GSM A Interface GPRS Mobility Management and GPRS Session Management
2008-08-24 17:42:30 +00:00
*
* Copyright 2003 , Michael Lum < mlum [ AT ] telostech . com >
* In association with Telos Technology Inc .
*
2012-01-21 02:39:59 +00:00
* Added the GPRS Mobility Management Protocol and
* the GPRS Session Management Protocol
2008-08-24 17:42:30 +00:00
* Copyright 2004 , Rene Pilz < rene . pilz [ AT ] ftw . com >
* In association with Telecommunications Research Center
* Vienna ( ftw . ) Betriebs - GmbH within the Project Metawin .
*
2009-12-22 20:36:20 +00:00
* Various updates , enhancements and fixes
* Copyright 2009 , Gerasimos Dimitriadis < dimeg [ AT ] intracom . gr >
* In association with Intracom Telecom SA
*
2008-08-24 17:42:30 +00:00
* Title 3 GPP Other
*
* Reference [ 7 ]
* Mobile radio interface Layer 3 specification ;
* Core network protocols ;
* Stage 3
* ( 3 GPP TS 24.008 version 5.9 .0 Release 5 )
*
* Reference [ 8 ]
* Mobile radio interface Layer 3 specification ;
* Core network protocols ;
* Stage 3
* ( 3 GPP TS 24.008 version 6.7 .0 Release 6 )
* ( 3 GPP TS 24.008 version 6.8 .0 Release 6 )
*
2009-10-20 03:13:56 +00:00
* Reference [ 9 ]
* Mobile radio interface Layer 3 specification ;
* Core network protocols ;
* Stage 3
2011-04-27 22:18:00 +00:00
* ( 3 GPP TS 24.008 version 9.6 .0 Release 9 )
2009-10-20 03:13:56 +00:00
*
2012-05-20 09:50:34 +00:00
* Reference [ 10 ]
* Mobile radio interface Layer 3 specification ;
* Core network protocols ;
* Stage 3
* ( 3 GPP TS 24.008 version 10.6 .1 Release 10 )
*
2012-10-02 12:46:21 +00:00
* Reference [ 11 ]
* Mobile radio interface Layer 3 specification ;
* Core network protocols ;
* Stage 3
2013-07-10 21:31:22 +00:00
* ( 3 GPP TS 24.008 version 11.7 .0 Release 11 )
2012-10-02 12:46:21 +00:00
*
2008-08-24 17:42:30 +00:00
* Wireshark - Network traffic analyzer
* By Gerald Combs < gerald @ wireshark . org >
* Copyright 1998 Gerald Combs
*
* This program is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation ; either version 2
* of the License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
2012-06-28 23:18:38 +00:00
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA .
2008-08-24 17:42:30 +00:00
*/
2012-09-20 02:03:38 +00:00
# include "config.h"
2008-08-24 17:42:30 +00:00
# include <string.h>
# include <epan/packet.h>
2011-01-21 09:31:25 +00:00
# include <epan/expert.h>
2008-08-24 17:42:30 +00:00
# include <epan/prefs.h>
# include <epan/tap.h>
# include <epan/asn1.h>
2013-08-30 14:49:55 +00:00
# include <epan/wmem/wmem.h>
2008-08-24 17:42:30 +00:00
# include "packet-bssap.h"
# include "packet-sccp.h"
# include "packet-ber.h"
# include "packet-q931.h"
# include "packet-gsm_a_common.h"
# include "packet-e212.h"
# include "packet-ppp.h"
2012-02-13 22:46:12 +00:00
# include "ipproto.h"
2008-08-24 17:42:30 +00:00
2013-12-15 23:44:12 +00:00
void proto_register_gsm_a_gm ( void ) ;
void proto_reg_handoff_gsm_a_gm ( void ) ;
2008-08-24 17:42:30 +00:00
/* PROTOTYPES/FORWARDS */
const value_string gsm_a_dtap_msg_gmm_strings [ ] = {
{ 0x01 , " Attach Request " } ,
{ 0x02 , " Attach Accept " } ,
{ 0x03 , " Attach Complete " } ,
{ 0x04 , " Attach Reject " } ,
{ 0x05 , " Detach Request " } ,
{ 0x06 , " Detach Accept " } ,
{ 0x08 , " Routing Area Update Request " } ,
{ 0x09 , " Routing Area Update Accept " } ,
{ 0x0a , " Routing Area Update Complete " } ,
{ 0x0b , " Routing Area Update Reject " } ,
{ 0x0c , " Service Request " } ,
{ 0x0d , " Service Accept " } ,
{ 0x0e , " Service Reject " } ,
{ 0x10 , " P-TMSI Reallocation Command " } ,
{ 0x11 , " P-TMSI Reallocation Complete " } ,
{ 0x12 , " Authentication and Ciphering Req " } ,
{ 0x13 , " Authentication and Ciphering Resp " } ,
{ 0x14 , " Authentication and Ciphering Rej " } ,
{ 0x1c , " Authentication and Ciphering Failure " } ,
{ 0x15 , " Identity Request " } ,
{ 0x16 , " Identity Response " } ,
{ 0x20 , " GMM Status " } ,
{ 0x21 , " GMM Information " } ,
{ 0 , NULL }
} ;
const value_string gsm_a_dtap_msg_sm_strings [ ] = {
{ 0x41 , " Activate PDP Context Request " } ,
{ 0x42 , " Activate PDP Context Accept " } ,
{ 0x43 , " Activate PDP Context Reject " } ,
{ 0x44 , " Request PDP Context Activation " } ,
{ 0x45 , " Request PDP Context Activation rej. " } ,
{ 0x46 , " Deactivate PDP Context Request " } ,
{ 0x47 , " Deactivate PDP Context Accept " } ,
{ 0x48 , " Modify PDP Context Request(Network to MS direction) " } ,
{ 0x49 , " Modify PDP Context Accept (MS to network direction) " } ,
{ 0x4a , " Modify PDP Context Request(MS to network direction) " } ,
{ 0x4b , " Modify PDP Context Accept (Network to MS direction) " } ,
{ 0x4c , " Modify PDP Context Reject " } ,
{ 0x4d , " Activate Secondary PDP Context Request " } ,
{ 0x4e , " Activate Secondary PDP Context Accept " } ,
{ 0x4f , " Activate Secondary PDP Context Reject " } ,
{ 0x50 , " Reserved: was allocated in earlier phases of the protocol " } ,
{ 0x51 , " Reserved: was allocated in earlier phases of the protocol " } ,
{ 0x52 , " Reserved: was allocated in earlier phases of the protocol " } ,
{ 0x53 , " Reserved: was allocated in earlier phases of the protocol " } ,
{ 0x54 , " Reserved: was allocated in earlier phases of the protocol " } ,
{ 0x55 , " SM Status " } ,
{ 0x56 , " Activate MBMS Context Request " } ,
{ 0x57 , " Activate MBMS Context Accept " } ,
{ 0x58 , " Activate MBMS Context Reject " } ,
{ 0x59 , " Request MBMS Context Activation " } ,
{ 0x5a , " Request MBMS Context Activation Reject " } ,
2011-04-27 22:18:00 +00:00
{ 0x5b , " Request Secondary PDP Context Activation " } ,
{ 0x5c , " Request Secondary PDP Context Activation Reject " } ,
{ 0x5d , " Notification " } ,
2008-08-24 17:42:30 +00:00
{ 0 , NULL }
} ;
2013-03-18 22:21:53 +00:00
static const value_string gsm_gm_elem_strings [ ] = {
2008-08-24 17:42:30 +00:00
/* GPRS Mobility Management Information Elements 10.5.5 */
2013-03-18 20:26:47 +00:00
{ DE_ADD_UPD_TYPE , " Additional Update Type " } ,
{ DE_ATTACH_RES , " Attach Result " } ,
{ DE_ATTACH_TYPE , " Attach Type " } ,
{ DE_CIPH_ALG , " Cipher Algorithm " } ,
{ DE_TMSI_STAT , " TMSI Status " } ,
{ DE_DETACH_TYPE , " Detach Type " } ,
{ DE_DRX_PARAM , " DRX Parameter " } ,
{ DE_FORCE_TO_STAND , " Force to Standby " } ,
{ DE_FORCE_TO_STAND_H , " Force to Standby " } ,
{ DE_P_TMSI_SIG , " P-TMSI Signature " } ,
{ DE_P_TMSI_SIG_2 , " P-TMSI Signature 2 " } ,
{ DE_ID_TYPE_2 , " Identity Type 2 " } ,
{ DE_IMEISV_REQ , " IMEISV Request " } ,
{ DE_REC_N_PDU_NUM_LIST , " Receive N-PDU Numbers List " } ,
{ DE_MS_NET_CAP , " MS Network Capability " } ,
{ DE_MS_RAD_ACC_CAP , " MS Radio Access Capability " } ,
{ DE_GMM_CAUSE , " GMM Cause " } ,
{ DE_RAI , " Routing Area Identification " } ,
{ DE_RAI_2 , " Routing Area Identification 2 " } ,
{ DE_UPD_RES , " Update Result " } ,
{ DE_UPD_TYPE , " Update Type " } ,
{ DE_AC_REF_NUM , " A&C Reference Number " } ,
{ DE_AC_REF_NUM_H , " A&C Reference Number " } ,
{ DE_SRVC_TYPE , " Service Type " } ,
{ DE_CELL_NOT , " Cell Notification " } ,
{ DE_PS_LCS_CAP , " PS LCS Capability " } ,
{ DE_NET_FEAT_SUP , " Network Feature Support " } ,
{ DE_ADD_NET_FEAT_SUP , " Additional Network Feature Support " } ,
{ DE_RAT_INFO_CONTAINER , " Inter RAT information container " } ,
{ DE_REQ_MS_INFO , " Requested MS information " } ,
{ DE_UE_NETWORK_CAP , " UE network capability " } ,
{ DE_EUTRAN_IRAT_INFO_CONTAINER , " E-UTRAN inter RAT information container " } ,
{ DE_VOICE_DOMAIN_PREF , " Voice domain preference and UE's usage setting " } ,
{ DE_PTMSI_TYPE , " P-TMSI type " } ,
{ DE_LAI_2 , " Location Area Identification 2 " } ,
{ DE_NET_RES_ID_CONT , " Network resource identifier container " } ,
2008-08-24 17:42:30 +00:00
/* Session Management Information Elements 10.5.6 */
2013-03-18 20:26:47 +00:00
{ DE_ACC_POINT_NAME , " Access Point Name " } ,
{ DE_NET_SAPI , " Network Service Access Point Identifier " } ,
{ DE_PRO_CONF_OPT , " Protocol Configuration Options " } ,
{ DE_PD_PRO_ADDR , " Packet Data Protocol Address " } ,
{ DE_QOS , " Quality Of Service " } ,
{ DE_SM_CAUSE , " SM Cause " } ,
{ DE_SM_CAUSE_2 , " SM Cause 2 " } ,
{ DE_LINKED_TI , " Linked TI " } ,
{ DE_LLC_SAPI , " LLC Service Access Point Identifier " } ,
{ DE_TEAR_DOWN_IND , " Tear Down Indicator " } ,
{ DE_PACKET_FLOW_ID , " Packet Flow Identifier " } ,
{ DE_TRAFFIC_FLOW_TEMPLATE , " Traffic Flow Template " } ,
{ DE_TMGI , " Temporary Mobile Group Identity (TMGI) " } ,
{ DE_MBMS_BEARER_CAP , " MBMS bearer capabilities " } ,
{ DE_MBMS_PROT_CONF_OPT , " MBMS protocol configuration options " } ,
{ DE_ENH_NSAPI , " Enhanced network service access point identifier " } ,
{ DE_REQ_TYPE , " Request type " } ,
{ DE_SM_NOTIF_IND , " Notification indicator " } ,
{ DE_SM_CONNECTIVITY_TYPE , " Connectivity type " } ,
2008-08-24 17:42:30 +00:00
/* GPRS Common Information Elements 10.5.7 */
2013-03-18 20:26:47 +00:00
{ DE_PDP_CONTEXT_STAT , " PDP Context Status " } ,
{ DE_RAD_PRIO , " Radio Priority " } ,
{ DE_GPRS_TIMER , " GPRS Timer " } ,
{ DE_GPRS_TIMER_2 , " GPRS Timer 2 " } ,
{ DE_GPRS_TIMER_3 , " GPRS Timer 3 " } ,
{ DE_RAD_PRIO_2 , " Radio Priority 2 " } ,
{ DE_MBMS_CTX_STATUS , " MBMS context status " } ,
{ DE_UPLINK_DATA_STATUS , " Uplink data status " } ,
{ DE_DEVICE_PROPERTIES , " Device properties " } ,
2008-08-24 17:42:30 +00:00
{ 0 , NULL }
} ;
2013-03-18 22:21:53 +00:00
value_string_ext gsm_gm_elem_strings_ext = VALUE_STRING_EXT_INIT ( gsm_gm_elem_strings ) ;
2008-08-24 17:42:30 +00:00
# define DTAP_GMM_IEI_MASK 0xff
# define DTAP_SM_IEI_MASK 0xff
/* Initialize the protocol and registered fields */
static int proto_a_gm = - 1 ;
static int hf_gsm_a_dtap_msg_gmm_type = - 1 ;
static int hf_gsm_a_dtap_msg_sm_type = - 1 ;
int hf_gsm_a_gm_elem_id = - 1 ;
2012-08-01 09:44:57 +00:00
static int hf_gsm_a_sm_qos_delay_cls = - 1 ;
static int hf_gsm_a_sm_qos_reliability_cls = - 1 ;
static int hf_gsm_a_sm_qos_traffic_cls = - 1 ;
static int hf_gsm_a_sm_qos_del_order = - 1 ;
static int hf_gsm_a_sm_qos_del_of_err_sdu = - 1 ;
static int hf_gsm_a_sm_qos_ber = - 1 ;
static int hf_gsm_a_sm_qos_sdu_err_rat = - 1 ;
static int hf_gsm_a_sm_qos_traff_hdl_pri = - 1 ;
2008-08-24 17:42:30 +00:00
2013-08-27 17:01:58 +00:00
static int hf_gsm_a_gmm_split_pg_cycle_code = - 1 ;
2008-08-24 17:42:30 +00:00
static int hf_gsm_a_gmm_split_on_ccch = - 1 ;
static int hf_gsm_a_gmm_non_drx_timer = - 1 ;
2013-08-27 17:01:58 +00:00
static int hf_gsm_a_gmm_cn_spec_drx_cycle_len_coef = - 1 ;
2008-08-24 17:42:30 +00:00
2012-08-01 09:44:57 +00:00
static int hf_gsm_a_gmm_ptmsi_sig = - 1 ;
static int hf_gsm_a_gmm_ptmsi_sig2 = - 1 ;
2008-08-24 17:42:30 +00:00
2012-08-01 09:44:57 +00:00
static int hf_gsm_a_sm_tft_op_code = - 1 ;
static int hf_gsm_a_sm_tft_e_bit = - 1 ;
static int hf_gsm_a_sm_tft_pkt_flt = - 1 ;
static int hf_gsm_a_sm_tft_pkt_flt_id = - 1 ;
static int hf_gsm_a_sm_tft_pkt_flt_dir = - 1 ;
2009-12-15 21:48:05 +00:00
static int hf_gsm_a_sm_ip4_address = - 1 ;
static int hf_gsm_a_sm_ip4_mask = - 1 ;
static int hf_gsm_a_sm_ip6_address = - 1 ;
static int hf_gsm_a_sm_ip6_mask = - 1 ;
2012-10-04 21:23:06 +00:00
static int hf_gsm_a_sm_ip6_prefix_length = - 1 ;
2012-08-01 09:44:57 +00:00
static int hf_gsm_a_sm_tft_protocol_header = - 1 ;
static int hf_gsm_a_sm_tft_port = - 1 ;
static int hf_gsm_a_sm_tft_port_low = - 1 ;
static int hf_gsm_a_sm_tft_port_high = - 1 ;
static int hf_gsm_a_sm_tft_security = - 1 ;
static int hf_gsm_a_sm_tft_traffic_class = - 1 ;
static int hf_gsm_a_sm_tft_traffic_mask = - 1 ;
static int hf_gsm_a_sm_tft_flow_label_type = - 1 ;
static int hf_gsm_a_sm_tft_param_id = - 1 ;
2009-05-14 18:26:18 +00:00
static int hf_gsm_a_gm_acc_tech_type = - 1 ;
static int hf_gsm_a_gm_acc_cap_struct_len = - 1 ;
static int hf_gsm_a_gm_sms_value = - 1 ;
static int hf_gsm_a_gm_sm_value = - 1 ;
2011-01-12 16:43:19 +00:00
static int hf_gsm_a_gm_link_dir = - 1 ;
2009-10-20 03:13:56 +00:00
static int hf_gsm_a_gm_cause = - 1 ;
2008-08-24 17:42:30 +00:00
2012-10-04 21:23:06 +00:00
static int hf_gsm_a_gm_add_upd_type = - 1 ;
2009-11-16 18:22:43 +00:00
static int hf_gsm_a_gm_fop = - 1 ;
static int hf_gsm_a_gm_res_of_attach = - 1 ;
2009-11-18 20:39:14 +00:00
static int hf_gsm_a_gm_type_of_ciph_alg = - 1 ;
static int hf_gsm_a_gm_imeisv_req = - 1 ;
static int hf_gsm_a_gm_ac_ref_nr = - 1 ;
static int hf_gsm_a_gm_force_to_standby = - 1 ;
static int hf_gsm_a_gm_serv_type = - 1 ;
2009-11-18 22:05:16 +00:00
static int hf_gsm_a_gm_for = - 1 ;
static int hf_gsm_a_gm_type_of_attach = - 1 ;
2009-11-18 22:41:08 +00:00
static int hf_gsm_a_gm_tmsi_flag = - 1 ;
2013-08-30 17:23:36 +00:00
static int hf_gsm_a_gm_power_off = - 1 ;
static int hf_gsm_a_gm_type_of_detach_mo = - 1 ;
static int hf_gsm_a_gm_type_of_detach_mt = - 1 ;
2009-11-18 22:41:08 +00:00
static int hf_gsm_a_gm_update_type = - 1 ;
2009-11-23 19:59:40 +00:00
static int hf_gsm_a_gm_gprs_timer_unit = - 1 ;
static int hf_gsm_a_gm_gprs_timer_value = - 1 ;
2012-05-20 09:50:34 +00:00
static int hf_gsm_a_gm_gprs_timer2_unit = - 1 ;
static int hf_gsm_a_gm_gprs_timer2_value = - 1 ;
static int hf_gsm_a_gm_gprs_timer3_unit = - 1 ;
static int hf_gsm_a_gm_gprs_timer3_value = - 1 ;
2011-04-27 22:18:00 +00:00
static int hf_gsm_a_gm_nsapi_5_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_6_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_7_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_8_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_9_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_10_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_11_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_12_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_13_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_14_ul_stat = - 1 ;
static int hf_gsm_a_gm_nsapi_15_ul_stat = - 1 ;
2012-05-20 09:50:34 +00:00
static int hf_gsm_a_gm_device_prop_low_prio = - 1 ;
2012-10-31 16:19:46 +00:00
static int hf_gsm_a_gm_apn = - 1 ;
2011-01-12 16:43:19 +00:00
static int hf_gsm_a_gm_pco_pid = - 1 ;
2012-05-22 20:34:20 +00:00
static int hf_gsm_a_gm_pco_app_spec_info = - 1 ;
2009-11-23 23:02:02 +00:00
static int hf_gsm_a_gm_type_of_identity = - 1 ;
2012-04-15 11:51:40 +00:00
int hf_gsm_a_gm_rac = - 1 ;
2009-11-29 23:23:27 +00:00
static int hf_gsm_a_gm_apc = - 1 ;
static int hf_gsm_a_gm_otd_a = - 1 ;
static int hf_gsm_a_gm_otd_b = - 1 ;
static int hf_gsm_a_gm_gps_a = - 1 ;
static int hf_gsm_a_gm_gps_b = - 1 ;
static int hf_gsm_a_gm_gps_c = - 1 ;
2012-05-20 20:56:42 +00:00
static int hf_gsm_a_gm_lcs_molr = - 1 ;
static int hf_gsm_a_gm_mbms = - 1 ;
static int hf_gsm_a_gm_ims_vops = - 1 ;
static int hf_gsm_a_gm_emc_bs = - 1 ;
2012-10-04 21:23:06 +00:00
static int hf_gsm_a_gm_gprs_sms = - 1 ;
2011-04-27 22:18:00 +00:00
static int hf_gsm_a_gm_req_ms_info_irat = - 1 ;
static int hf_gsm_a_gm_req_ms_info_irat2 = - 1 ;
static int hf_gsm_a_gm_ue_usage_setting = - 1 ;
static int hf_gsm_a_gm_voice_domain_pref_for_eutran = - 1 ;
2012-05-20 20:56:42 +00:00
static int hf_gsm_a_gm_ptmsi_type = - 1 ;
2012-10-02 12:46:21 +00:00
static int hf_gsm_a_gm_nri_cont = - 1 ;
2009-12-15 21:48:05 +00:00
static int hf_gsm_a_sm_pdp_type_org = - 1 ;
2012-08-01 09:44:57 +00:00
static int hf_gsm_a_sm_qos_mean_thr = - 1 ;
static int hf_gsm_a_sm_qos_peak_thr = - 1 ;
static int hf_gsm_a_sm_qos_prec_class = - 1 ;
static int hf_gsm_a_sm_qos_trans_delay = - 1 ;
static int hf_gsm_a_sm_qos_signalling_ind = - 1 ;
static int hf_gsm_a_sm_qos_source_stat_desc = - 1 ;
static int hf_gsm_a_sm_qos_max_bitrate_upl = - 1 ;
static int hf_gsm_a_sm_qos_max_bitrate_downl = - 1 ;
static int hf_gsm_a_sm_qos_guar_bitrate_upl = - 1 ;
static int hf_gsm_a_sm_qos_guar_bitrate_downl = - 1 ;
static int hf_gsm_a_sm_qos_max_bitrate_upl_ext = - 1 ;
static int hf_gsm_a_sm_qos_max_bitrate_downl_ext = - 1 ;
static int hf_gsm_a_sm_qos_guar_bitrate_upl_ext = - 1 ;
static int hf_gsm_a_sm_qos_guar_bitrate_downl_ext = - 1 ;
2012-10-04 21:23:06 +00:00
static int hf_gsm_a_sm_qos_max_bitrate_upl_ext2 = - 1 ;
static int hf_gsm_a_sm_qos_max_bitrate_downl_ext2 = - 1 ;
static int hf_gsm_a_sm_qos_guar_bitrate_upl_ext2 = - 1 ;
static int hf_gsm_a_sm_qos_guar_bitrate_downl_ext2 = - 1 ;
2009-12-20 23:17:40 +00:00
static int hf_gsm_a_sm_cause = - 1 ;
static int hf_gsm_a_sm_cause_2 = - 1 ;
2009-12-22 20:36:20 +00:00
static int hf_gsm_a_sm_llc_sapi = - 1 ;
static int hf_gsm_a_sm_tdi = - 1 ;
static int hf_gsm_a_sm_packet_flow_id = - 1 ;
2010-03-06 00:06:27 +00:00
static int hf_gsm_a_sm_tmgi = - 1 ;
static int hf_gsm_a_sm_enh_nsapi = - 1 ;
static int hf_gsm_a_sm_req_type = - 1 ;
2011-04-27 22:18:00 +00:00
static int hf_gsm_a_sm_notif_ind = - 1 ;
2012-05-20 09:50:34 +00:00
static int hf_gsm_a_sm_connectivity_type = - 1 ;
2011-01-17 13:09:08 +00:00
static int hf_gsm_a_gm_rac_ctrled_early_cm_sending = - 1 ;
2011-05-29 06:06:22 +00:00
static int hf_gsm_a_gm_rac_pseudo_sync = - 1 ;
static int hf_gsm_a_gm_rac_vgcs = - 1 ;
static int hf_gsm_a_gm_rac_vbs = - 1 ;
2011-01-17 13:09:08 +00:00
static int hf_gsm_a_gm_rac_multislot_capability = - 1 ;
2011-05-29 06:06:22 +00:00
static int hf_gsm_a_gm_rac_hscsd_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_gprs_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_gprs_ext_dyn_alloc_cap = - 1 ;
static int hf_gsm_a_gm_rac_ecsd_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_egprs_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_egprs_ext_dyn_alloc_cap = - 1 ;
static int hf_gsm_a_gm_rac_dtm_gprs_multi_slot_class = - 1 ;
2011-01-17 13:09:08 +00:00
static int hf_gsm_a_gm_rac_single_slt_dtm = - 1 ;
static int hf_gsm_a_gm_rac_dtm_egprs_multi_slot_cls_pres = - 1 ;
2011-05-29 06:06:22 +00:00
static int hf_gsm_a_gm_rac_dtm_egprs_multi_slot_class = - 1 ;
2011-01-17 13:09:08 +00:00
static int hf_gsm_a_gm_rac_8psk_pow_cap_pres = - 1 ;
static int hf_gsm_a_gm_rac_comp_int_meas_cap = - 1 ;
2010-07-14 12:01:05 +00:00
static int hf_gsm_a_gm_rel_lev_ind = - 1 ;
2011-01-16 22:32:22 +00:00
static int hf_gsm_a_gm_rac_geran_feat_pkg = - 1 ;
static int hf_gsm_a_gm_rac_umts_fdd_cap = - 1 ;
2011-01-17 13:09:08 +00:00
static int hf_gsm_a_gm_rac_umts_384_tdd_ra_cap = - 1 ;
static int hf_gsm_a_gm_rac_cdma2000_cap = - 1 ;
static int hf_gsm_a_gm_rac_umts_128_tdd_ra_cap = - 1 ;
2011-05-29 06:06:22 +00:00
static int hf_gsm_a_gm_rac_mod_based_multi_slot_class_support = - 1 ;
static int hf_gsm_a_gm_rac_geran_iu_mode_cap = - 1 ;
static int hf_gsm_a_gm_rac_flo_iu_cap = - 1 ;
static int hf_gsm_a_gm_rac_mult_tbf_cap = - 1 ;
static int hf_gsm_a_gm_rac_down_adv_rec_perf = - 1 ;
static int hf_gsm_a_gm_rac_ext_rlc_mac_ctrl_msg_seg_cap = - 1 ;
static int hf_gsm_a_gm_rac_dtm_enh_cap = - 1 ;
static int hf_gsm_a_gm_rac_dtm_gprs_high_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_dtm_egprs_high_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_ps_ho_cap = - 1 ;
static int hf_gsm_a_gm_rac_dtm_ho_cap = - 1 ;
static int hf_gsm_a_gm_rac_multi_slot_cap_red_down_dual_carrier = - 1 ;
static int hf_gsm_a_gm_rac_down_dual_carrier_dtm_cap = - 1 ;
static int hf_gsm_a_gm_rac_flex_ts_assign = - 1 ;
static int hf_gsm_a_gm_rac_gan_ps_ho_cap = - 1 ;
static int hf_gsm_a_gm_rac_rlc_non_pers_mode = - 1 ;
static int hf_gsm_a_gm_rac_reduced_lat_cap = - 1 ;
static int hf_gsm_a_gm_rac_ul_egprs2 = - 1 ;
static int hf_gsm_a_gm_rac_dl_egprs2 = - 1 ;
static int hf_gsm_a_gm_rac_eutra_fdd_support = - 1 ;
static int hf_gsm_a_gm_rac_eutra_tdd_support = - 1 ;
static int hf_gsm_a_gm_rac_geran_to_eutra_support_in_geran_ptm = - 1 ;
static int hf_gsm_a_gm_rac_prio_based_resel_support = - 1 ;
static int hf_gsm_a_gm_rac_alt_efta_multi_slot_class = - 1 ;
static int hf_gsm_a_gm_rac_efta_multi_slot_cap_red_down_dual_carrier = - 1 ;
static int hf_gsm_a_gm_rac_ind_up_layer_pdu_start_cap_for_rlc_um = - 1 ;
static int hf_gsm_a_gm_rac_emst_cap = - 1 ;
static int hf_gsm_a_gm_rac_mtti_cap = - 1 ;
static int hf_gsm_a_gm_rac_utra_csg_cell_report = - 1 ;
static int hf_gsm_a_gm_rac_eutra_csg_cell_report = - 1 ;
2012-05-20 20:56:42 +00:00
static int hf_gsm_a_gm_rac_dtr_cap = - 1 ;
static int hf_gsm_a_gm_rac_emsr_cap = - 1 ;
static int hf_gsm_a_gm_rac_fast_down_freq_switch_cap = - 1 ;
static int hf_gsm_a_gm_rac_tighter_cap = - 1 ;
2012-10-04 21:23:06 +00:00
static int hf_gsm_a_gm_rac_fanr_cap = - 1 ;
static int hf_gsm_a_gm_rac_ipa_cap = - 1 ;
2013-07-10 21:31:22 +00:00
static int hf_gsm_a_gm_rac_geran_nw_sharing_support = - 1 ;
2011-11-28 16:41:59 +00:00
static int hf_gsm_a_sm_ti_flag = - 1 ;
static int hf_gsm_a_sm_ext = - 1 ;
2009-12-22 20:36:20 +00:00
static int hf_gsm_a_gmm_net_cap_gea1 = - 1 ;
static int hf_gsm_a_gmm_net_cap_smdch = - 1 ;
static int hf_gsm_a_gmm_net_cap_smgprs = - 1 ;
static int hf_gsm_a_gmm_net_cap_ucs2 = - 1 ;
static int hf_gsm_a_gmm_net_cap_ss_scr_ind = - 1 ;
static int hf_gsm_a_gmm_net_cap_solsa = - 1 ;
static int hf_gsm_a_gmm_net_cap_rev = - 1 ;
static int hf_gsm_a_gmm_net_cap_pfc = - 1 ;
static int hf_gsm_a_gmm_net_cap_ext_gea_bits = - 1 ;
static int hf_gsm_a_gmm_net_cap_gea2 = - 1 ;
static int hf_gsm_a_gmm_net_cap_gea3 = - 1 ;
static int hf_gsm_a_gmm_net_cap_gea4 = - 1 ;
static int hf_gsm_a_gmm_net_cap_gea5 = - 1 ;
static int hf_gsm_a_gmm_net_cap_gea6 = - 1 ;
static int hf_gsm_a_gmm_net_cap_gea7 = - 1 ;
static int hf_gsm_a_gmm_net_cap_lcs = - 1 ;
static int hf_gsm_a_gmm_net_cap_ps_irat_iu = - 1 ;
static int hf_gsm_a_gmm_net_cap_ps_irat_s1 = - 1 ;
2011-04-27 22:18:00 +00:00
static int hf_gsm_a_gmm_net_cap_comb_proc = - 1 ;
2009-12-22 20:36:20 +00:00
static int hf_gsm_a_gmm_net_cap_isr = - 1 ;
static int hf_gsm_a_gmm_net_cap_srvcc_to_geran = - 1 ;
static int hf_gsm_a_gmm_net_cap_epc = - 1 ;
2011-04-27 22:18:00 +00:00
static int hf_gsm_a_gmm_net_cap_nf = - 1 ;
2012-10-04 21:23:06 +00:00
static int hf_gsm_a_gmm_net_geran_net_sharing = - 1 ;
2009-11-16 18:22:43 +00:00
2008-08-24 17:42:30 +00:00
/* Initialize the subtree pointers */
static gint ett_gmm_radio_cap = - 1 ;
2009-12-22 20:36:20 +00:00
static gint ett_gmm_network_cap = - 1 ;
2011-01-17 13:09:08 +00:00
static gint ett_gsm_a_gm_msrac_multislot_capability = - 1 ;
2008-08-24 17:42:30 +00:00
static gint ett_gmm_rai = - 1 ;
2009-11-23 19:59:40 +00:00
static gint ett_gmm_gprs_timer = - 1 ;
2008-08-24 17:42:30 +00:00
static gint ett_sm_tft = - 1 ;
2012-05-22 20:34:20 +00:00
static gint ett_sm_pco = - 1 ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
static expert_field ei_gsm_a_gm_extraneous_data = EI_INIT ;
2008-08-24 17:42:30 +00:00
static dissector_handle_t data_handle ;
2008-11-17 19:41:44 +00:00
static dissector_handle_t rrc_irat_ho_info_handle ;
2011-04-27 22:18:00 +00:00
static dissector_handle_t lte_rrc_ue_eutra_cap_handle ;
2008-08-24 17:42:30 +00:00
static dissector_table_t gprs_sm_pco_subdissector_table ; /* GPRS SM PCO PPP Protocols */
# define NUM_GSM_GM_ELEM (sizeof(gsm_gm_elem_strings) / sizeof(value_string))
gint ett_gsm_gm_elem [ NUM_GSM_GM_ELEM ] ;
2009-09-23 18:20:06 +00:00
static const gchar * pdp_str [ 2 ] = { " PDP-INACTIVE " , " PDP-ACTIVE " } ;
2008-11-17 19:41:44 +00:00
2008-08-24 17:42:30 +00:00
/*
2012-10-04 21:23:06 +00:00
* [ 9 ] 10.5 .5 .0 Additional Update Type
*/
static const true_false_string gsm_a_gm_add_upd_type_value = {
" SMS only " ,
" No additional information (shall be interpreted as request for combined attach or combined tracking area updating) "
} ;
static guint16
de_gmm_add_upd_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset , bit_offset ;
curr_offset = offset ;
bit_offset = ( curr_offset < < 3 ) + 4 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
bit_offset + = 3 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_add_upd_type , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
curr_offset + + ;
return ( curr_offset - offset ) ;
}
/*
2009-11-16 18:22:43 +00:00
* [ 9 ] 10.5 .5 .1 Attach result
2008-08-24 17:42:30 +00:00
*/
2009-11-16 18:22:43 +00:00
static const value_string gsm_a_gm_res_of_attach_vals [ ] = {
{ 0x01 , " GPRS only attached " } ,
{ 0x03 , " Combined GPRS/IMSI attached " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_attach_res ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gm_fop , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_res_of_attach , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 22:05:16 +00:00
* [ 9 ] 10.5 .5 .2 Attach type
2008-08-24 17:42:30 +00:00
*/
2009-11-18 22:05:16 +00:00
static const value_string gsm_a_gm_type_of_attach_vals [ ] = {
{ 0x01 , " GPRS attach " } ,
{ 0x02 , " Not used (In earlier versions: GPRS attach while IMSI attached) " } ,
{ 0x03 , " Combined GPRS/IMSI attached " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_attach_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2013-09-03 21:10:05 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gm_for , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_type_of_attach , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .3 Ciphering algorithm
2008-08-24 17:42:30 +00:00
*/
2011-01-26 19:37:30 +00:00
const value_string gsm_a_gm_type_of_ciph_alg_vals [ ] = {
2009-11-18 20:39:14 +00:00
{ 0x00 , " ciphering not used " } ,
{ 0x01 , " GPRS Encryption Algorithm GEA/1 " } ,
{ 0x02 , " GPRS Encryption Algorithm GEA/2 " } ,
{ 0x03 , " GPRS Encryption Algorithm GEA/3 " } ,
{ 0x04 , " GPRS Encryption Algorithm GEA/4 " } ,
{ 0x05 , " GPRS Encryption Algorithm GEA/5 " } ,
{ 0x06 , " GPRS Encryption Algorithm GEA/6 " } ,
{ 0x07 , " GPRS Encryption Algorithm GEA/7 " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ciph_alg ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset < < 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_type_of_ciph_alg , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 22:41:08 +00:00
* [ 9 ] 10.5 .5 .4 TMSI status
2008-08-24 17:42:30 +00:00
*/
2009-11-18 22:41:08 +00:00
const true_false_string gsm_a_gm_tmsi_flag_value = {
" valid TMSI available " ,
" no valid TMSI available "
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_tmsi_stat ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset < < 3 ) + 4 , 3 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_tmsi_flag , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .5
*/
2013-08-30 17:23:36 +00:00
const true_false_string gsm_a_gm_power_off_value = {
" power switched off " ,
" normal detach "
} ;
const value_string gsm_a_gm_type_of_detach_mo_vals [ ] = {
{ 0x01 , " GPRS detach " } ,
{ 0x02 , " IMSI detach " } ,
{ 0x03 , " Combined GPRS/IMSI detach " } ,
{ 0 , NULL }
} ;
const value_string gsm_a_gm_type_of_detach_mt_vals [ ] = {
{ 0x01 , " re-attach required " } ,
{ 0x02 , " re-attach not required " } ,
{ 0x03 , " IMSI detach (after VLR failure) " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_detach_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2013-08-30 17:23:36 +00:00
guint32 curr_offset ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2013-08-30 17:23:36 +00:00
if ( pinfo - > p2p_dir = = P2P_DIR_RECV ) {
proto_tree_add_item ( tree , hf_gsm_a_gm_power_off , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_type_of_detach_mo , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
} else {
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset < < 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_type_of_detach_mt , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
}
curr_offset + + ;
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .6
2013-08-27 17:01:58 +00:00
*/
/* SPLIT PG CYCLE CODE, octet 2 */
static const value_string gsm_a_gmm_split_pg_cycle_code_strings [ ] = {
{ 0 , " 704 (equivalent to no DRX) " } ,
{ 1 , " 1 " } ,
{ 2 , " 2 " } ,
{ 3 , " 3 " } ,
{ 4 , " 4 " } ,
{ 5 , " 5 " } ,
{ 6 , " 6 " } ,
{ 7 , " 7 " } ,
{ 8 , " 8 " } ,
{ 9 , " 9 " } ,
{ 10 , " 10 " } ,
{ 11 , " 11 " } ,
{ 12 , " 12 " } ,
{ 13 , " 13 " } ,
{ 14 , " 14 " } ,
{ 15 , " 15 " } ,
{ 16 , " 16 " } ,
{ 17 , " 17 " } ,
{ 18 , " 18 " } ,
{ 19 , " 19 " } ,
{ 20 , " 20 " } ,
{ 21 , " 21 " } ,
{ 22 , " 22 " } ,
{ 23 , " 23 " } ,
{ 24 , " 24 " } ,
{ 25 , " 25 " } ,
{ 26 , " 26 " } ,
{ 27 , " 27 " } ,
{ 28 , " 28 " } ,
{ 29 , " 29 " } ,
{ 30 , " 30 " } ,
{ 31 , " 31 " } ,
{ 32 , " 32 " } ,
{ 33 , " 33 " } ,
{ 34 , " 34 " } ,
{ 35 , " 35 " } ,
{ 36 , " 36 " } ,
{ 37 , " 37 " } ,
{ 38 , " 38 " } ,
{ 39 , " 39 " } ,
{ 40 , " 40 " } ,
{ 41 , " 41 " } ,
{ 42 , " 42 " } ,
{ 43 , " 43 " } ,
{ 44 , " 44 " } ,
{ 45 , " 45 " } ,
{ 46 , " 46 " } ,
{ 47 , " 47 " } ,
{ 48 , " 48 " } ,
{ 49 , " 49 " } ,
{ 50 , " 50 " } ,
{ 51 , " 51 " } ,
{ 52 , " 52 " } ,
{ 53 , " 53 " } ,
{ 54 , " 54 " } ,
{ 55 , " 55 " } ,
{ 56 , " 56 " } ,
{ 57 , " 57 " } ,
{ 58 , " 58 " } ,
{ 59 , " 59 " } ,
{ 60 , " 60 " } ,
{ 61 , " 61 " } ,
{ 62 , " 62 " } ,
{ 63 , " 63 " } ,
{ 64 , " 64 " } ,
{ 65 , " 71 " } ,
{ 66 , " 72 " } ,
{ 67 , " 74 " } ,
{ 68 , " 75 " } ,
{ 69 , " 77 " } ,
{ 70 , " 79 " } ,
{ 71 , " 80 " } ,
{ 72 , " 83 " } ,
{ 73 , " 86 " } ,
{ 74 , " 88 " } ,
{ 75 , " 90 " } ,
{ 76 , " 92 " } ,
{ 77 , " 96 " } ,
{ 78 , " 101 " } ,
{ 79 , " 103 " } ,
{ 80 , " 107 " } ,
{ 81 , " 112 " } ,
{ 82 , " 116 " } ,
{ 83 , " 118 " } ,
{ 84 , " 128 " } ,
{ 85 , " 141 " } ,
{ 86 , " 144 " } ,
{ 87 , " 150 " } ,
{ 88 , " 160 " } ,
{ 89 , " 171 " } ,
{ 90 , " 176 " } ,
{ 91 , " 192 " } ,
{ 92 , " 214 " } ,
{ 93 , " 224 " } ,
{ 94 , " 235 " } ,
{ 95 , " 256 " } ,
{ 96 , " 288 " } ,
{ 97 , " 320 " } ,
{ 98 , " 352 " } ,
{ 0 , NULL }
} ;
static value_string_ext gsm_a_gmm_split_pg_cycle_code_strings_ext = VALUE_STRING_EXT_INIT ( gsm_a_gmm_split_pg_cycle_code_strings ) ;
/* SPLIT on CCCH, octet 3 (bit 4)
2008-08-24 17:42:30 +00:00
* 0 Split pg cycle on CCCH is not supported by the mobile station
* 1 Split pg cycle on CCCH is supported by the mobile station
*/
2012-05-17 14:35:11 +00:00
static const true_false_string gsm_a_gmm_split_on_ccch_value = {
2008-09-05 05:49:39 +00:00
" Split pg cycle on CCCH is supported by the mobile station " ,
" Split pg cycle on CCCH is not supported by the mobile station "
2008-08-24 17:42:30 +00:00
} ;
/* non-DRX timer, octet 3
* bit
* 3 2 1
*/
static const value_string gsm_a_gmm_non_drx_timer_strings [ ] = {
{ 0x00 , " no non-DRX mode after transfer state " } ,
{ 0x01 , " max. 1 sec non-DRX mode after transfer state " } ,
{ 0x02 , " max. 2 sec non-DRX mode after transfer state " } ,
{ 0x03 , " max. 4 sec non-DRX mode after transfer state " } ,
{ 0x04 , " max. 8 sec non-DRX mode after transfer state " } ,
{ 0x05 , " max. 16 sec non-DRX mode after transfer state " } ,
{ 0x06 , " max. 32 sec non-DRX mode after transfer state " } ,
{ 0x07 , " max. 64 sec non-DRX mode after transfer state " } ,
{ 0 , NULL } ,
} ;
/*
* CN Specific DRX cycle length coefficient , octet 3
* bit
2011-12-02 21:56:10 +00:00
* 8 7 6 5 Iu and S1 mode specific
* 0 0 0 0 For Iu mode , CN Specific DRX cycle length coefficient not specified by the MS , ie . the
2008-08-24 17:42:30 +00:00
* system information value ' CN domain specific DRX cycle length ' is used .
2011-12-02 21:56:10 +00:00
* For S1 mode , DRX value not specified by the MS .
* ( Ref 3 GPP TS 25.331 and 36.304 )
* 0 1 1 0 CN Specific DRX cycle length coefficient 6 and T = 32
* 0 1 1 1 CN Specific DRX cycle length coefficient 7 and T = 64
* 1 0 0 0 CN Specific DRX cycle length coefficient 8 and T = 128
* 1 0 0 1 CN Specific DRX cycle length coefficient 9 and T = 256
2008-08-24 17:42:30 +00:00
* All other values shall be interpreted as " CN Specific DRX cycle length coefficient not
2011-12-02 21:56:10 +00:00
* specified by the MS " and " DRX value not specified by the MS " by this version of the protocol.
* NOTE : For Iu mode and S1 mode , this field ( octet 3 bits 8 to 5 ) is used , but was spare in earlier
2008-08-24 17:42:30 +00:00
* versions of this protocol .
*/
2013-08-27 17:01:58 +00:00
static const range_string gsm_a_gmm_cn_spec_drx_cycle_len_coef_strings [ ] = {
2011-12-02 21:56:10 +00:00
{ 0x00 , 0x05 , " CN Specific DRX cycle length coefficient / value not specified by the MS " } ,
{ 0x06 , 0x06 , " CN Specific DRX cycle length coefficient 6 and T = 32 " } ,
{ 0x07 , 0x07 , " CN Specific DRX cycle length coefficient 7 and T = 64 " } ,
{ 0x08 , 0x08 , " CN Specific DRX cycle length coefficient 8 and T = 128 " } ,
{ 0x09 , 0x09 , " CN Specific DRX cycle length coefficient 9 and T = 256 " } ,
{ 0x0a , 0x0f , " CN Specific DRX cycle length coefficient / value not specified by the MS " } ,
2009-11-23 23:02:02 +00:00
{ 0 , 0 , NULL } ,
2008-08-24 17:42:30 +00:00
} ;
2008-12-23 20:49:15 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_gmm_drx_param ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2013-08-27 17:01:58 +00:00
guint32 curr_offset ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2013-08-27 17:01:58 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_split_pg_cycle_code , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2013-08-27 17:01:58 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_cn_spec_drx_cycle_len_coef , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gmm_split_on_ccch , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gmm_non_drx_timer , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .7 Force to standby ( lower nibble )
2008-08-24 17:42:30 +00:00
*/
2009-11-18 20:39:14 +00:00
static const range_string gsm_a_gm_force_to_standby_vals [ ] = {
{ 0x00 , 0x00 , " Force to standby not indicated " } ,
{ 0x01 , 0x01 , " Force to standby indicated " } ,
{ 0x02 , 0x07 , " Unknown, interpreted as Force to standby not indicated " } ,
{ 0 , 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ftostby ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-11-18 20:39:14 +00:00
guint32 bit_offset ;
2008-08-24 17:42:30 +00:00
2009-11-18 20:39:14 +00:00
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE LOWER NIBBLE */
bit_offset = ( offset < < 3 ) + 4 ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_force_to_standby , tvb , bit_offset + 1 , 3 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .7 Force to standby ( higher nibble )
2008-08-24 17:42:30 +00:00
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ftostby_h ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-11-18 20:39:14 +00:00
guint32 bit_offset ;
2008-08-24 17:42:30 +00:00
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE HIGHER NIBBLE */
2009-11-18 20:39:14 +00:00
bit_offset = offset < < 3 ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_force_to_standby , tvb , bit_offset + 1 , 3 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .8
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ptmsi_sig ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
proto_item * curr_item ;
2008-09-05 05:49:39 +00:00
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2010-05-10 15:54:57 +00:00
2012-08-01 09:44:57 +00:00
curr_item = proto_tree_add_item ( tree , hf_gsm_a_gmm_ptmsi_sig , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
proto_item_append_text ( curr_item , " %s " , add_string ? add_string : " " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 3 ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .8 a
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ptmsi_sig2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
proto_item * curr_item ;
2008-09-05 05:49:39 +00:00
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2012-08-01 09:44:57 +00:00
curr_item = proto_tree_add_item ( tree , hf_gsm_a_gmm_ptmsi_sig2 , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
proto_item_append_text ( curr_item , " %s " , add_string ? add_string : " " ) ;
curr_offset + = 3 ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-23 23:02:02 +00:00
* [ 9 ] 10.5 .5 .9 Identity type 2
2008-08-24 17:42:30 +00:00
*/
2009-11-23 23:02:02 +00:00
static const value_string gsm_a_gm_type_of_identity_vals [ ] = {
{ 0x01 , " IMSI " } ,
{ 0x02 , " IMEI " } ,
{ 0x03 , " IMEISV " } ,
{ 0x04 , " TMSI " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ident_type2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset < < 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_type_of_identity , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .10 IMEISV request
2008-08-24 17:42:30 +00:00
*/
2009-11-18 20:39:14 +00:00
static const range_string gsm_a_gm_imeisv_req_vals [ ] = {
{ 0x00 , 0x00 , " IMEISV not requested " } ,
{ 0x01 , 0x01 , " IMEISV requested " } ,
{ 0x02 , 0x07 , " Unknown, interpreted as IMEISV not requested " } ,
{ 0 , 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_imeisv_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-11-18 20:39:14 +00:00
guint32 bit_offset ;
2008-08-24 17:42:30 +00:00
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE HIGHER NIBBLE */
2009-11-18 20:39:14 +00:00
bit_offset = offset < < 3 ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_imeisv_req , tvb , bit_offset + 1 , 3 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .11
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_rec_npdu_lst ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint curr_len ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
if ( len = = 0 ) return 0 ;
2008-08-24 17:42:30 +00:00
do
{
2008-09-05 05:49:39 +00:00
guint32 oct ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
oct < < = 8 ;
2008-09-05 05:49:39 +00:00
oct | = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;
curr_len - = 2 ;
2012-05-17 14:35:11 +00:00
oct < < = 8 ;
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tree ,
tvb , curr_offset , 2 ,
2008-08-24 17:42:30 +00:00
" NSAPI %d: 0x%02x (%u) " ,
oct > > 20 ,
( oct > > 12 ) & 0xff ,
( oct > > 12 ) & 0xff ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
2008-09-05 05:49:39 +00:00
2012-05-17 14:35:11 +00:00
if ( curr_len > 2 )
2008-09-05 05:49:39 +00:00
{
oct | = tvb_get_guint8 ( tvb , curr_offset + 2 ) ;
curr_len - - ;
oct < < = 12 ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tree ,
tvb , curr_offset - 1 , 2 ,
" NSAPI %d: 0x%02x (%u) " ,
oct > > 20 ,
( oct > > 12 ) & 0xff ,
( oct > > 12 ) & 0xff ) ;
curr_offset + + ;
}
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
} while ( curr_len > 1 ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-22 20:36:20 +00:00
* [ 9 ] 10.5 .5 .12 MS network capability
2008-08-24 17:42:30 +00:00
*/
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_gea_vals = {
" Encryption algorithm available " ,
" Encryption algorithm not available "
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_smdch_vals = {
" Mobile station supports mobile terminated point to point SMS via dedicated signalling channels " ,
" Mobile station does not support mobile terminated point to point SMS via dedicated signalling channels "
} ;
2009-09-23 17:55:37 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_smgprs_vals = {
" Mobile station supports mobile terminated point to point SMS via GPRS packet data channels " ,
" Mobile station does not support mobile terminated point to point SMS via GPRS packet data channels "
} ;
2009-09-23 17:55:37 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_ucs2_vals = {
" The ME has no preference between the use of the default alphabet and the use of UCS2 " ,
" The ME has a preference for the default alphabet (defined in 3GPP TS 23.038 [8b]) over UCS2 "
} ;
2009-09-23 17:55:37 +00:00
2009-12-22 20:36:20 +00:00
static const value_string gsm_a_gmm_net_cap_ss_scr_ind_vals [ ] = {
{ 0x00 , " Default value of phase 1 " } ,
{ 0x01 , " capability of handling of ellipsis notation and phase 2 error handling " } ,
{ 0x02 , " For future use, interpreted as Capability of handling of ellipsis notation and phase 2 error handling " } ,
{ 0x03 , " For future use, interpreted as Capability of handling of ellipsis notation and phase 2 error handling " } ,
{ 0x00 , NULL }
} ;
2009-09-23 17:55:37 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_solsa_vals = {
" The ME supports SoLSA " ,
" The ME does not support SoLSA "
} ;
2009-09-23 17:55:37 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_rev_vals = {
" Used by a mobile station supporting R99 or later versions of the protocol " ,
" Used by a mobile station not supporting R99 or later versions of the protocol "
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_pfc_vals = {
" Mobile station does support BSS packet flow procedures " ,
" Mobile station does not support BSS packet flow procedures "
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_lcs_vals = {
" LCS value added location request notification capability supported " ,
" LCS value added location request notification capability not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_ps_irat_iu_vals = {
" PS inter-RAT HO to UTRAN Iu mode supported " ,
" PS inter-RAT HO to UTRAN Iu mode not supported "
} ;
2009-09-22 19:15:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_ps_irat_s1_vals = {
" PS inter-RAT HO to E-UTRAN S1 mode supported " ,
" PS inter-RAT HO to E-UTRAN S1 mode not supported "
} ;
2008-08-24 17:42:30 +00:00
2011-04-27 22:18:00 +00:00
static const true_false_string gsm_a_gmm_net_cap_comb_proc_vals = {
" Mobile station supports EMM combined procedures " ,
" Mobile station does not support EMM combined procedures "
2009-12-22 20:36:20 +00:00
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_isr_vals = {
" The mobile station supports ISR " ,
" The mobile station does not support ISR "
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_srvcc_to_geran_vals = {
" SRVCC from UTRAN HSPA or E-UTRAN to GERAN/UTRAN supported " ,
" SRVCC from UTRAN HSPA or E-UTRAN to GERAN/UTRAN not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
static const true_false_string gsm_a_gmm_net_cap_epc_vals = {
" EPC supported " ,
" EPC not supported "
} ;
2008-08-24 17:42:30 +00:00
2011-04-27 22:18:00 +00:00
static const true_false_string gsm_a_gmm_net_cap_nf_vals = {
" Mobile station supports the notification procedure " ,
" Mobile station does not support the notification procedure "
} ;
2012-10-04 21:23:06 +00:00
static const true_false_string gsm_a_gmm_net_geran_net_vals = {
" Mobile station supports GERAN network sharing " ,
" Mobile station does not support GERAN network sharing "
} ;
2009-12-22 20:36:20 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_gmm_ms_net_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2009-12-22 20:36:20 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
proto_tree * subtree ;
proto_item * item ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
curr_offset = offset ;
2010-05-10 15:54:57 +00:00
2009-12-22 20:36:20 +00:00
/* bit 8: GEA1 */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_gea1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
/* bit 7: SM capabilities via dedicated channels */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_smdch , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
/* bit 6: SM capabilities via GPRS channels */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_smgprs , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
/* bit 5: UCS2 support */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_ucs2 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
/* bits 4 3: SS Screening Indicator */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_ss_scr_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
/* bit 2: SoLSA Capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_solsa , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* bit 1 */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_rev , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2009-12-22 20:36:20 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
/* bit 8: PFC feature mode */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_pfc , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
/* bits 7 6 5 4 3 2: Extended GEA bits */
2011-05-29 06:06:22 +00:00
item = proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_ext_gea_bits , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
subtree = proto_item_add_subtree ( item , ett_gmm_network_cap ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( subtree , hf_gsm_a_gmm_net_cap_gea2 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gmm_net_cap_gea3 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gmm_net_cap_gea4 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gmm_net_cap_gea5 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gmm_net_cap_gea6 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gmm_net_cap_gea7 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2010-05-10 15:54:57 +00:00
/* bit 1: LCS VA capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_lcs , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2009-12-22 20:36:20 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2009-09-22 19:15:30 +00:00
2012-05-20 20:56:42 +00:00
/* bit 8: PS inter-RAT HO from GERAN to UTRAN Iu mode capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_ps_irat_iu , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-09-22 19:15:30 +00:00
2012-05-20 20:56:42 +00:00
/* bit 7: PS inter-RAT HO from GERAN to E-UTRAN S1 mode capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_ps_irat_s1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-09-23 17:55:37 +00:00
2011-04-27 22:18:00 +00:00
/* bit 6: EMM Combined procedures capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_comb_proc , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-09-22 19:15:30 +00:00
2009-12-22 20:36:20 +00:00
/* bit 5: ISR support */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_isr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
/* bit 4: SRVCC to GERAN/UTRAN capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_srvcc_to_geran , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
/* bit 3: EPC capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_epc , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-12-22 20:36:20 +00:00
2012-05-20 20:56:42 +00:00
/* bit 2: NF capability */
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_cap_nf , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2011-04-27 22:18:00 +00:00
2012-10-04 21:23:06 +00:00
/* bits 1: GERAN network sharing capability */
proto_tree_add_item ( tree , hf_gsm_a_gmm_net_geran_net_sharing , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-09-22 19:15:30 +00:00
2009-12-22 20:36:20 +00:00
curr_offset + + ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .12 a
*/
# define GET_DATA /* check if we have enough bits left */ \
2012-05-17 14:35:11 +00:00
if ( curr_bits_length < bits_needed ) \
2008-09-05 05:49:39 +00:00
continue ; \
2012-01-21 02:39:59 +00:00
/* check if oct has enough bits */ \
2012-05-17 14:35:11 +00:00
if ( bits_in_oct < bits_needed ) \
2008-09-05 05:49:39 +00:00
{ \
guint32 tmp_oct ; \
2012-05-17 14:35:11 +00:00
if ( curr_len = = 0 ) \
2008-08-24 17:42:30 +00:00
{ \
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree , \
2008-08-24 17:42:30 +00:00
tvb , curr_offset , 1 , \
" Not enough data available " ) ; \
} \
2008-09-05 05:49:39 +00:00
tmp_oct = tvb_get_guint8 ( tvb , curr_offset ) ; \
oct | = tmp_oct < < ( 32 - 8 - bits_in_oct ) ; \
curr_len - - ; \
curr_offset + + ; \
2012-05-17 14:35:11 +00:00
if ( bits_in_oct ! = 0 ) \
2013-03-18 20:26:47 +00:00
add_octets = 1 ; \
2008-08-24 17:42:30 +00:00
else \
2013-03-18 20:26:47 +00:00
add_octets = 0 ; \
2008-09-05 05:49:39 +00:00
bits_in_oct + = 8 ; \
} \
else \
2013-03-18 20:26:47 +00:00
add_octets = 0 ;
2008-08-24 17:42:30 +00:00
2009-05-14 18:26:18 +00:00
/* Access Technology Type */
static const value_string gsm_a_gm_acc_tech_type_vals [ ] = {
{ 0x00 , " GSM P " } ,
{ 0x01 , " GSM E --note that GSM E covers GSM P " } ,
{ 0x02 , " GSM R --note that GSM R covers GSM E and GSM P " } ,
{ 0x03 , " GSM 1800 " } ,
{ 0x04 , " GSM 1900 " } ,
{ 0x05 , " GSM 450 " } ,
{ 0x06 , " GSM 480 " } ,
{ 0x07 , " GSM 850 " } ,
{ 0x08 , " GSM 750 " } ,
{ 0x09 , " GSM T 380 " } ,
{ 0x0a , " GSM T 410 " } ,
{ 0x0b , " GSM T 900 " } ,
{ 0x0c , " GSM 710 " } ,
{ 0x0d , " GSM T 810 " } ,
{ 0x0f , " Indicates the presence of a list of Additional access technologies " } ,
{ 0 , NULL }
} ;
2011-05-29 06:06:22 +00:00
static const true_false_string gsm_a_gm_vgcs = {
" VGCS capability and notifications wanted " ,
" no VGCS capability or no notifications wanted "
} ;
static const true_false_string gsm_a_gm_vbs = {
" VBS capability and notifications wanted " ,
" no VBS capability or no notifications wanted "
} ;
static const value_string gsm_a_gm_multi_slot_vals [ ] = {
{ 0x00 , " Not specified " } ,
{ 0x01 , " Max Rx-Slot/TDMA:1 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:2 Tta:3 Ttb:2 Tra:4 Trb:2 Type:1 " } ,
{ 0x02 , " Max Rx-Slot/TDMA:2 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:3 Tta:3 Ttb:2 Tra:3 Trb:1 Type:1 " } ,
{ 0x03 , " Max Rx-Slot/TDMA:2 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:3 Tta:3 Ttb:2 Tra:3 Trb:1 Type:1 " } ,
{ 0x04 , " Max Rx-Slot/TDMA:3 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:4 Tta:3 Ttb:1 Tra:3 Trb:1 Type:1 " } ,
{ 0x05 , " Max Rx-Slot/TDMA:2 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:4 Tta:3 Ttb:1 Tra:3 Trb:1 Type:1 " } ,
{ 0x06 , " Max Rx-Slot/TDMA:3 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:4 Tta:3 Ttb:1 Tra:3 Trb:1 Type:1 " } ,
{ 0x07 , " Max Rx-Slot/TDMA:3 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:4 Tta:3 Ttb:1 Tra:3 Trb:1 Type:1 " } ,
{ 0x08 , " Max Rx-Slot/TDMA:4 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:5 Tta:3 Ttb:1 Tra:2 Trb:1 Type:1 " } ,
{ 0x09 , " Max Rx-Slot/TDMA:3 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:5 Tta:3 Ttb:1 Tra:2 Trb:1 Type:1 " } ,
{ 0x0a , " Max Rx-Slot/TDMA:4 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:5 Tta:3 Ttb:1 Tra:2 Trb:1 Type:1 " } ,
{ 0x0b , " Max Rx-Slot/TDMA:4 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:5 Tta:3 Ttb:1 Tra:2 Trb:1 Type:1 " } ,
{ 0x0c , " Max Rx-Slot/TDMA:4 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:5 Tta:2 Ttb:1 Tra:2 Trb:1 Type:1 " } ,
{ 0x0d , " Max Rx-Slot/TDMA:3 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:NA Tta:NA Ttb:a) Tra:3 Trb:a) Type:2 (a: 1 with frequency hopping, 0 otherwise) " } ,
{ 0x0e , " Max Rx-Slot/TDMA:4 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:NA Tta:NA Ttb:a) Tra:3 Trb:a) Type:2 (a: 1 with frequency hopping, 0 otherwise) " } ,
{ 0x0f , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:5 Max-Sum-Slot/TDMA:NA Tta:NA Ttb:a) Tra:3 Trb:a) Type:2 (a: 1 with frequency hopping, 0 otherwise) " } ,
{ 0x10 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:6 Max-Sum-Slot/TDMA:NA Tta:NA Ttb:a) Tra:2 Trb:a) Type:2 (a: 1 with frequency hopping, 0 otherwise) " } ,
{ 0x11 , " Max Rx-Slot/TDMA:7 Max Tx-Slot/TDMA:7 Max-Sum-Slot/TDMA:NA Tta:NA Ttb:a) Tra:1 Trb:0 Type:2 (a: 1 with frequency hopping, 0 otherwise) " } ,
{ 0x12 , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:8 Max-Sum-Slot/TDMA:NA Tta:NA Ttb:0 Tra:0 Trb:0 Type:2 " } ,
{ 0x13 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x14 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x15 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x16 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x17 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:6 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x18 , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x19 , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x1a , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x1b , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x1c , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:6 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x1d , " Max Rx-Slot/TDMA:8 Max Tx-Slot/TDMA:8 Max-Sum-Slot/TDMA:NA Tta:3 Ttb:b) Tra:2 Trb:c) Type:1 (b: 1 with frequency hopping or change from Rx to Tx, 0 otherwise; c: 1 with frequency hopping or change from Tx to Rx, 0 otherwise " } ,
{ 0x1e , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1 Trb:1 Type:1 " } ,
{ 0x1f , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1 Trb:1 Type:1 " } ,
{ 0x20 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1 Trb:1 Type:1 " } ,
{ 0x21 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1 Trb:1 Type:1 " } ,
{ 0x22 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:5 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1 Trb:1 Type:1 " } ,
{ 0x23 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1+to Trb:1 Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x24 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1+to Trb:1 Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x25 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1+to Trb:1 Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x26 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1+to Trb:1 Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x27 , " Max Rx-Slot/TDMA:5 Max Tx-Slot/TDMA:5 Max-Sum-Slot/TDMA:6 Tta:2 Ttb:1 Tra:1+to Trb:1 Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x28 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:1 Max-Sum-Slot/TDMA:7 Tta:1 Ttb:1 Tra:1 Trb:to Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x29 , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:2 Max-Sum-Slot/TDMA:7 Tta:1 Ttb:1 Tra:1 Trb:to Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x2a , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:3 Max-Sum-Slot/TDMA:7 Tta:1 Ttb:1 Tra:1 Trb:to Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x2b , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:4 Max-Sum-Slot/TDMA:7 Tta:1 Ttb:1 Tra:1 Trb:to Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x2c , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:5 Max-Sum-Slot/TDMA:7 Tta:1 Ttb:1 Tra:1 Trb:to Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0x2d , " Max Rx-Slot/TDMA:6 Max Tx-Slot/TDMA:6 Max-Sum-Slot/TDMA:7 Tta:1 Ttb:1 Tra:1 Trb:to Type:1 (to: to = 31 symbol periods (this can be provided by a TA offset, i.e. a minimum TA value)) " } ,
{ 0 , NULL }
} ;
static const value_string gsm_a_gm_dtm_gprs_multi_slot_class_vals [ ] = {
{ 0x00 , " Unused. If received, the network shall interpret this as Multislot class 5 " } ,
{ 0x01 , " Multislot class 5 supported " } ,
{ 0x02 , " Multislot class 9 supported " } ,
{ 0x03 , " Multislot class 11 supported " } ,
{ 0 , NULL }
} ;
static const true_false_string gsm_a_gm_revision_level_indicator = {
" The ME is Release '99 onwards " ,
" The ME is Release '98 or older "
} ;
static const value_string gsm_a_gm_down_adv_rec_perf_vals [ ] = {
{ 0x00 , " Downlink Advanced Receiver Performance not supported " } ,
{ 0x01 , " Downlink Advanced Receiver Performance - phase I supported " } ,
{ 0x02 , " Downlink Advanced Receiver Performance - phase II supported " } ,
{ 0 , NULL }
} ;
static const true_false_string gsm_a_gm_dtm_enh_cap = {
" The mobile station supports enhanced DTM CS establishment and enhanced DTM CS release procedures " ,
" The mobile station does not support enhanced DTM CS establishment and enhanced DTM CS release procedures "
} ;
static const value_string gsm_a_gm_dtm_gprs_high_multi_slot_class_vals [ ] = {
{ 0x00 , " Unused. If received, the network shall interpret this as 'Multislot class 31 or 36 supported' " } ,
{ 0x01 , " Multislot class 31 or 36 supported " } ,
{ 0x02 , " Multislot class 32 or 37 supported " } ,
{ 0x03 , " Multislot class 33 or 38 supported " } ,
{ 0x04 , " Multislot class 41 supported " } ,
{ 0x05 , " Multislot class 42 supported " } ,
{ 0x06 , " Multislot class 43 supported " } ,
{ 0x07 , " Multislot class 44 supported " } ,
{ 0 , NULL }
} ;
static const value_string gsm_a_gm_multi_slot_cap_red_down_dual_carrier_vals [ ] = {
{ 0x00 , " No reduction " } ,
{ 0x01 , " The MS supports 1 timeslot fewer than the maximum number of receive timeslots " } ,
{ 0x02 , " The MS supports 2 timeslots fewer than the maximum number of receive timeslots " } ,
{ 0x03 , " The MS supports 3 timeslots fewer than the maximum number of receive timeslots " } ,
{ 0x04 , " The MS supports 4 timeslots fewer than the maximum number of receive timeslots " } ,
{ 0x05 , " The MS supports 5 timeslots fewer than the maximum number of receive timeslots " } ,
{ 0x06 , " The MS supports 6 timeslots fewer than the maximum number of receive timeslots " } ,
{ 0x07 , " Reserved for future use " } ,
{ 0 , NULL }
} ;
static const value_string gsm_a_gm_ul_egprs2_vals [ ] = {
{ 0x00 , " The mobile station does not support either EGPRS2-A or EGPRS2-B in the uplink " } ,
{ 0x01 , " The mobile station supports EGPRS2-A in the uplink " } ,
{ 0x02 , " The mobile station supports both EGPRS2-A and EGPRS2-B in the uplink " } ,
{ 0x03 , " This value is not used in this release/version of the specifications. If received it shall be interpreted as 'The mobile station supports both EGPRS2-A and EGPRS2-B in the uplink' " } ,
{ 0 , NULL }
} ;
static const value_string gsm_a_gm_dl_egprs2_vals [ ] = {
{ 0x00 , " The mobile station does not support either EGPRS2-A or EGPRS2-B in the downlink " } ,
{ 0x01 , " The mobile station supports EGPRS2-A in the downlink " } ,
{ 0x02 , " The mobile station supports both EGPRS2-A and EGPRS2-B in the downlink " } ,
{ 0x03 , " This value is not used in this release/version of the specifications. If received it shall be interpreted as 'The mobile station supports both EGPRS2-A and EGPRS2-B in the downlink' " } ,
{ 0 , NULL }
} ;
static const value_string gsm_a_gm_geran_to_eutra_support_in_geran_ptm_vals [ ] = {
{ 0x00 , " None " } ,
{ 0x01 , " E-UTRAN Neighbour Cell measurements and MS autonomous cell reselection to E-UTRAN supported " } ,
{ 0x02 , " CCN towards E-UTRAN, E-UTRAN Neighbour Cell measurement reporting and Network controlled cell reselection to E-UTRAN supported in addition to capabilities indicated by '01' " } ,
{ 0x03 , " PS Handover to E-UTRAN supported in addition to capabilities indicated by '01' and '10' " } ,
{ 0 , NULL }
} ;
2010-07-14 12:01:05 +00:00
2011-05-29 06:06:22 +00:00
static const value_string gsm_a_gm_alt_efta_multi_slot_class_vals [ ] = {
{ 0x00 , " No Alternative EFTA multislot class is indicated. Use (DTM) EGPRS (high) multislot class only " } ,
2012-10-04 21:23:06 +00:00
{ 0x01 , " Alternative EFTA multislot class 1 " } ,
{ 0x02 , " Alternative EFTA multislot class 2 " } ,
{ 0x03 , " Alternative EFTA multislot class 3 " } ,
{ 0x04 , " Unused " } ,
{ 0x05 , " Unused " } ,
{ 0x06 , " Unused " } ,
{ 0x07 , " Unused " } ,
{ 0x08 , " Unused " } ,
{ 0x09 , " Unused " } ,
{ 0x0a , " Unused " } ,
{ 0x0b , " Unused " } ,
2011-05-29 06:06:22 +00:00
{ 0x0c , " Unused " } ,
{ 0x0d , " Unused " } ,
{ 0x0e , " Unused " } ,
{ 0x0f , " Unused " } ,
2010-07-14 12:01:05 +00:00
{ 0 , NULL }
} ;
2011-05-29 06:06:22 +00:00
2008-12-23 20:49:15 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_gmm_ms_radio_acc_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-05-07 21:22:36 +00:00
guint32 curr_offset ;
guint curr_len ;
2009-09-23 17:55:37 +00:00
int bit_offset ;
2011-01-17 13:09:08 +00:00
proto_item * tf = NULL , * mc_item = NULL ;
proto_tree * tf_tree = NULL , * mc_tree = NULL ;
2009-05-07 21:22:36 +00:00
guint32 oct ;
guchar bits_in_oct ;
guchar bits_needed ;
guint bits_length ;
2013-03-18 20:26:47 +00:00
guint add_octets ; /* octets which are covered by one element -1 */
2009-05-07 21:22:36 +00:00
guint curr_bits_length ;
guchar acc_type ;
2009-09-23 17:55:37 +00:00
guint value ;
2008-09-05 05:49:39 +00:00
const gchar * str ;
guint indx = 0 ;
2012-05-17 14:35:11 +00:00
guchar dtm_gprs_mslot = 0 ;
guchar dtm_egprs_mslot = 4 ;
2008-08-24 17:42:30 +00:00
gboolean finished = TRUE ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
bit_offset = offset < < 3 ;
2008-08-24 17:42:30 +00:00
bits_in_oct = 0 ;
oct = 0 ;
2009-05-15 18:38:13 +00:00
2008-08-24 17:42:30 +00:00
do
{
2008-09-05 05:49:39 +00:00
/* check for a new round */
2012-05-17 14:35:11 +00:00
if ( ( curr_len * 8 + bits_in_oct ) < 11 )
2008-09-05 05:49:39 +00:00
break ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* now read the first 11 bits */
2008-08-24 17:42:30 +00:00
curr_bits_length = 11 ;
2008-09-05 05:49:39 +00:00
/*
*
*/
2012-05-17 14:35:11 +00:00
if ( curr_len ! = len )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
bits_needed = 1 ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) ! = 1 )
2008-09-05 05:49:39 +00:00
{
break ;
}
2012-05-17 14:35:11 +00:00
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-02-12 18:04:26 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
if ( ( curr_len * 8 + bits_in_oct ) < 11 )
2012-02-12 18:04:26 +00:00
break ;
curr_bits_length = 11 ;
2008-08-24 17:42:30 +00:00
}
2008-09-05 05:49:39 +00:00
indx + + ;
tf = proto_tree_add_text ( tree ,
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" MS RA capability %d " , indx ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
tf_tree = proto_item_add_subtree ( tf , ett_gmm_radio_cap ) ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* Access Technology
*/
bits_needed = 4 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
acc_type = oct > > ( 32 - bits_needed ) ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_acc_tech_type , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 4 ;
2009-05-14 18:26:18 +00:00
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2009-05-14 18:26:18 +00:00
/* < Access capabilities struct > ::= */
2008-09-05 05:49:39 +00:00
/*
* get bits_length
*/
bits_needed = 7 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
bits_length = curr_bits_length = oct > > ( 32 - bits_needed ) ;
2011-05-17 18:58:40 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_acc_cap_struct_len , tvb , bit_offset , 7 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
proto_item_set_len ( tf , ( bits_length > > 3 ) + 1 ) ;
2008-08-24 17:42:30 +00:00
/* This is already done - length doesn't contain this field
curr_bits_length - = bits_needed ;
*/
2012-05-17 14:35:11 +00:00
bit_offset + = 7 ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( acc_type = = 0x0f )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
do
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
/*
* Additional access technologies :
*/
finished = TRUE ; /* Break out of the loop unless proven unfinished */
2008-08-24 17:42:30 +00:00
/*
2008-09-05 05:49:39 +00:00
* Presence bit
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 1 ;
GET_DATA ;
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( oct > > ( 32 - bits_needed ) )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Not Present " ; finished = TRUE ; break ;
case 0x01 : str = " Present " ; finished = FALSE ; break ;
default : str = " This should not happen " ;
2008-08-24 17:42:30 +00:00
}
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2009-11-26 22:37:43 +00:00
" Presence: %s (%u) " , str , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
if ( finished )
{
/*
* No more valid data , get spare bits if any
*/
2012-05-17 14:35:11 +00:00
while ( curr_bits_length > 0 )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
if ( curr_bits_length > 8 )
2008-09-05 05:49:39 +00:00
bits_needed = 8 ;
else
bits_needed = curr_bits_length ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
bit_offset + = bits_needed ;
2008-09-05 05:49:39 +00:00
}
continue ;
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* Access Technology
*/
bits_needed = 4 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
acc_type = oct > > ( 32 - bits_needed ) ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_acc_cap_struct_len , tvb , bit_offset , 7 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 4 ;
2009-05-14 18:26:18 +00:00
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
/*
* RF Power
*/
bits_needed = 3 ;
GET_DATA ;
2009-05-15 18:38:13 +00:00
value = tvb_get_bits8 ( tvb , bit_offset , 3 ) ;
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( acc_type = = 0x04 ) /* GSM 1900 */
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
switch ( value )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x01 : str = " 1 W (30 dBm) " ; break ;
case 0x02 : str = " 0,25 W (24 dBm) " ; break ;
case 0x03 : str = " 2 W (33 dBm) " ; break ;
default : str = " Not specified " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
}
2012-05-17 14:35:11 +00:00
else if ( acc_type = = 0x03 )
2008-08-24 17:42:30 +00:00
{
2009-05-15 18:38:13 +00:00
/*
* 3 GSM 1800
*/
2012-05-17 14:35:11 +00:00
switch ( value )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x01 : str = " 1 W (30 dBm) " ; break ;
case 0x02 : str = " 0,25 W (24 dBm) " ; break ;
case 0x03 : str = " 4 W (36 dBm) " ; break ;
default : str = " Not specified " ;
2008-09-05 05:49:39 +00:00
}
}
2012-05-17 14:35:11 +00:00
else if ( acc_type < = 0x08 )
2008-09-05 05:49:39 +00:00
{
2009-05-15 18:38:13 +00:00
/* 0 GSM P
* 1 GSM E
2010-05-10 15:54:57 +00:00
* 2 GSM R
2009-05-15 18:38:13 +00:00
* 5 GSM 450
* 6 GSM 480
* 7 GSM 850
*/
2012-05-17 14:35:11 +00:00
switch ( value )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x02 : str = " 8 W (39 dBm) " ; break ;
case 0x03 : str = " 5 W (37 dBm) " ; break ;
case 0x04 : str = " 2 W (33 dBm) " ; break ;
case 0x05 : str = " 0,8 W (29 dBm) " ; break ;
default : str = " Not specified " ;
2008-09-05 05:49:39 +00:00
}
}
else
2012-05-17 14:35:11 +00:00
str = " Not specified?? " ;
2008-08-24 17:42:30 +00:00
2009-05-15 18:38:13 +00:00
/* decode_bits_in_field(gint bit_offset, gint no_of_bits, guint64 value)*/
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2009-11-26 22:37:43 +00:00
" %s RF Power Capability, GMSK Power Class: %s (%u) " , decode_bits_in_field ( bit_offset , 3 , value ) , str , value ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 3 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* 8 PSK Power Class
*/
bits_needed = 2 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2009-05-15 18:38:13 +00:00
value = tvb_get_bits8 ( tvb , bit_offset , 2 ) ;
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( value )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " 8PSK modulation not supported for uplink " ; break ;
case 0x01 : str = " Power class E1 " ; break ;
case 0x02 : str = " Power class E2 " ; break ;
case 0x03 : str = " Power class E3 " ; break ;
default : str = " This should not happen " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" 8PSK Power Class: %s (%u) " , str , value ) ;
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
} while ( ! finished ) ;
/* goto next one */
continue ;
}
2008-08-24 17:42:30 +00:00
/*
* RF Power
*/
bits_needed = 3 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2009-05-15 18:38:13 +00:00
value = tvb_get_bits8 ( tvb , bit_offset , 3 ) ;
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( acc_type = = 0x04 ) /* GSM 1900 */
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
switch ( value )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x01 : str = " 1 W (30 dBm) " ; break ;
case 0x02 : str = " 0,25 W (24 dBm) " ; break ;
case 0x03 : str = " 2 W (33 dBm) " ; break ;
default : str = " Not specified " ;
2008-08-24 17:42:30 +00:00
}
}
2012-05-17 14:35:11 +00:00
else if ( acc_type = = 0x03 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
switch ( value )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x01 : str = " 1 W (30 dBm) " ; break ;
case 0x02 : str = " 0,25 W (24 dBm) " ; break ;
case 0x03 : str = " 4 W (36 dBm) " ; break ;
default : str = " Not specified " ;
2008-08-24 17:42:30 +00:00
}
}
2012-05-17 14:35:11 +00:00
else if ( acc_type < = 0x08 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
switch ( value )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x02 : str = " 8 W (39 dBm) " ; break ;
case 0x03 : str = " 5 W (37 dBm) " ; break ;
case 0x04 : str = " 2 W (33 dBm) " ; break ;
case 0x05 : str = " 0,8 W (29 dBm) " ; break ;
default : str = " Not specified " ;
2008-08-24 17:42:30 +00:00
}
}
else
2012-05-17 14:35:11 +00:00
str = " Not specified?? " ;
2008-08-24 17:42:30 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" %s RF Power Capability, GMSK Power Class: %s (%u) " , decode_bits_in_field ( bit_offset , 3 , value ) , str , value ) ;
2009-05-15 18:38:13 +00:00
2012-05-17 14:35:11 +00:00
bit_offset + = 3 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* A5 Bits ?
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" A5 Bits: Same values apply for parameters as in the immediately preceding Access capabilities field within this IE (%u) " ,
oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
}
else
{
int i ;
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" A5 Bits: A5 bits follow (%u) " , oct > > ( 32 - bits_needed ) ) ;
2008-08-24 17:42:30 +00:00
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2010-05-10 15:54:57 +00:00
2012-05-17 14:35:11 +00:00
for ( i = 1 ; i < = 7 ; i + + )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
/*
* A5 Bits decoding
*/
bits_needed = 1 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( oct > > ( 32 - bits_needed ) )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " encryption algorithm not available " ; break ;
case 0x01 : str = " encryption algorithm available " ; break ;
default : str = " This should not happen " ;
2008-09-05 05:49:39 +00:00
}
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" A5/%d: %s (%u) " , i , str , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
}
2008-08-24 17:42:30 +00:00
/*
* ES IND
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ctrled_early_cm_sending , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* PS
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_pseudo_sync , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* VGCS
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_vgcs , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* VBS
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_vbs , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* Multislot capability ?
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-01-17 13:09:08 +00:00
value = oct > > ( 32 - bits_needed ) ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
mc_item = proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_multislot_capability , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2011-01-17 13:09:08 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-01-17 13:09:08 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( value = = 1 )
2011-01-17 13:09:08 +00:00
{
mc_tree = proto_item_add_subtree ( mc_item , ett_gsm_a_gm_msrac_multislot_capability ) ;
2008-09-05 05:49:39 +00:00
/*
2008-08-24 17:42:30 +00:00
* HSCSD multislot class ?
2008-09-05 05:49:39 +00:00
*/
bits_needed = 1 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2011-01-17 13:09:08 +00:00
proto_tree_add_text ( mc_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" HSCSD multislot class: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
else
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* HSCSD multislot class
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 5 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_hscsd_multi_slot_class , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 5 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2008-08-24 17:42:30 +00:00
* GPRS multislot class ?
2008-09-05 05:49:39 +00:00
*/
bits_needed = 1 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2011-01-17 13:09:08 +00:00
proto_tree_add_text ( mc_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" GPRS multislot class: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
else
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* GPRS multislot class
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 5 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_gprs_multi_slot_class , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 5 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* GPRS Extended Dynamic Allocation Capability
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 1 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_gprs_ext_dyn_alloc_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* SMS / SM values
*/
bits_needed = 1 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2011-01-17 13:09:08 +00:00
proto_tree_add_text ( mc_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" SMS/SM values: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
else
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* Switch - Measure - Switch value
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 4 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( mc_tree , hf_gsm_a_gm_sms_value , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 4 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* Switch - Measure value
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 4 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( mc_tree , hf_gsm_a_gm_sm_value , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 4 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2008-08-24 17:42:30 +00:00
* ECSD multislot class ?
2008-09-05 05:49:39 +00:00
*/
bits_needed = 1 ;
2008-08-24 17:42:30 +00:00
GET_DATA ;
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2011-01-17 13:09:08 +00:00
proto_tree_add_text ( mc_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" ECSD multislot class: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
else
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* ECSD multislot class
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 5 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ecsd_multi_slot_class , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 5 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* EGPRS multislot class ?
*/
bits_needed = 1 ;
2008-08-24 17:42:30 +00:00
GET_DATA ;
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2011-01-17 13:09:08 +00:00
proto_tree_add_text ( mc_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" EGPRS multislot class: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
else
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* EGPRS multislot class
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 5 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_egprs_multi_slot_class , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 5 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* EGPRS Extended Dynamic Allocation Capability
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 1 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_egprs_ext_dyn_alloc_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
/*
2008-09-05 05:49:39 +00:00
* DTM GPRS Multi Slot Class ?
2008-08-24 17:42:30 +00:00
*/
2008-09-05 05:49:39 +00:00
bits_needed = 1 ;
2008-08-24 17:42:30 +00:00
GET_DATA ;
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2011-01-17 13:09:08 +00:00
proto_tree_add_text ( mc_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" DTM GPRS Multi Slot Class: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
else
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
* DTM GPRS Multi Slot Class
*/
bits_needed = 2 ;
2008-08-24 17:42:30 +00:00
GET_DATA ;
/* analyse bits */
2008-09-05 05:49:39 +00:00
dtm_gprs_mslot = oct > > ( 32 - bits_needed ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtm_gprs_multi_slot_class , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
/*
* Single Slot DTM
*/
bits_needed = 1 ;
GET_DATA ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( mc_tree , hf_gsm_a_gm_rac_single_slt_dtm , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
/*
* DTM EGPRS Multi Slot Class ?
*/
bits_needed = 1 ;
GET_DATA ;
/* analyse bits */
2012-05-17 14:35:11 +00:00
dtm_egprs_mslot = oct > > ( 32 - bits_needed ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( mc_tree , hf_gsm_a_gm_rac_dtm_egprs_multi_slot_cls_pres , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2011-01-17 13:09:08 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 1 )
2008-09-05 05:49:39 +00:00
{
/*
* DTM EGPRS Multi Slot Class
*/
bits_needed = 2 ;
GET_DATA ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtm_egprs_multi_slot_class , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
}
}
/*
* 8 PSK Power Capability ?
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2014-01-24 16:33:31 +00:00
value = oct > > ( 32 - bits_needed ) ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_8psk_pow_cap_pres , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2011-01-17 13:09:08 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-01-17 13:09:08 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2014-01-24 16:33:31 +00:00
if ( value = = 1 )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
/*
2008-08-24 17:42:30 +00:00
* 8 PSK Power Capability
2008-09-05 05:49:39 +00:00
*/
2008-08-24 17:42:30 +00:00
bits_needed = 2 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( oct > > ( 32 - bits_needed ) )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Reserved " ; break ;
case 0x01 : str = " Power class E1 " ; break ;
case 0x02 : str = " Power class E2 " ; break ;
case 0x03 : str = " Power class E3 " ; break ;
default : str = " This should not happen " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" 8PSK Power Capability: %s (%u) " , str , oct > > ( 32 - bits_needed ) ) ;
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
/*
* COMPACT Interference Measurement Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_comp_int_meas_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* Revision Level Indicator
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rel_lev_ind , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* UMTS FDD Radio Access Technology Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_umts_fdd_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* UMTS 3.84 Mcps TDD Radio Access Technology Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_umts_384_tdd_ra_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* CDMA 2000 Radio Access Technology Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_cdma2000_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* UMTS 1.28 Mcps TDD Radio Access Technology Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_umts_128_tdd_ra_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* GERAN Feature Package 1
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_geran_feat_pkg , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* Extended DTM ( E ) GPRS Multi Slot Class
*/
2011-01-16 22:32:22 +00:00
2008-08-24 17:42:30 +00:00
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" Extended DTM (E)GPRS Multi Slot Class: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
}
else
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2008-08-24 17:42:30 +00:00
* Extended DTM GPRS Multi Slot Class
2008-09-05 05:49:39 +00:00
*/
2008-08-24 17:42:30 +00:00
bits_needed = 2 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( ( oct > > ( 32 - bits_needed ) ) | ( dtm_gprs_mslot < < 4 ) )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x01 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x02 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x03 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x10 : str = " Multislot class 5 supported " ; break ;
case 0x11 : str = " Multislot class 6 supported " ; break ;
case 0x12 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x13 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x20 : str = " Multislot class 9 supported " ; break ;
case 0x21 : str = " Multislot class 10 supported " ; break ;
case 0x22 : str = " Unused. If received, it shall be interpreted as Multislot class 9 supported " ; break ;
case 0x23 : str = " Unused. If received, it shall be interpreted as Multislot class 9 supported " ; break ;
case 0x30 : str = " Multislot class 11 supported " ; break ;
case 0x31 : str = " Unused. If received, it shall be interpreted as Multislot class 11 supported " ; break ;
case 0x32 : str = " Unused. If received, it shall be interpreted as Multislot class 11 supported " ; break ;
case 0x33 : str = " Unused. If received, it shall be interpreted as Multislot class 11 supported " ; break ;
default : str = " This should not happen " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" Extended DTM GPRS Multi Slot Class: %s (%u) " , str , oct > > ( 32 - bits_needed ) ) ;
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( dtm_egprs_mslot < = 3 )
2008-09-05 05:49:39 +00:00
{
/*
2008-08-24 17:42:30 +00:00
* Extended DTM EGPRS Multi Slot Class
2008-09-05 05:49:39 +00:00
*/
bits_needed = 2 ;
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( ( oct > > ( 32 - bits_needed ) ) | ( dtm_egprs_mslot < < 4 ) )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x01 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x02 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x03 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x10 : str = " Multislot class 5 supported " ; break ;
case 0x11 : str = " Multislot class 6 supported " ; break ;
case 0x12 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x13 : str = " Unused. If received, it shall be interpreted as Multislot class 5 supported " ; break ;
case 0x20 : str = " Multislot class 9 supported " ; break ;
case 0x21 : str = " Multislot class 10 supported " ; break ;
case 0x22 : str = " Unused. If received, it shall be interpreted as Multislot class 9 supported " ; break ;
case 0x23 : str = " Unused. If received, it shall be interpreted as Multislot class 9 supported " ; break ;
case 0x30 : str = " Multislot class 11 supported " ; break ;
case 0x31 : str = " Unused. If received, it shall be interpreted as Multislot class 11 supported " ; break ;
case 0x32 : str = " Unused. If received, it shall be interpreted as Multislot class 11 supported " ; break ;
case 0x33 : str = " Unused. If received, it shall be interpreted as Multislot class 11 supported " ; break ;
default : str = " This should not happen " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" Extended DTM EGPRS Multi Slot Class: %s (%u) " , str , oct > > ( 32 - bits_needed ) ) ;
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
}
/*
* Modulation based multislot class support
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_mod_based_multi_slot_class_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
* High Multislot Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" High Multislot Capability: Bits are not available (%u) " , oct > > ( 32 - bits_needed ) ) ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
}
else
{
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2009-05-14 18:26:18 +00:00
bit_offset + + ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2008-08-24 17:42:30 +00:00
* High Multislot Capability
2008-09-05 05:49:39 +00:00
*/
2008-08-24 17:42:30 +00:00
bits_needed = 2 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2008-08-24 17:42:30 +00:00
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2009-05-07 21:22:36 +00:00
" High Multislot Capability: 0x%02x (%u) "
" - This field effect all other multislot fields. "
" To understand the value please read TS 24.008 5.6.0 "
" Release 5 Chap 10.5.5.12 Page 406 " ,
oct > > ( 32 - bits_needed ) ,
oct > > ( 32 - bits_needed ) ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
/*
* GERAN Iu Mode Capability
*/
bits_needed = 1 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
value = tvb_get_bits8 ( tvb , bit_offset , 1 ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_geran_iu_mode_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
if ( value )
{
/* GERAN Iu Mode Capabilities struct present */
2012-05-17 14:35:11 +00:00
bits_needed = 4 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
2012-05-17 14:35:11 +00:00
value = tvb_get_bits8 ( tvb , bit_offset , 4 ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
if ( value )
{
/*
* FLO Iu Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_flo_iu_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
value - - ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/* skip spare bits */
2012-05-17 14:35:11 +00:00
bit_offset + = value ;
curr_bits_length - = value ;
oct < < = value ;
bits_in_oct - = value ;
2011-05-29 06:06:22 +00:00
}
}
/*
* GMSK Multislot Power Profile
*/
bits_needed = 2 ;
GET_DATA ;
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( oct > > ( 32 - bits_needed ) )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " GMSK_MULTISLOT_POWER_PROFILE 0 " ; break ;
case 0x01 : str = " GMSK_MULTISLOT_POWER_PROFILE 1 " ; break ;
case 0x02 : str = " GMSK_MULTISLOT_POWER_PROFILE 2 " ; break ;
case 0x03 : str = " GMSK_MULTISLOT_POWER_PROFILE 3 " ; break ;
default : str = " This should not happen " ;
2008-08-24 17:42:30 +00:00
}
proto_tree_add_text ( tf_tree ,
2013-03-18 20:26:47 +00:00
tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" GMSK Multislot Power Profile: %s (%u) " , str , oct > > ( 32 - bits_needed ) ) ;
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
/*
2011-05-29 06:06:22 +00:00
* 8 - PSK Multislot Power Profile
2008-08-24 17:42:30 +00:00
*/
2011-05-29 06:06:22 +00:00
bits_needed = 2 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/* analyse bits */
2012-05-17 14:35:11 +00:00
switch ( oct > > ( 32 - bits_needed ) )
2011-05-29 06:06:22 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " 8-PSK_MULTISLOT_POWER_PROFILE 0 " ; break ;
case 0x01 : str = " 8-PSK_MULTISLOT_POWER_PROFILE 1 " ; break ;
case 0x02 : str = " 8-PSK_MULTISLOT_POWER_PROFILE 2 " ; break ;
case 0x03 : str = " 8-PSK_MULTISLOT_POWER_PROFILE 3 " ; break ;
default : str = " This should not happen " ;
2011-05-29 06:06:22 +00:00
}
2013-03-18 20:26:47 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset - 1 - add_octets , 1 + add_octets ,
2012-05-17 14:35:11 +00:00
" 8-PSK Multislot Power Profile: %s (%u) " , str , oct > > ( 32 - bits_needed ) ) ;
bit_offset + = 2 ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* Release 6
*/
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Multiple TBF Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_mult_tbf_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Downlink Advanced Receiver Performance
*/
2012-05-17 14:35:11 +00:00
bits_needed = 2 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_down_adv_rec_perf , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Extended RLC / MAC Control Message Segmentation Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ext_rlc_mac_ctrl_msg_seg_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* DTM Enhancements Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtm_enh_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* DTM GPRS High Multi Slot Class & DTM EGPRS High Multi Slot Class
*/
bits_needed = 1 ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
}
else
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2011-05-29 06:06:22 +00:00
* DTM GPRS High Multi Slot Class
2008-09-05 05:49:39 +00:00
*/
2012-05-17 14:35:11 +00:00
bits_needed = 3 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtm_gprs_high_multi_slot_class , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
bits_needed = 1 ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2011-05-29 06:06:22 +00:00
else
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2010-05-10 15:54:57 +00:00
2011-05-29 06:06:22 +00:00
/*
* DTM EGPRS High Multi Slot Class
*/
2012-05-17 14:35:11 +00:00
bits_needed = 3 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtm_egprs_high_multi_slot_class , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
}
}
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* PS Handover Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ps_ho_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Release 7
*/
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* DTM Handover Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtm_ho_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* Multislot Capability Reduction for Downlink Dual Carrier & Downlink Dual Carrier for DTM Capability
*/
2012-05-17 14:35:11 +00:00
2011-05-29 06:06:22 +00:00
bits_needed = 1 ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2011-05-29 06:06:22 +00:00
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
}
else
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2011-05-29 06:06:22 +00:00
* Multislot Capability Reduction for Downlink Dual Carrier
2008-09-05 05:49:39 +00:00
*/
2012-05-17 14:35:11 +00:00
bits_needed = 3 ;
2008-09-05 05:49:39 +00:00
GET_DATA ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_multi_slot_cap_red_down_dual_carrier , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
/*
* Downlink Dual Carrier for DTM Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_down_dual_carrier_dtm_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
}
2010-05-10 15:54:57 +00:00
2011-05-29 06:06:22 +00:00
/*
* Flexible Timeslot Assignment
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_flex_ts_assign , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* GAN PS Handover Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_gan_ps_ho_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* RLC Non - persistent Mode
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_rlc_non_pers_mode , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Reduced Latency Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_reduced_lat_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Uplink EGPRS2
*/
2012-05-17 14:35:11 +00:00
bits_needed = 2 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ul_egprs2 , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Downlink EGPRS2
*/
2012-05-17 14:35:11 +00:00
bits_needed = 2 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dl_egprs2 , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Release 8
*/
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* E - UTRA FDD support
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_eutra_fdd_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* E - UTRA TDD support
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_eutra_tdd_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* GERAN to E - UTRA support in GERAN packet transfer mode
*/
2012-05-17 14:35:11 +00:00
bits_needed = 2 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_geran_to_eutra_support_in_geran_ptm , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Priority - based reselection support
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_prio_based_resel_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Release 9
*/
/*
* Enhanced Flexible Timeslot Assignment
*/
bits_needed = 1 ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
if ( ( oct > > ( 32 - bits_needed ) ) = = 0 )
2011-05-29 06:06:22 +00:00
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
}
else
{
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2011-05-29 06:06:22 +00:00
/*
* Alternative EFTA Multislot Class
*/
2012-05-17 14:35:11 +00:00
bits_needed = 4 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_alt_efta_multi_slot_class , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* EFTA Multislot Capability Reduction for Downlink Dual Carrier
*/
2012-05-17 14:35:11 +00:00
bits_needed = 3 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_efta_multi_slot_cap_red_down_dual_carrier , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2012-03-16 02:00:29 +00:00
2011-05-29 06:06:22 +00:00
/*
* Indication of Upper Layer PDU Start Capability for RLC UM
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ind_up_layer_pdu_start_cap_for_rlc_um , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* EMST Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_emst_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* MTTI Capability
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_mtti_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* UTRA CSG Cells Reporting
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_utra_csg_cell_report , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2011-05-29 06:06:22 +00:00
/*
* E - UTRA CSG Cells Reporting
*/
2012-05-17 14:35:11 +00:00
bits_needed = 1 ;
2011-05-29 06:06:22 +00:00
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_eutra_csg_cell_report , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
/*
2012-05-20 20:56:42 +00:00
* Release 10
*/
/*
* DTR Capability
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_dtr_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
/*
* EMSR Capability
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_emsr_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
/*
* Fast Downlink Frequency Switching Capability
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_fast_down_freq_switch_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
/*
* TIGHTER Capability
*/
bits_needed = 2 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_tighter_cap , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
2012-10-04 21:23:06 +00:00
bits_in_oct - = bits_needed ;
/*
* Release 11
*/
/*
* FANR Capability
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_fanr_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
/*
* IPA Capability
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_ipa_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
2013-07-10 21:31:22 +00:00
bits_in_oct - = bits_needed ;
/*
* GERAN Network Sharing support
*/
bits_needed = 1 ;
GET_DATA ;
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_gm_rac_geran_nw_sharing_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + = bits_needed ;
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
2012-05-20 20:56:42 +00:00
bits_in_oct - = bits_needed ;
/*
2008-09-05 05:49:39 +00:00
* we are too long . . . so jump over it
*/
2012-05-17 14:35:11 +00:00
while ( curr_bits_length > 0 )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
if ( curr_bits_length > 8 )
2008-09-05 05:49:39 +00:00
bits_needed = 8 ;
else
bits_needed = curr_bits_length ;
GET_DATA ;
2012-05-17 14:35:11 +00:00
curr_bits_length - = bits_needed ;
oct < < = bits_needed ;
bits_in_oct - = bits_needed ;
2008-09-05 05:49:39 +00:00
}
2011-01-16 22:32:22 +00:00
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
} while ( 1 ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = curr_len ;
2010-05-10 15:54:57 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-10-20 03:13:56 +00:00
* [ 9 ] 10.5 .5 .14
*/
static const range_string gmm_cause_vals [ ] = {
2012-05-20 20:56:42 +00:00
{ 0x00 , 0x01 , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x02 , 0x02 , " IMSI unknown in HLR " } ,
{ 0x03 , 0x03 , " Illegal MS " } ,
{ 0x04 , 0x04 , " IMSI unknown in VLR " } , /* Annex G.1 */
{ 0x05 , 0x05 , " IMEI not accepted " } , /* Annex G.1 */
{ 0x06 , 0x06 , " Illegal ME " } ,
{ 0x07 , 0x07 , " GPRS services not allowed " } ,
{ 0x08 , 0x08 , " GPRS services and non-GPRS services not allowed " } ,
{ 0x09 , 0x09 , " MS identity cannot be derived by the network " } ,
{ 0x0a , 0x0a , " Implicitly detached " } ,
{ 0x0b , 0x0b , " PLMN not allowed " } ,
{ 0x0c , 0x0c , " Location Area not allowed " } ,
{ 0x0d , 0x0d , " Roaming not allowed in this location area " } ,
{ 0x0e , 0x0e , " GPRS services not allowed in this PLMN " } ,
{ 0x0f , 0x0f , " No Suitable Cells In Location Area " } ,
{ 0x10 , 0x10 , " MSC temporarily not reachable " } ,
{ 0x11 , 0x11 , " Network failure " } ,
2012-05-20 20:56:42 +00:00
{ 0x12 , 0x13 , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x14 , 0x14 , " MAC failure " } ,
{ 0x15 , 0x15 , " Synch failure " } ,
{ 0x16 , 0x16 , " Congestion " } ,
{ 0x17 , 0x17 , " GSM authentication unacceptable " } ,
2012-05-20 20:56:42 +00:00
{ 0x18 , 0x18 , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x19 , 0x19 , " Not authorized for this CSG " } ,
2012-10-04 21:23:06 +00:00
{ 0x1c , 0x1c , " SMS provided via GPRS in this routing area " } ,
2009-10-20 03:13:56 +00:00
{ 0x20 , 0x20 , " Service option not supported " } , /* Annex G.4 */
{ 0x21 , 0x21 , " Requested service option not subscribed " } , /* Annex G.4 */
{ 0x22 , 0x22 , " Service option temporarily out of order " } , /* Annex G.4 */
2012-05-20 20:56:42 +00:00
{ 0x23 , 0x25 , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x26 , 0x26 , " Call cannot be identified(non-GPRS services only) " } , /* Annex G.4 */
2012-05-20 20:56:42 +00:00
{ 0x27 , 0x27 , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x28 , 0x28 , " No PDP context activated " } ,
2012-05-20 20:56:42 +00:00
{ 0x29 , 0x2f , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x30 , 0x3f , " Retry upon entry into a new cell " } ,
2012-05-20 20:56:42 +00:00
{ 0x40 , 0x5e , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x5f , 0x5f , " Semantically incorrect message " } ,
{ 0x60 , 0x60 , " Invalid mandatory information " } ,
{ 0x61 , 0x61 , " Message type non-existent or not implemented " } ,
{ 0x62 , 0x62 , " Message type not compatible with the protocol state " } ,
2012-01-21 02:39:59 +00:00
{ 0x63 , 0x63 , " Information element non-existent or not implemented " } ,
2009-10-20 03:13:56 +00:00
{ 0x64 , 0x64 , " Conditional IE error " } ,
{ 0x65 , 0x65 , " Message not compatible with the protocol state " } ,
2012-05-20 20:56:42 +00:00
{ 0x66 , 0x6e , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0x6f , 0x6f , " Protocol error, unspecified " } ,
2012-05-20 20:56:42 +00:00
{ 0x70 , 0xff , " Protocol error, unspecified " } ,
2009-10-20 03:13:56 +00:00
{ 0 , 0 , NULL }
} ;
2010-05-10 15:54:57 +00:00
/* NOTE 1 TS 124 008 V8.6.0 (2009-07)
2009-10-20 03:13:56 +00:00
" Any other value received by the mobile station shall be treated as 0110 1111, " Protocol
error , unspecified " . Any other value received by the network shall be treated as
0110 1111 , " Protocol error, unspecified " .
2008-08-24 17:42:30 +00:00
*/
2009-10-20 03:13:56 +00:00
/* NOTE: The listed reject cause values are defined in annex G. */
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_cause ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gm_cause , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .15 Routing area identification
*/
2008-12-23 20:49:15 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_gmm_rai ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
proto_tree * subtree ;
proto_item * item ;
guint32 mcc ;
guint32 mnc ;
guint32 lac ;
guint32 rac ;
guint32 curr_offset ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
mcc = ( tvb_get_guint8 ( tvb , curr_offset ) & 0x0f ) < < 8 ;
mcc | = ( tvb_get_guint8 ( tvb , curr_offset ) & 0xf0 ) ;
mcc | = ( tvb_get_guint8 ( tvb , curr_offset + 1 ) & 0x0f ) ;
mnc = ( tvb_get_guint8 ( tvb , curr_offset + 2 ) & 0x0f ) < < 8 ;
mnc | = ( tvb_get_guint8 ( tvb , curr_offset + 2 ) & 0xf0 ) ;
mnc | = ( tvb_get_guint8 ( tvb , curr_offset + 1 ) & 0xf0 ) > > 4 ;
if ( ( mnc & 0x000f ) = = 0x000f )
mnc = mnc > > 4 ;
2009-11-27 23:55:32 +00:00
lac = tvb_get_ntohs ( tvb , curr_offset + 3 ) ;
2008-08-24 17:42:30 +00:00
rac = tvb_get_guint8 ( tvb , curr_offset + 5 ) ;
item = proto_tree_add_text ( tree ,
tvb , curr_offset , 6 ,
2009-11-27 23:55:32 +00:00
" Routing area identification: %x-%x-%u-%u " ,
2012-05-17 14:35:11 +00:00
mcc , mnc , lac , rac ) ;
2008-08-24 17:42:30 +00:00
subtree = proto_item_add_subtree ( item , ett_gmm_rai ) ;
2011-04-04 14:37:25 +00:00
dissect_e212_mcc_mnc ( tvb , pinfo , subtree , offset , TRUE ) ;
2009-11-27 23:55:32 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( subtree , hf_gsm_a_lac , tvb , curr_offset + 3 , 2 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gm_rac , tvb , curr_offset + 5 , 1 , ENC_BIG_ENDIAN ) ;
2009-11-27 23:55:32 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 6 ;
if ( add_string )
{
if ( add_string [ 0 ] = = ' \0 ' )
{
g_snprintf ( add_string , string_len , " - RAI: %x-%x-%u-%u " , mcc , mnc , lac , rac ) ;
}
}
2011-01-19 06:43:28 +00:00
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
2011-04-27 22:18:00 +00:00
/*
* [ 7 ] 10.5 .5 .15 a Routing area identification 2
*/
2011-11-28 16:41:59 +00:00
static guint16
2011-04-27 22:18:00 +00:00
de_gmm_rai2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
{
/* The routing area identification 2 value is coded as octet 2 to 7 of the Routing area identification information element. */
return de_gmm_rai ( tvb , tree , pinfo , offset , len , add_string , string_len ) ;
}
2008-08-24 17:42:30 +00:00
/*
* [ 7 ] 10.5 .5 .17
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_update_res ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
guint32 curr_offset ;
const gchar * str ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE HIGHER NIBBLE */
oct > > = 4 ;
2012-05-17 14:35:11 +00:00
switch ( oct & 7 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0 : str = " RA updated " ; break ;
case 1 : str = " combined RA/LA updated " ; break ;
default : str = " reserved " ;
2008-08-24 17:42:30 +00:00
}
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
2009-11-26 22:37:43 +00:00
" Update Result: %s (%u) " ,
str ,
oct & 7 ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 22:41:08 +00:00
* [ 9 ] 10.5 .5 .18 Update Type
2008-08-24 17:42:30 +00:00
*/
2009-11-18 22:41:08 +00:00
static const value_string gsm_a_gm_update_type_vals [ ] = {
{ 0x00 , " RA updating " } ,
{ 0x01 , " combined RA/LA updating " } ,
{ 0x02 , " combined RA/LA updating with IMSI attach " } ,
{ 0x03 , " Periodic updating " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_update_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2013-09-03 21:10:05 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gm_for , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_update_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .19 A & C reference number ( lower nibble )
2008-08-24 17:42:30 +00:00
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ac_ref_nr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-11-18 20:39:14 +00:00
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE LOWER NIBBLE */
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_ac_ref_nr , tvb , ( offset < < 3 ) + 4 , 4 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .19 A & C reference number ( higher nibble )
2008-08-24 17:42:30 +00:00
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ac_ref_nr_h ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE HIGHER NIBBLE */
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_ac_ref_nr , tvb , offset < < 3 , 4 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-18 20:39:14 +00:00
* [ 9 ] 10.5 .5 .20 Service type
2008-08-24 17:42:30 +00:00
*/
2009-11-18 20:39:14 +00:00
static const value_string gsm_a_gm_serv_type_vals [ ] = {
2012-01-21 16:09:08 +00:00
{ 0x00 , " Signalling " } ,
2009-11-18 20:39:14 +00:00
{ 0x01 , " Data " } ,
{ 0x02 , " Paging response " } ,
{ 0x03 , " MBMS Multicast Service Reception " } ,
{ 0x04 , " MBMS Broadcast Service Reception " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_service_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-11-18 20:39:14 +00:00
guint32 bit_offset ;
2008-08-24 17:42:30 +00:00
2009-11-18 20:39:14 +00:00
bit_offset = offset < < 3 ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 1 ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_serv_type , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
2013-09-09 19:30:47 +00:00
/*bit_offset += 3;*/
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-23 19:15:58 +00:00
* [ 9 ] 10.5 .5 .21 Cell Notification
* No data
2008-08-24 17:42:30 +00:00
*/
/*
2009-11-29 23:23:27 +00:00
* [ 9 ] 10.5 .5 .22 PS LCS Capability
2008-08-24 17:42:30 +00:00
*/
2009-11-29 23:23:27 +00:00
static const true_false_string gsm_a_gm_apc_vals = {
" Additional Positioning Capabilities which can be retrieved by RRLP are supported " ,
" Additional Positioning Capabilities which can be retrieved by RRLP are not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-11-29 23:23:27 +00:00
static const true_false_string gsm_a_gm_otd_a_vals = {
" MS assisted E-OTD supported " ,
" MS assisted E-OTD not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-11-29 23:23:27 +00:00
static const true_false_string gsm_a_gm_otd_b_vals = {
" MS based E-OTD supported " ,
" MS based E-OTD not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-11-29 23:23:27 +00:00
static const true_false_string gsm_a_gm_gps_a_vals = {
" MS assisted GPS supported " ,
" MS assisted GPS not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-11-29 23:23:27 +00:00
static const true_false_string gsm_a_gm_gps_b_vals = {
" MS based GPS supported " ,
" MS based GPS not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-11-29 23:23:27 +00:00
static const true_false_string gsm_a_gm_gps_c_vals = {
" Conventional GPS supported " ,
" Conventional GPS not supported "
} ;
2008-08-24 17:42:30 +00:00
2009-11-29 23:23:27 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_ps_lcs_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2009-11-29 23:23:27 +00:00
{
guint32 curr_offset ;
curr_offset = offset ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset < < 3 , 2 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_apc , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_otd_a , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_otd_b , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_gps_a , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_gps_b , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_gps_c , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .5 .23
*/
2012-05-20 20:56:42 +00:00
static const true_false_string gsm_a_gm_lcs_molr_value = {
" LCS-MOLR via PS domain supported " ,
" LCS-MOLR via PS domain not supported "
} ;
static const true_false_string gsm_a_gm_ims_vops_value = {
" IMS voice over PS session supported in Iu mode, but not supported in A/Gb mode " ,
" IMS voice over PS session in Iu mode and A/Gb mode not supported "
} ;
static const true_false_string gsm_a_gm_emc_bs_value = {
" Emergency bearer services supported in Iu mode, but not supported in A/Gb mode " ,
" Emergency bearer services in Iu mode and A/Gb mode not supported "
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_net_feat_supp ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-20 20:56:42 +00:00
guint32 curr_offset ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2012-05-20 20:56:42 +00:00
proto_tree_add_item ( tree , hf_gsm_a_gm_lcs_molr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_mbms , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_ims_vops , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_emc_bs , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
2012-10-04 21:23:06 +00:00
/*
* [ 7 ] 10.5 .5 .23 a Additional network feature support
*/
static const true_false_string gsm_a_gm_gprs_sms_value = {
" SMS via GPRS not supported " ,
" SMS via GPRS supported "
} ;
static guint16
de_gmm_add_net_feat_supp ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
curr_offset = offset ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset < < 3 , 7 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_gm_gprs_sms , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
curr_offset + + ;
return ( curr_offset - offset ) ;
}
2008-11-17 19:41:44 +00:00
/* [7] 10.5.5.24 Inter RAT information container */
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gmm_rat_info_container ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
2008-11-17 19:41:44 +00:00
tvbuff_t * rrc_irat_ho_info_tvb ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
/* The value part of the Inter RAT information container information element is the INTER RAT HANDOVER INFO as
defined in 3 GPP TS 25.331 [ 23 c ] . If this field includes padding bits , they are defined in 3 GPP TS 25.331 [ 23 c ] . */
2008-11-17 19:41:44 +00:00
rrc_irat_ho_info_tvb = tvb_new_subset ( tvb , curr_offset , len , len ) ;
if ( rrc_irat_ho_info_handle )
2012-05-17 14:35:11 +00:00
call_dissector ( rrc_irat_ho_info_handle , rrc_irat_ho_info_tvb , pinfo , tree ) ;
2008-11-17 19:41:44 +00:00
else
2012-05-17 14:35:11 +00:00
proto_tree_add_text ( tree , tvb , curr_offset , len , " INTER RAT HANDOVER INFO - Not decoded " ) ;
2008-08-24 17:42:30 +00:00
return len ;
}
2011-04-27 22:18:00 +00:00
/* [7] 10.5.5.25 Requested MS information */
static const true_false_string gsm_a_gm_req_ms_info_irat_vals = {
" Inter RAT information container IE requested " ,
" Inter RAT information container IE not requested "
} ;
static const true_false_string gsm_a_gm_req_ms_info_irat2_vals = {
" E-UTRAN inter RAT information container IE requested " ,
" E-UTRAN inter RAT information container IE not requested "
} ;
static guint16
de_gmm_req_ms_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
guint32 bit_offset ;
2011-05-17 18:58:40 +00:00
2011-04-27 22:18:00 +00:00
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
bit_offset = ( curr_offset < < 3 ) + 4 ;
2011-04-27 22:18:00 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_req_ms_info_irat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_req_ms_info_irat2 , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
/*bit_offset += 2;
2012-02-12 18:04:26 +00:00
curr_offset + + ; */
2011-05-17 18:58:40 +00:00
2011-04-27 22:18:00 +00:00
return len ;
}
/* [7] 10.5.5.26 UE network capability
* See subclause 9.9 .3 . x in 3 GPP TS 24.301 [ 120 ] .
2011-05-17 18:58:40 +00:00
*/
2011-04-27 22:18:00 +00:00
/* [7] 10.5.5.27 E-UTRAN inter RAT information container */
static guint16
de_gmm_eutran_irat_info_container ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
2011-04-27 22:18:00 +00:00
tvbuff_t * lte_rrc_ue_eutra_cap_tvb ;
curr_offset = offset ;
/* The value part of the E-UTRAN inter RAT information container information element
is formatted and coded according to the UE - EUTRA - Capability IE defined in 3 GPP TS 36.331 [ 129 ] */
lte_rrc_ue_eutra_cap_tvb = tvb_new_subset ( tvb , curr_offset , len , len ) ;
if ( lte_rrc_ue_eutra_cap_handle )
call_dissector ( lte_rrc_ue_eutra_cap_handle , lte_rrc_ue_eutra_cap_tvb , pinfo , tree ) ;
else
2012-05-17 14:35:11 +00:00
proto_tree_add_text ( tree , tvb , curr_offset , len , " E-UTRAN Inter RAT information container - Not decoded " ) ;
2011-04-27 22:18:00 +00:00
return len ;
}
/* [7] 10.5.5.28 Voice domain preference and UE's usage setting */
static const true_false_string gsm_a_gm_ue_usage_setting_vals = {
" Data centric " ,
" Voice centric "
} ;
static const value_string gsm_a_gm_voice_domain_pref_for_eutran_vals [ ] = {
{ 0x0 , " CS Voice only " } ,
{ 0x1 , " IMS PS Voice only " } ,
{ 0x2 , " CS voice preferred, IMS PS Voice as secondary " } ,
{ 0x3 , " IMS PS voice preferred, CS Voice as secondary " } ,
{ 0 , NULL }
} ;
2011-12-01 21:26:22 +00:00
guint16
2011-04-27 22:18:00 +00:00
de_gmm_voice_domain_pref ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
guint32 bit_offset ;
2011-05-17 18:58:40 +00:00
2011-04-27 22:18:00 +00:00
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
bit_offset = curr_offset < < 3 ;
2011-04-27 22:18:00 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 5 ;
2011-04-27 22:18:00 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_ue_usage_setting , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_voice_domain_pref_for_eutran , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
/*bit_offset += 2;
2012-02-12 18:04:26 +00:00
curr_offset + + ; */
2011-04-27 22:18:00 +00:00
return len ;
}
2012-05-20 20:56:42 +00:00
/* [10] 10.5.5.29 P-TMSI type */
static const true_false_string gsm_a_gm_ptmsi_type_value = {
" Mapped P-TMSI " ,
" Native P-TMSI "
} ;
static guint16
de_gmm_ptmsi_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset , bit_offset ;
curr_offset = offset ;
bit_offset = ( curr_offset < < 3 ) + 4 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
bit_offset + = 3 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_ptmsi_type , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
curr_offset + + ;
return ( curr_offset - offset ) ;
}
2012-10-02 12:46:21 +00:00
2012-05-20 20:56:42 +00:00
/* [10] 10.5.5.30 Location Area Identification 2 */
static guint16
de_gmm_lai_2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len )
{
/* The Location Area Identification 2 value is coded as octet 2 to 6 of the */
/* Location Area Identification information element */
return de_lai ( tvb , tree , pinfo , offset , len , add_string , string_len ) ;
}
2012-10-02 12:46:21 +00:00
/* [11] 10.5.5.31 Network resource identifier container */
static guint16
de_gmm_net_res_id_cont ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
guint32 bit_offset ;
curr_offset = offset ;
bit_offset = curr_offset < < 3 ;
proto_tree_add_item ( tree , hf_gsm_a_gm_nri_cont , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
bit_offset + = 10 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 6 , ENC_BIG_ENDIAN ) ;
return len ;
}
2008-08-24 17:42:30 +00:00
/*
* [ 7 ] 10.5 .7 .1
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gc_context_stat ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
guint16 pdp_nr ;
guint32 curr_offset ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
for ( pdp_nr = 0 ; pdp_nr < 16 ; pdp_nr + + )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
if ( pdp_nr = = 8 )
2008-09-05 05:49:39 +00:00
{
curr_offset + + ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
}
2013-09-03 21:10:05 +00:00
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" NSAPI %d: %s (%u) " , pdp_nr ,
2009-11-26 22:37:43 +00:00
pdp_str [ oct & 1 ] ,
oct & 1 ) ;
2008-09-05 05:49:39 +00:00
oct > > = 1 ;
2008-08-24 17:42:30 +00:00
}
curr_offset + + ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .7 .2
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gc_radio_prio ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
guint32 curr_offset ;
const gchar * str ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
switch ( oct & 7 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 1 : str = " priority level 1 (highest) " ; break ;
case 2 : str = " priority level 2 " ; break ;
case 3 : str = " priority level 3 " ; break ;
case 4 : str = " priority level 4 (lowest) " ; break ;
default : str = " priority level 4 (lowest) " ;
2008-08-24 17:42:30 +00:00
}
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
2009-11-26 22:37:43 +00:00
" Radio Priority (PDP or SMS): %s (%u) " ,
str ,
oct & 7 ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-11-23 19:59:40 +00:00
* [ 9 ] 10.5 .7 .3 GPRS Timer
2008-08-24 17:42:30 +00:00
*/
2009-11-23 19:59:40 +00:00
static const value_string gsm_a_gm_gprs_timer_unit_vals [ ] = {
{ 0x00 , " value is incremented in multiples of 2 seconds " } ,
{ 0x01 , " value is incremented in multiples of 1 minute " } ,
{ 0x02 , " value is incremented in multiples of decihours " } ,
{ 0x07 , " value indicates that the timer is deactivated " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gc_timer ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
guint16 val ;
const gchar * str ;
proto_tree * subtree ;
2012-05-20 09:50:34 +00:00
proto_item * item = NULL ;
2008-08-24 17:42:30 +00:00
2009-11-23 19:59:40 +00:00
oct = tvb_get_guint8 ( tvb , offset ) ;
2008-08-24 17:42:30 +00:00
val = oct & 0x1f ;
2012-05-17 14:35:11 +00:00
switch ( oct > > 5 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0 : str = " sec " ; val * = 2 ; break ;
case 1 : str = " min " ; break ;
case 2 : str = " min " ; val * = 6 ; break ;
2012-05-20 10:57:12 +00:00
case 7 : str = " " ;
2012-05-20 09:50:34 +00:00
item = proto_tree_add_text ( tree , tvb , offset , 1 ,
" GPRS Timer: timer is deactivated " ) ;
break ;
default : str = " min " ;
2008-08-24 17:42:30 +00:00
}
2012-05-20 09:50:34 +00:00
if ( item = = NULL ) {
item = proto_tree_add_text ( tree , tvb , offset , 1 ,
" GPRS Timer: %u %s " , val , str ) ;
}
2008-08-24 17:42:30 +00:00
2009-11-23 19:59:40 +00:00
subtree = proto_item_add_subtree ( item , ett_gmm_gprs_timer ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( subtree , hf_gsm_a_gm_gprs_timer_unit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gm_gprs_timer_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .7 .4
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gc_timer2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
guint16 val ;
guint32 curr_offset ;
2012-05-21 00:23:13 +00:00
const gchar * str = NULL ;
2012-05-20 09:50:34 +00:00
proto_tree * subtree ;
proto_item * item = NULL ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
val = oct & 0x1f ;
2012-05-17 14:35:11 +00:00
switch ( oct > > 5 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0 : str = " sec " ; val * = 2 ; break ;
case 1 : str = " min " ; break ;
case 2 : str = " min " ; val * = 6 ; break ;
2008-08-24 17:42:30 +00:00
case 7 :
2012-05-20 09:50:34 +00:00
item = proto_tree_add_text ( tree , tvb , curr_offset , 1 ,
" GPRS Timer: timer is deactivated " ) ;
break ;
default : str = " min " ;
}
2008-08-24 17:42:30 +00:00
2012-05-20 09:50:34 +00:00
if ( item = = NULL ) {
item = proto_tree_add_text ( tree , tvb , curr_offset , 1 ,
" GPRS Timer: %u %s %s " ,
val , str , add_string ? add_string : " " ) ;
2008-08-24 17:42:30 +00:00
}
2012-05-20 09:50:34 +00:00
subtree = proto_item_add_subtree ( item , ett_gmm_gprs_timer ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gm_gprs_timer2_unit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gm_gprs_timer2_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
curr_offset + + ;
return ( curr_offset - offset ) ;
}
/*
* [ 10 ] 10.5 .7 .4 a
*/
static const value_string gsm_a_gm_gprs_timer3_unit_vals [ ] = {
{ 0x00 , " value is incremented in multiples of 10 minutes " } ,
{ 0x01 , " value is incremented in multiples of 1 hour " } ,
{ 0x02 , " value is incremented in multiples of 10 hours " } ,
{ 0x03 , " value is incremented in multiples of 2 seconds " } ,
{ 0x04 , " value is incremented in multiples of 30 seconds " } ,
{ 0x05 , " value is incremented in multiples of 1 minute " } ,
{ 0x07 , " value indicates that the timer is deactivated " } ,
{ 0 , NULL }
} ;
static guint16
de_gc_timer3 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
{
guint8 oct ;
guint16 val ;
guint32 curr_offset ;
2012-05-21 00:23:13 +00:00
const gchar * str = NULL ;
2012-05-20 09:50:34 +00:00
proto_tree * subtree ;
proto_item * item = NULL ;
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
val = oct & 0x1f ;
switch ( oct > > 5 )
{
case 0 : str = " min " ; val * = 10 ; break ;
case 1 : str = " hr " ; break ;
case 2 : str = " hr " ; val * = 10 ; break ;
case 3 : str = " sec " ; val * = 2 ; break ;
case 4 : str = " sec " ; val * = 30 ; break ;
case 5 : str = " min " ; break ;
case 7 :
item = proto_tree_add_text ( tree , tvb , curr_offset , 1 ,
" GPRS Timer: timer is deactivated " ) ;
break ;
default : str = " hr " ;
}
if ( item = = NULL ) {
item = proto_tree_add_text ( tree , tvb , curr_offset , 1 ,
" GPRS Timer: %u %s " , val , str ) ;
}
2008-08-24 17:42:30 +00:00
2012-05-20 09:50:34 +00:00
subtree = proto_item_add_subtree ( item , ett_gmm_gprs_timer ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gm_gprs_timer3_unit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( subtree , hf_gsm_a_gm_gprs_timer3_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .7 .5
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gc_radio_prio2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
guint32 curr_offset ;
const gchar * str ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
/* IMPORTANT - IT'S ASSUMED THAT THE INFORMATION IS IN THE HIGHER NIBBLE */
oct > > = 4 ;
2012-05-17 14:35:11 +00:00
switch ( oct & 7 )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 1 : str = " priority level 1 (highest) " ; break ;
case 2 : str = " priority level 2 " ; break ;
case 3 : str = " priority level 3 " ; break ;
case 4 : str = " priority level 4 (lowest) " ; break ;
default : str = " priority level 4 (lowest) " ;
2008-08-24 17:42:30 +00:00
}
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
2009-11-26 22:37:43 +00:00
" Radio Priority (TOM8): %s (%u) " ,
str ,
oct & 7 ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 10.5 .7 .6 MBMS context status
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_gc_mbms_context_stat ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
guint i ;
guint8 oct , j ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2008-11-17 19:41:44 +00:00
for ( i = 0 ; i < len ; i + + )
{
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
for ( j = 0 ; j < 8 ; j + + )
{
2013-09-03 21:10:05 +00:00
proto_tree_add_text ( tree ,
2008-11-17 19:41:44 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" NSAPI %d: %s (%u) " , 128 + i * 8 + j ,
2009-11-26 22:37:43 +00:00
pdp_str [ oct & 1 ] ,
oct & 1 ) ;
2008-11-17 19:41:44 +00:00
oct > > = 1 ;
}
curr_offset + + ;
}
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( len ) ;
2008-08-24 17:42:30 +00:00
}
2011-04-27 22:18:00 +00:00
/*
* [ 8 ] 10.5 .7 .7 Uplink data status
*/
static const true_false_string gsm_a_gm_nsapi_ul_stat_vals = {
" uplink data are pending for the preserved PDP context " ,
" no uplink data are pending for the preserved PDP context or the PDP context is PDP-INACTIVE or is PDP-ACTIVE with a RAB already established "
} ;
2011-05-17 18:58:40 +00:00
2011-04-27 22:18:00 +00:00
static guint16
de_gc_uplink_data_stat ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
guint32 bit_offset ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
bit_offset = curr_offset < < 3 ;
2011-04-27 22:18:00 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_7_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_6_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_5_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
bit_offset + = 5 ;
2011-04-27 22:18:00 +00:00
curr_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_15_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_14_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_13_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_12_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_11_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_10_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_9_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
bit_offset + + ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_nsapi_8_ul_stat , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-02-12 18:04:26 +00:00
/*
2011-04-27 22:18:00 +00:00
bit_offset + + ;
curr_offset + + ;
2012-02-12 18:04:26 +00:00
*/
2012-05-17 14:35:11 +00:00
return ( len ) ;
2011-04-27 22:18:00 +00:00
}
2012-05-20 09:50:34 +00:00
/*
* [ 8 ] 10.5 .7 .8 Device properties
*/
static const true_false_string gsm_a_gm_device_prop_low_prio_value = {
" MS is configured for NAS signalling low priority " ,
" MS is not configured for NAS signalling low priority "
} ;
static guint16
de_gc_device_properties ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
guint32 bit_offset ;
curr_offset = offset ;
bit_offset = ( curr_offset < < 3 ) + 4 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;
bit_offset + = 3 ;
proto_tree_add_bits_item ( tree , hf_gsm_a_gm_device_prop_low_prio , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;
curr_offset + + ;
return ( curr_offset - offset ) ;
}
2008-08-24 17:42:30 +00:00
/*
* [ 7 ] 10.5 .6 .1
*/
2011-11-29 22:25:21 +00:00
# define MAX_APN_LENGTH 100
2008-08-24 17:42:30 +00:00
2008-12-23 20:49:15 +00:00
guint16
2012-10-31 16:39:51 +00:00
de_sm_apn ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
2008-09-05 05:49:39 +00:00
guint curr_len ;
2012-05-17 14:35:11 +00:00
guint8 str [ MAX_APN_LENGTH + 1 ] ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
/* init buffer and copy it */
2012-05-17 14:35:11 +00:00
memset ( str , 0 , MAX_APN_LENGTH ) ;
2011-01-16 03:35:29 +00:00
tvb_memcpy ( tvb , str , offset , len < MAX_APN_LENGTH ? len : MAX_APN_LENGTH ) ;
2008-08-24 17:42:30 +00:00
curr_len = 0 ;
2012-05-17 14:35:11 +00:00
while ( ( curr_len < len ) & & ( curr_len < MAX_APN_LENGTH ) )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint step = str [ curr_len ] ;
str [ curr_len ] = ' . ' ;
curr_len + = step + 1 ;
2008-08-24 17:42:30 +00:00
}
2012-11-01 08:24:08 +00:00
/* High light bytes including the first lenght byte */
proto_tree_add_string ( tree , hf_gsm_a_gm_apn , tvb , curr_offset , len , str + 1 ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = len ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .6 .2
*/
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_sm_nsapi ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
guint8 oct ;
guint32 curr_offset ;
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
" NSAPI: 0x%02x (%u) %s " ,
2012-05-17 14:35:11 +00:00
oct & 0x0f , oct & 0x0f , add_string ? add_string : " " ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-03-04 19:51:55 +00:00
* [ 7 ] 10.5 .6 .3 Protocol configuration options
2008-08-24 17:42:30 +00:00
*/
2012-05-22 20:34:20 +00:00
static const range_string gsm_a_sm_pco_ms2net_prot_vals [ ] = {
{ 0x0001 , 0x0001 , " P-CSCF IPv6 Address Request " } ,
{ 0x0002 , 0x0002 , " IM CN Subsystem Signalling Flag " } ,
{ 0x0003 , 0x0003 , " DNS Server IPv6 Address Request " } ,
{ 0x0004 , 0x0004 , " Not Supported " } ,
{ 0x0005 , 0x0005 , " MS Support of Network Requested Bearer Control indicator " } ,
{ 0x0006 , 0x0006 , " Reserved " } ,
{ 0x0007 , 0x0007 , " DSMIPv6 Home Agent Address Request " } ,
{ 0x0008 , 0x0008 , " DSMIPv6 Home Network Prefix Request " } ,
{ 0x0009 , 0x0009 , " DSMIPv6 IPv4 Home Agent Address Request " } ,
{ 0x000a , 0x000a , " IP address allocation via NAS signalling " } ,
{ 0x000b , 0x000b , " IPv4 address allocation via DHCPv4 " } ,
{ 0x000c , 0x000c , " P-CSCF IPv4 Address Request " } ,
{ 0x000d , 0x000d , " DNS Server IPv4 Address Request " } ,
{ 0x000e , 0x000e , " MSISDN Request " } ,
{ 0x000f , 0x000f , " IFOM-Support-Request " } ,
{ 0x0010 , 0x0010 , " IPv4 Link MTU Request " } ,
2012-10-04 21:23:06 +00:00
{ 0x0011 , 0x0011 , " MS support of Local address in TFT indicator " } ,
2012-05-22 20:34:20 +00:00
{ 0xff00 , 0xffff , " Operator Specific Use " } ,
{ 0 , 0 , NULL }
2009-08-18 14:39:32 +00:00
} ;
2012-05-22 20:34:20 +00:00
static const range_string gsm_a_sm_pco_net2ms_prot_vals [ ] = {
{ 0x0001 , 0x0001 , " P-CSCF IPv6 Address " } ,
{ 0x0002 , 0x0002 , " IM CN Subsystem Signalling Flag " } ,
{ 0x0003 , 0x0003 , " DNS Server IPv6 Address " } ,
{ 0x0004 , 0x0004 , " Policy Control rejection code " } ,
{ 0x0005 , 0x0005 , " Selected Bearer Control Mode " } ,
{ 0x0006 , 0x0006 , " Reserved " } ,
{ 0x0007 , 0x0007 , " DSMIPv6 Home Agent Address " } ,
{ 0x0008 , 0x0008 , " DSMIPv6 Home Network Prefix " } ,
{ 0x0009 , 0x0009 , " DSMIPv6 IPv4 Home Agent Address " } ,
{ 0x000a , 0x000a , " Reserved " } ,
{ 0x000b , 0x000b , " Reserved " } ,
{ 0x000c , 0x000c , " P-CSCF IPv4 Address " } ,
{ 0x000d , 0x000d , " DNS Server IPv4 Address " } ,
{ 0x000e , 0x000e , " MSISDN " } ,
{ 0x000f , 0x000f , " IFOM-Support " } ,
{ 0x0010 , 0x0010 , " IPv4 Link MTU " } ,
2012-10-04 21:23:06 +00:00
{ 0x0011 , 0x0011 , " Network support of Local address in TFT indicator " } ,
2012-05-22 20:34:20 +00:00
{ 0xff00 , 0xffff , " Operator Specific Use " } ,
{ 0 , 0 , NULL }
2009-08-18 14:39:32 +00:00
} ;
2011-01-12 16:43:19 +00:00
static const value_string gsm_a_gm_link_dir_vals [ ] = {
{ - 1 , " Unknown " } ,
{ 0x0 , " MS to network " } ,
{ 0x1 , " Network to MS " } ,
{ 0 , NULL }
} ;
2009-02-16 21:21:11 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_sm_pco ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
proto_item * generated_item ;
guint32 curr_offset ;
guint curr_len ;
guchar oct ;
2012-11-26 02:24:48 +00:00
struct e_in6_addr ipv6_addrx ;
2012-05-17 14:35:11 +00:00
int link_dir ;
2012-11-26 02:24:48 +00:00
guint32 ipv4_addrx ;
2012-05-22 20:34:20 +00:00
proto_item * pco_item ;
proto_tree * pco_tree ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2011-04-04 14:37:25 +00:00
link_dir = pinfo - > link_dir ;
2012-05-17 14:35:11 +00:00
generated_item = proto_tree_add_int ( tree , hf_gsm_a_gm_link_dir , tvb , curr_offset , 0 , link_dir ) ;
2011-01-12 16:43:19 +00:00
PROTO_ITEM_SET_GENERATED ( generated_item ) ;
/* 1 ext 0 0 0 0 Spare Configuration protocol */
2012-09-28 21:20:29 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_ext , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2011-01-12 16:43:19 +00:00
/* Configuration protocol (octet 3)
* Bits
* 3 2 1
* 0 0 0 PPP for use with IP PDP type or IP PDN type ( see 3 GPP TS 24.301 [ 120 ] )
*
* All other values are interpreted as PPP in this version of the protocol .
* ( 3 GPP TS 24.008 version 9.4 .0 Release 9 )
*/
2012-05-17 14:35:11 +00:00
proto_tree_add_text ( tree , tvb , curr_offset , 1 , " Configuration Protocol: PPP for use with IP PDP type or IP PDN type (%u) " , oct & 0x07 ) ;
2009-08-18 14:39:32 +00:00
curr_len - - ;
curr_offset + + ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
while ( curr_len > 0 )
2008-08-24 17:42:30 +00:00
{
guchar e_len ;
guint16 prot ;
2008-09-05 05:49:39 +00:00
tvbuff_t * l3_tvb ;
2011-01-12 16:43:19 +00:00
/* Protocol ID 1 octet 4
* octet 5
* Length of protocol ID 1 contents octet 6
* Protocol ID 1 contents octet 7
*/
2012-05-17 14:35:11 +00:00
prot = tvb_get_ntohs ( tvb , curr_offset ) ;
2013-09-16 10:39:06 +00:00
pco_item = proto_tree_add_uint_format_value ( tree , hf_gsm_a_gm_pco_pid , tvb , curr_offset , 2 , ( guint32 ) prot ,
" %s (0x%04x) " ,
2011-01-12 16:43:19 +00:00
link_dir ?
2012-05-22 20:34:20 +00:00
rval_to_str ( ( guint32 ) prot , gsm_a_sm_pco_net2ms_prot_vals , val_to_str_ext_const ( prot , & ppp_vals_ext , " Unknown " ) ) :
rval_to_str ( ( guint32 ) prot , gsm_a_sm_pco_ms2net_prot_vals , val_to_str_ext_const ( prot , & ppp_vals_ext , " Unknown " ) ) ,
2011-01-12 16:43:19 +00:00
( guint32 ) prot ) ;
2012-05-22 20:34:20 +00:00
pco_tree = proto_item_add_subtree ( pco_item , ett_sm_pco ) ;
2011-01-12 16:43:19 +00:00
2012-05-17 14:35:11 +00:00
curr_len - = 2 ;
curr_offset + = 2 ;
2011-01-12 16:43:19 +00:00
e_len = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-22 20:34:20 +00:00
proto_tree_add_text ( pco_tree , tvb , curr_offset , 1 , " Length: 0x%02x (%u) " , e_len , e_len ) ;
2012-05-17 14:35:11 +00:00
curr_len - = 1 ;
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
switch ( prot )
2008-08-24 17:42:30 +00:00
{
case 0x0001 :
2011-12-01 05:42:07 +00:00
case 0x0003 :
case 0x0007 :
2013-04-16 05:40:54 +00:00
if ( ( link_dir = = P2P_DIR_DL ) & & ( e_len > 0 ) ) {
2012-11-26 02:24:48 +00:00
tvb_get_ipv6 ( tvb , curr_offset , & ipv6_addrx ) ;
proto_tree_add_text ( pco_tree , tvb , curr_offset , 16 , " IPv6: %s " , ip6_to_str ( & ipv6_addrx ) ) ;
2009-04-18 06:34:58 +00:00
}
2008-09-05 05:49:39 +00:00
break ;
2008-08-24 17:42:30 +00:00
case 0x0002 :
2011-12-01 05:42:07 +00:00
case 0x0006 :
case 0x000A :
case 0x000B :
2012-05-20 20:56:42 +00:00
case 0x000F :
2012-10-04 21:23:06 +00:00
case 0x0011 :
2008-09-05 05:49:39 +00:00
break ;
2011-12-01 05:42:07 +00:00
case 0x0004 :
2012-05-20 20:56:42 +00:00
if ( ( link_dir = = P2P_DIR_DL ) & & ( e_len = = 1 ) ) {
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-22 20:34:20 +00:00
proto_tree_add_text ( pco_tree , tvb , curr_offset , 1 , " Reject Code: 0x%02x (%u) " , oct , oct ) ;
2011-12-01 05:42:07 +00:00
}
break ;
case 0x0005 :
if ( ( link_dir = = P2P_DIR_DL ) & & ( e_len = = 1 ) ) {
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-22 20:34:20 +00:00
proto_tree_add_text ( pco_tree , tvb , curr_offset , 1 , " %s " , ( oct = = 1 ) ? " MS only " :
2011-12-01 05:42:07 +00:00
( ( oct = = 2 ) ? " MS/NW " : " Unknown " ) ) ;
}
break ;
case 0x0008 :
2013-04-16 05:40:54 +00:00
if ( ( link_dir = = P2P_DIR_DL ) & & ( e_len > 0 ) ) {
2012-11-26 02:24:48 +00:00
tvb_get_ipv6 ( tvb , curr_offset , & ipv6_addrx ) ;
proto_tree_add_text ( pco_tree , tvb , curr_offset , 16 , " IPv6: %s " , ip6_to_str ( & ipv6_addrx ) ) ;
2011-12-01 05:42:07 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset + 16 ) ;
2012-05-22 20:34:20 +00:00
proto_tree_add_text ( pco_tree , tvb , curr_offset + 16 , 1 , " Prefix length: %u " , oct ) ;
2009-04-18 06:34:58 +00:00
}
2008-09-05 05:49:39 +00:00
break ;
2011-12-01 05:42:07 +00:00
case 0x0009 :
case 0x000C :
case 0x000D :
2013-04-16 05:40:54 +00:00
if ( ( link_dir = = P2P_DIR_DL ) & & ( e_len > 0 ) ) {
2012-11-26 02:24:48 +00:00
ipv4_addrx = tvb_get_ipv4 ( tvb , curr_offset ) ;
2012-05-22 20:34:20 +00:00
proto_tree_add_text ( pco_tree , tvb , curr_offset , 4 , " IPv4: %s " ,
2012-11-26 02:24:48 +00:00
ip_to_str ( ( guint8 * ) & ipv4_addrx ) ) ;
2011-12-01 05:42:07 +00:00
}
2008-09-05 05:49:39 +00:00
break ;
2012-05-20 20:56:42 +00:00
case 0x0010 :
2013-04-16 05:40:54 +00:00
if ( ( link_dir = = P2P_DIR_DL ) & & ( e_len = = 2 ) ) {
2012-05-20 20:56:42 +00:00
guint16 word = tvb_get_ntohs ( tvb , curr_offset ) ;
2012-05-22 20:34:20 +00:00
proto_tree_add_text ( pco_tree , tvb , curr_offset , 2 , " IPv4 link MTU size: %u octets " , word ) ;
2012-05-20 20:56:42 +00:00
}
break ;
2008-09-05 05:49:39 +00:00
default :
{
2012-01-20 07:49:12 +00:00
if ( e_len > 0 ) {
2012-05-22 23:59:41 +00:00
if ( prot > = 0xff00 ) {
2012-05-22 20:34:20 +00:00
dissect_e212_mcc_mnc ( tvb , pinfo , pco_tree , curr_offset , TRUE ) ;
if ( ( e_len - 3 ) > 0 ) {
proto_tree_add_item ( pco_tree , hf_gsm_a_gm_pco_app_spec_info , tvb , curr_offset + 3 , e_len - 3 , ENC_NA ) ;
}
} else {
dissector_handle_t handle ;
handle = dissector_get_uint_handle ( gprs_sm_pco_subdissector_table , prot ) ;
if ( handle ! = NULL )
{
/*
* dissect the embedded message
*/
l3_tvb = tvb_new_subset ( tvb , curr_offset , e_len , e_len ) ;
/* In this case we do not want the columns updated */
col_set_writable ( pinfo - > cinfo , FALSE ) ;
call_dissector ( handle , l3_tvb , pinfo , pco_tree ) ;
col_set_writable ( pinfo - > cinfo , TRUE ) ;
}
else
{
/*
* dissect the embedded DATA message
*/
l3_tvb = tvb_new_subset ( tvb , curr_offset , e_len , e_len ) ;
call_dissector ( data_handle , l3_tvb , pinfo , pco_tree ) ;
}
2012-01-20 07:49:12 +00:00
}
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
}
}
2012-05-17 14:35:11 +00:00
curr_len - = e_len ;
curr_offset + = e_len ;
2008-08-24 17:42:30 +00:00
}
2012-05-17 14:35:11 +00:00
curr_offset + = curr_len ;
2008-09-05 05:49:39 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-15 21:48:05 +00:00
* [ 9 ] 10.5 .6 .4 Packet data protocol address
2008-08-24 17:42:30 +00:00
*/
2009-12-15 21:48:05 +00:00
static const value_string gsm_a_sm_pdp_type_org_vals [ ] = {
{ 0x00 , " ETSI allocated address " } ,
{ 0x01 , " IETF allocated address " } ,
{ 0x0f , " Empty PDP type " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_sm_pdp_addr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
const gchar * str ;
guchar pdp_type_org , pdp_type_num ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 4 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_pdp_type_org , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2009-12-15 21:48:05 +00:00
pdp_type_org = tvb_get_guint8 ( tvb , curr_offset ) & 0x0f ;
curr_offset + = 1 ;
pdp_type_num = tvb_get_guint8 ( tvb , curr_offset ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( pdp_type_org = = 0 )
2008-08-24 17:42:30 +00:00
{
2010-03-10 06:39:14 +00:00
/* ETSI allocated address */
2009-12-15 21:48:05 +00:00
switch ( pdp_type_num )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Reserved, used in earlier version of this protocol " ; break ;
case 0x01 : str = " PDP-type PPP " ; break ;
default : str = " reserved " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
}
2009-12-15 21:48:05 +00:00
else if ( pdp_type_org = = 1 )
2008-08-24 17:42:30 +00:00
{
2011-12-01 05:42:07 +00:00
/* IETF allocated address */
2009-12-15 21:48:05 +00:00
switch ( pdp_type_num )
2008-09-05 05:49:39 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x21 : str = " IPv4 address " ; break ;
case 0x57 : str = " IPv6 address " ; break ;
case 0x8d : str = " IPv4v6 address " ; break ;
default : str = " Unknown, interpreted as IPv4 address " ;
2008-09-05 05:49:39 +00:00
}
2008-08-24 17:42:30 +00:00
}
2009-12-15 21:48:05 +00:00
else if ( ( pdp_type_num = = 0 ) & & ( pdp_type_org = = 0x0f ) )
2012-05-17 14:35:11 +00:00
str = " Empty " ;
2008-08-24 17:42:30 +00:00
else
2012-05-17 14:35:11 +00:00
str = " Not specified " ;
2008-08-24 17:42:30 +00:00
proto_tree_add_text ( tree ,
2009-12-15 21:48:05 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" PDP type number: %s (%u) " , str , pdp_type_num ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( ( len = = 2 ) & & ( ( pdp_type_num = = 0x21 ) | | ( pdp_type_num = = 0x57 ) | | ( pdp_type_num = = 0x8d ) ) )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tree ,
2009-12-15 21:48:05 +00:00
tvb , curr_offset , 1 ,
2008-08-24 17:42:30 +00:00
" Dynamic addressing " ) ;
2010-03-10 06:39:14 +00:00
curr_offset + = 1 ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
2012-05-17 14:35:11 +00:00
else if ( len = = 2 )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tree ,
2009-12-15 21:48:05 +00:00
tvb , curr_offset , 1 ,
2008-08-24 17:42:30 +00:00
" No PDP address is included " ) ;
2010-03-10 06:39:14 +00:00
curr_offset + = 1 ;
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
2009-12-15 21:48:05 +00:00
curr_offset + = 1 ;
2010-05-10 15:54:57 +00:00
if ( pdp_type_org = = 1 )
2009-12-15 21:48:05 +00:00
switch ( pdp_type_num )
2008-08-24 17:42:30 +00:00
{
2009-12-15 21:48:05 +00:00
case 0x57 :
2012-05-17 14:35:11 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_ip6_address , tvb , curr_offset , 16 , ENC_NA ) ;
curr_offset + = 16 ;
2008-09-05 05:49:39 +00:00
break ;
2008-08-24 17:42:30 +00:00
2009-12-15 21:48:05 +00:00
case 0x8d :
2012-05-17 14:35:11 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_ip4_address , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
curr_offset + = 4 ;
proto_tree_add_item ( tree , hf_gsm_a_sm_ip6_address , tvb , curr_offset , 16 , ENC_NA ) ;
curr_offset + = 16 ;
2008-09-05 05:49:39 +00:00
break ;
2008-08-24 17:42:30 +00:00
2009-12-15 21:48:05 +00:00
default :
2012-05-17 14:35:11 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_ip4_address , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
curr_offset + = 4 ;
2009-12-15 21:48:05 +00:00
}
2010-05-10 15:54:57 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-17 16:56:56 +00:00
* [ 9 ] 10.5 .6 .5 Quality of service
2008-08-24 17:42:30 +00:00
*/
2012-08-01 09:44:57 +00:00
static const value_string gsm_a_sm_qos_delay_cls_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0x00 , " Subscribed delay class (in MS to network direction) " } ,
{ 0x01 , " Delay class 1 " } ,
{ 0x02 , " Delay class 2 " } ,
{ 0x03 , " Delay class 3 " } ,
{ 0x04 , " Delay class 4 (best effort) " } ,
{ 0x07 , " Reserved " } ,
{ 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
static const value_string gsm_a_sm_qos_reliability_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0x00 , " Subscribed reliability class (in MS to network direction) " } ,
{ 0x01 , " Acknowledged GTP, LLC, and RLC; Protected data " } ,
{ 0x02 , " Unacknowledged GTP, Ack LLC/RLC, Protected data " } ,
{ 0x03 , " Unacknowledged GTP/LLC, Ack RLC, Protected data " } ,
{ 0x04 , " Unacknowledged GTP/LLC/RLC, Protected data " } ,
{ 0x05 , " Unacknowledged GTP/LLC/RLC, Unprotected data " } ,
{ 0x07 , " Reserved " } ,
{ 0 , NULL }
} ;
/* Delivery of erroneous SDUs, octet 6 (see 3GPP TS 23.107) Bits 3 2 1 */
2012-08-01 09:44:57 +00:00
const value_string gsm_a_sm_qos_del_of_err_sdu_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Subscribed delivery of erroneous SDUs/Reserved " } ,
{ 1 , " No detect('-') " } ,
{ 2 , " Erroneous SDUs are delivered('yes') " } ,
{ 3 , " Erroneous SDUs are not delivered('No') " } ,
{ 7 , " Reserved " } ,
{ 0 , NULL }
} ;
2012-01-21 02:39:59 +00:00
/* Delivery order, octet 6 (see 3GPP TS 23.107) Bits 5 4 */
2012-08-01 09:44:57 +00:00
const value_string gsm_a_sm_qos_del_order_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Subscribed delivery order/Reserved " } ,
{ 1 , " With delivery order ('yes') " } ,
{ 2 , " Without delivery order ('no') " } ,
{ 3 , " Reserved " } ,
{ 0 , NULL }
} ;
/* Traffic class, octet 6 (see 3GPP TS 23.107) Bits 8 7 6 */
2012-08-01 09:44:57 +00:00
const value_string gsm_a_sm_qos_traffic_cls_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Subscribed traffic class/Reserved " } ,
{ 1 , " Conversational class " } ,
{ 2 , " Streaming class " } ,
{ 3 , " Interactive class " } ,
{ 4 , " Background class " } ,
{ 7 , " Reserved " } ,
{ 0 , NULL }
} ;
/* Residual Bit Error Rate (BER), octet 10 (see 3GPP TS 23.107) Bits 8 7 6 5 */
2012-08-01 09:44:57 +00:00
const value_string gsm_a_sm_qos_ber_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Subscribed residual BER/Reserved " } ,
{ 1 , " 5*10-2 " } ,
{ 2 , " 1*10-2 " } ,
{ 3 , " 5*10-3 " } ,
{ 4 , " 4*10-3 " } ,
{ 5 , " 1*10-3 " } ,
{ 6 , " 1*10-4 " } ,
{ 7 , " 1*10-5 " } ,
{ 8 , " 1*10-6 " } ,
{ 9 , " 6*10-8 " } ,
{ 10 , " Reserved " } ,
{ 0 , NULL }
} ;
/* SDU error ratio, octet 10 (see 3GPP TS 23.107) Bits 4 3 2 1 */
2012-08-01 09:44:57 +00:00
const value_string gsm_a_sm_qos_sdu_err_rat_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Subscribed SDU error ratio/Reserved " } ,
{ 1 , " 1*10-2 " } ,
{ 2 , " 7*10-3 " } ,
{ 3 , " 1*10-3 " } ,
{ 4 , " 1*10-4 " } ,
{ 5 , " 1*10-5 " } ,
{ 6 , " 1*10-6 " } ,
{ 7 , " 1*10-1 " } ,
{ 15 , " Reserved " } ,
{ 0 , NULL }
} ;
/* Traffic handling priority, octet 11 (see 3GPP TS 23.107) Bits 2 1 */
2012-08-01 09:44:57 +00:00
const value_string gsm_a_sm_qos_traff_hdl_pri_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Subscribed traffic handling priority/Reserved " } ,
{ 1 , " Priority level 1 " } ,
{ 2 , " Priority level 2 " } ,
{ 3 , " Priority level 3 " } ,
{ 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
const range_string gsm_a_sm_qos_peak_thr_vals [ ] = {
2009-12-17 16:56:56 +00:00
{ 0x00 , 0x00 , " Subscribed peak throughput/reserved " } ,
{ 0x01 , 0x01 , " Up to 1 000 octet/s " } ,
{ 0x02 , 0x02 , " Up to 2 000 octet/s " } ,
{ 0x03 , 0x03 , " Up to 4 000 octet/s " } ,
{ 0x04 , 0x04 , " Up to 8 000 octet/s " } ,
{ 0x05 , 0x05 , " Up to 16 000 octet/s " } ,
{ 0x06 , 0x06 , " Up to 32 000 octet/s " } ,
{ 0x07 , 0x07 , " Up to 64 000 octet/s " } ,
{ 0x08 , 0x08 , " Up to 128 000 octet/s " } ,
{ 0x09 , 0x09 , " Up to 256 000 octet/s " } ,
{ 0x0a , 0x0e , " Interpreted as Up to 1 000 octet/s " } ,
{ 0x0f , 0x0f , " Reserved " } ,
{ 0 , 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
const range_string gsm_a_sm_qos_mean_thr_vals [ ] = {
2009-12-17 16:56:56 +00:00
{ 0x00 , 0x00 , " Subscribed peak throughput/reserved " } ,
{ 0x01 , 0x01 , " 100 octet/h " } ,
{ 0x02 , 0x02 , " 200 octet/h " } ,
{ 0x03 , 0x03 , " 500 octet/h " } ,
{ 0x04 , 0x04 , " 1 000 octet/h " } ,
{ 0x05 , 0x05 , " 2 000 octet/h " } ,
{ 0x06 , 0x06 , " 5 000 octet/h " } ,
{ 0x07 , 0x07 , " 10 000 octet/h " } ,
{ 0x08 , 0x08 , " 20 000 octet/h " } ,
{ 0x09 , 0x09 , " 50 000 octet/h " } ,
{ 0x0a , 0x0a , " 100 000 octet/h " } ,
{ 0x0b , 0x0b , " 200 000 octet/h " } ,
{ 0x0c , 0x0c , " 500 000 octet/h " } ,
{ 0x0d , 0x0d , " 1 000 000 octet/h " } ,
{ 0x0e , 0x0e , " 2 000 000 octet/h " } ,
{ 0x0f , 0x0f , " 5 000 000 octet/h " } ,
{ 0x10 , 0x10 , " 10 000 000 octet/h " } ,
{ 0x11 , 0x11 , " 20 000 000 octet/h " } ,
{ 0x12 , 0x12 , " 50 000 000 octet/h " } ,
{ 0x13 , 0x1d , " Interpreted as Best effort " } ,
{ 0x1e , 0x1e , " Reserved " } ,
{ 0x1f , 0x1f , " Best effort " } ,
{ 0 , 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
const range_string gsm_a_sm_qos_prec_class_vals [ ] = {
2009-12-17 16:56:56 +00:00
{ 0x00 , 0x00 , " Subscribed precedence/reserved " } ,
{ 0x01 , 0x01 , " High priority " } ,
{ 0x02 , 0x02 , " Normal priority " } ,
{ 0x03 , 0x03 , " Low priority " } ,
{ 0x04 , 0x06 , " Interpreted as Normal priority " } ,
{ 0x07 , 0x07 , " Reserved " } ,
{ 0 , 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
const true_false_string gsm_a_sm_qos_signalling_ind_value = {
2009-12-17 16:56:56 +00:00
" Optimised for signalling traffic " ,
" Not optimised for signalling traffic "
} ;
/* Helper function returning the main bitrates in kbps */
static guint32
qos_calc_bitrate ( guint8 oct )
{
if ( oct < = 0x3f )
return oct ;
if ( oct < = 0x7f )
return 64 + ( oct - 0x40 ) * 8 ;
return 576 + ( oct - 0x80 ) * 64 ;
}
/* Helper function returning the extended bitrates in kbps */
static guint32
qos_calc_ext_bitrate ( guint8 oct )
{
if ( oct < = 0x4a )
return 8600 + oct * 100 ;
if ( oct < = 0xba )
return 16000 + ( oct - 0x4a ) * 1000 ;
return 128000 + ( oct - 0xba ) * 2000 ;
}
2012-10-04 21:23:06 +00:00
static guint32
qos_calc_ext2_bitrate ( guint8 oct )
{
if ( oct < = 0x3d )
return ( 256 + oct * 4 ) ;
if ( oct < = 0xa1 )
return ( 500 + ( oct - 0x3d ) * 10 ) ;
if ( oct < = 0xf6 )
return ( 1500 + ( oct - 0xa1 ) * 100 ) ;
return 10000 ;
}
2013-01-23 15:40:32 +00:00
/*
* 10.5 .6 .5 Quality of service
*/
2008-12-23 20:49:15 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_sm_qos ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset ;
guchar oct , tmp_oct ;
const gchar * str ;
guint32 temp32 ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2009-12-17 16:56:56 +00:00
/* Octet 3 */
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 2 , ENC_BIG_ENDIAN ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_delay_cls , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_reliability_cls , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 4 */
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_peak_thr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_prec_class , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 5 */
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 3 , ENC_BIG_ENDIAN ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_mean_thr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 6 */
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_traffic_cls , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_del_order , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_del_of_err_sdu , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 7 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
switch ( oct )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Subscribed maximum SDU size/reserved " ; break ;
case 0x97 : str = " 1502 octets " ; break ;
case 0x98 : str = " 1510 octets " ; break ;
case 0x99 : str = " 1520 octets " ; break ;
case 0xff : str = " Reserved " ; break ;
default : str = " Unspecified " ;
2008-08-24 17:42:30 +00:00
}
2012-05-17 14:35:11 +00:00
if ( ( oct > = 1 ) & & ( oct < = 0x96 ) )
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tree ,
2008-08-24 17:42:30 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" Maximum SDU size: %u octets (%u) " , oct * 10 , oct ) ;
2008-08-24 17:42:30 +00:00
else
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tree ,
2008-08-24 17:42:30 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" Maximum SDU size: %s (%u) " , str , oct ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 8 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2009-12-17 16:56:56 +00:00
switch ( oct )
2008-08-24 17:42:30 +00:00
{
2009-12-17 16:56:56 +00:00
case 0x00 : str = " Subscribed maximum bit rate for uplink/reserved " ; break ;
case 0xff : str = " 0 kbps " ; break ;
2013-08-30 14:49:55 +00:00
default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , qos_calc_bitrate ( oct ) ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_upl , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 9 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
switch ( oct )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Subscribed maximum bit rate for downlink/reserved " ; break ;
case 0xff : str = " 0 kbps " ; break ;
2013-08-30 14:49:55 +00:00
default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , qos_calc_bitrate ( oct ) ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_downl , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2008-10-23 19:22:54 +00:00
/* Octet 10 */
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_ber , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_sdu_err_rat , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2008-10-23 19:22:54 +00:00
/* Octet 11 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
tmp_oct = oct > > 2 ;
2009-12-17 16:56:56 +00:00
switch ( tmp_oct )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Subscribed transfer delay/reserved " ; break ;
case 0x3f : str = " Reserved " ; break ;
2009-12-17 16:56:56 +00:00
default :
if ( tmp_oct < = 0x0f )
temp32 = tmp_oct * 10 ;
else if ( tmp_oct < = 0x1f )
temp32 = ( tmp_oct - 0x10 ) * 50 + 200 ;
else
temp32 = ( tmp_oct - 0x20 ) * 100 + 1000 ;
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u ms " , temp32 ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_trans_delay , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , tmp_oct ) ;
2008-08-24 17:42:30 +00:00
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_traff_hdl_pri , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2008-10-23 19:22:54 +00:00
/* Octet 12 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
switch ( oct )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Subscribed guaranteed bit rate for uplink/reserved " ; break ;
case 0xff : str = " 0 kbps " ; break ;
2013-08-30 14:49:55 +00:00
default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , qos_calc_bitrate ( oct ) ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_guar_bitrate_upl , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
/* Octet 13 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-05-17 14:35:11 +00:00
switch ( oct )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Subscribed guaranteed bit rate for downlink/reserved " ; break ;
case 0xff : str = " 0 kbps " ; break ;
2013-08-30 14:49:55 +00:00
default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , qos_calc_bitrate ( oct ) ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_guar_bitrate_downl , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2008-10-23 19:22:54 +00:00
/* Ocet 14 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 3 , ENC_BIG_ENDIAN ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_qos_signalling_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2009-12-17 16:56:56 +00:00
tmp_oct = oct & 7 ;
if ( tmp_oct = = 0x01 )
str = " speech " ;
else
str = " unknown " ;
2008-08-24 17:42:30 +00:00
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_source_stat_desc , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , tmp_oct ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2008-10-23 19:22:54 +00:00
/* Octet 15 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2009-12-17 16:56:56 +00:00
if ( oct = = 0x00 )
str = " Use the value indicated by the Maximum bit rate for downlink " ;
else
2008-08-24 17:42:30 +00:00
{
2009-12-17 16:56:56 +00:00
temp32 = qos_calc_ext_bitrate ( oct ) ;
if ( temp32 % 1000 = = 0 )
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 / 1000 ) ;
2009-12-17 16:56:56 +00:00
else
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , temp32 ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_downl_ext , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-08-24 17:42:30 +00:00
2008-10-23 19:22:54 +00:00
/* Octet 16 */
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2009-12-17 16:56:56 +00:00
if ( oct = = 0x00 )
str = " Use the value indicated by the Guaranteed bit rate for downlink " ;
else
2008-08-24 17:42:30 +00:00
{
2009-12-17 16:56:56 +00:00
temp32 = qos_calc_ext_bitrate ( oct ) ;
if ( temp32 % 1000 = = 0 )
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 / 1000 ) ;
2009-12-17 16:56:56 +00:00
else
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , temp32 ) ;
2008-08-24 17:42:30 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_guar_bitrate_downl_ext , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-10-23 19:22:54 +00:00
/* Maximum bit rate for uplink (extended) Octet 17 */
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2009-12-17 16:56:56 +00:00
if ( oct = = 0x00 )
str = " Use the value indicated by the Maximum bit rate for uplink " ;
else
2008-10-23 19:22:54 +00:00
{
2009-12-17 16:56:56 +00:00
temp32 = qos_calc_ext_bitrate ( oct ) ;
if ( temp32 % 1000 = = 0 )
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 / 1000 ) ;
2009-12-17 16:56:56 +00:00
else
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , temp32 ) ;
2008-10-23 19:22:54 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_upl_ext , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-10-23 19:22:54 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2009-12-17 16:56:56 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2008-10-23 19:22:54 +00:00
/* Guaranteed bit rate for uplink (extended) Octet 18 */
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2009-12-17 16:56:56 +00:00
if ( oct = = 0x00 )
str = " Use the value indicated by the Guaranteed bit rate for uplink " ;
else
2008-10-23 19:22:54 +00:00
{
2009-12-17 16:56:56 +00:00
temp32 = qos_calc_ext_bitrate ( oct ) ;
if ( temp32 % 1000 = = 0 )
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 / 1000 ) ;
2009-12-17 16:56:56 +00:00
else
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , temp32 ) ;
2008-10-23 19:22:54 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_guar_bitrate_upl_ext , tvb ,
2009-12-17 16:56:56 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-10-23 19:22:54 +00:00
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2013-01-23 15:40:32 +00:00
NO_MORE_DATA_CHECK ( len ) ;
2009-12-17 16:56:56 +00:00
2012-10-04 21:23:06 +00:00
/* Maximum bit rate for downlink (extended-2) Octet 19 */
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
if ( oct = = 0x00 )
str = " Use the value indicated by the Maximum bit rate for downlink " ;
else
{
temp32 = qos_calc_ext2_bitrate ( oct ) ;
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 ) ;
2012-10-04 21:23:06 +00:00
}
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_downl_ext2 , tvb ,
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
curr_offset + = 1 ;
NO_MORE_DATA_CHECK ( len ) ;
/* Guaranteed bit rate for downlink (extended-2) Octet 20 */
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
if ( oct = = 0x00 )
str = " Use the value indicated by the Guaranteed bit rate for downlink " ;
else
{
temp32 = qos_calc_ext2_bitrate ( oct ) ;
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 ) ;
2012-10-04 21:23:06 +00:00
}
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_guar_bitrate_downl_ext2 , tvb ,
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
curr_offset + = 1 ;
NO_MORE_DATA_CHECK ( len ) ;
/* Maximum bit rate for uplink (extended-2) Octet 21 */
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
if ( oct = = 0x00 )
str = " Use the value indicated by the Maximum bit rate for uplink " ;
else
{
temp32 = qos_calc_ext2_bitrate ( oct ) ;
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 ) ;
2012-10-04 21:23:06 +00:00
}
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_upl_ext2 , tvb ,
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
curr_offset + = 1 ;
NO_MORE_DATA_CHECK ( len ) ;
/* Guaranteed bit rate for uplink (extended-2) Octet 22 */
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
if ( oct = = 0x00 )
str = " Use the value indicated by the Guaranteed bit rate for uplink " ;
else
{
temp32 = qos_calc_ext2_bitrate ( oct ) ;
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 ) ;
2012-10-04 21:23:06 +00:00
}
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_guar_bitrate_upl_ext2 , tvb ,
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
curr_offset + = 1 ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-20 23:17:40 +00:00
* [ 9 ] 10.5 .6 .6 SM cause
2008-08-24 17:42:30 +00:00
*/
2009-12-20 23:17:40 +00:00
static const value_string gsm_a_sm_cause_vals [ ] = {
{ 0x08 , " Operator Determined Barring " } ,
{ 0x18 , " MBMS bearer capabilities insufficient for the service " } ,
2012-12-29 17:10:04 +00:00
{ 0x19 , " LLC or SNDCP failure(A/Gb only) " } ,
2009-12-20 23:17:40 +00:00
{ 0x1a , " Insufficient resources " } ,
{ 0x1b , " Missing or unknown APN " } ,
{ 0x1c , " Unknown PDP address or PDP type " } ,
2012-12-29 17:10:04 +00:00
{ 0x1d , " User authentication failed " } ,
{ 0x1e , " Activation rejected by GGSN, Serving GW or PDN GW " } ,
2009-12-20 23:17:40 +00:00
{ 0x1f , " Activation rejected, unspecified " } ,
{ 0x20 , " Service option not supported " } ,
{ 0x21 , " Requested service option not subscribed " } ,
{ 0x22 , " Service option temporarily out of order " } ,
{ 0x23 , " NSAPI already used (not sent) " } ,
{ 0x24 , " Regular deactivation " } ,
{ 0x25 , " QoS not accepted " } ,
{ 0x26 , " Network failure " } ,
2012-05-20 20:56:42 +00:00
{ 0x27 , " Reactivation requested " } ,
2009-12-20 23:17:40 +00:00
{ 0x28 , " Feature not supported " } ,
{ 0x29 , " Semantic error in the TFT operation " } ,
{ 0x2a , " Syntactical error in the TFT operation " } ,
{ 0x2b , " Unknown PDP context " } ,
{ 0x2c , " Semantic errors in packet filter(s) " } ,
{ 0x2d , " Syntactical errors in packet filter(s) " } ,
{ 0x2e , " PDP context without TFT already activated " } ,
{ 0x2f , " Multicast group membership time-out " } ,
2012-05-20 20:56:42 +00:00
{ 0x30 , " Request rejected, BCM violation " } ,
2009-12-20 23:17:40 +00:00
{ 0x32 , " PDP type IPv4 only allowed " } ,
{ 0x33 , " PDP type IPv6 only allowed " } ,
{ 0x34 , " Single address bearers only allowed " } ,
2012-05-20 20:56:42 +00:00
{ 0x38 , " Collision with network initiated request " } ,
{ 0x3c , " Bearer handling not supported " } ,
2012-10-04 21:23:06 +00:00
{ 0x41 , " Maximum number of PDP contexts reached " } ,
{ 0x42 , " Requested APN not supported in current RAT and PLMN combination " } ,
2009-12-20 23:17:40 +00:00
{ 0x51 , " Invalid transaction identifier value " } ,
{ 0x5f , " Semantically incorrect message " } ,
{ 0x60 , " Invalid mandatory information " } ,
{ 0x61 , " Message type non-existent or not implemented " } ,
{ 0x62 , " Message type not compatible with the protocol state " } ,
{ 0x63 , " Information element non-existent or not implemented " } ,
{ 0x64 , " Conditional IE error " } ,
{ 0x65 , " Message not compatible with the protocol state " } ,
{ 0x6f , " Protocol error, unspecified " } ,
{ 0x70 , " APN restriction value incompatible with active PDP context " } ,
{ 0 , NULL }
} ;
2012-05-20 20:56:42 +00:00
static value_string_ext gsm_a_sm_cause_vals_ext = VALUE_STRING_EXT_INIT ( gsm_a_sm_cause_vals ) ;
2009-12-20 23:17:40 +00:00
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_sm_cause ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
const gchar * str ;
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
oct = tvb_get_guint8 ( tvb , offset ) ;
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
/* SM Cause can be sent in both directions */
2012-05-20 20:56:42 +00:00
str = val_to_str_ext_const ( oct , & gsm_a_sm_cause_vals_ext ,
2011-05-17 18:58:40 +00:00
" Protocol error, unspecified / Service option temporarily out of order " ) ;
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_cause , tvb ,
offset , 1 , oct , " %s (%u) " , str , oct ) ;
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2009-12-20 23:17:40 +00:00
}
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
/*
* [ 9 ] 10.5 .6 .6 a SM cause 2
*/
static guint16
2011-04-04 14:37:25 +00:00
de_sm_cause_2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2009-12-20 23:17:40 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
const gchar * str ;
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
oct = tvb_get_guint8 ( tvb , offset ) ;
/* SM Cause 2 is sent only in the Network-to-MS direction */
2012-05-20 20:56:42 +00:00
str = val_to_str_ext_const ( oct , & gsm_a_sm_cause_vals_ext ,
2011-05-17 18:58:40 +00:00
" Service option temporarily out of order " ) ;
2008-08-24 17:42:30 +00:00
2009-12-20 23:17:40 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_cause_2 , tvb ,
offset , 1 , oct , " %s (%u) " , str , oct ) ;
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2009-12-20 23:17:40 +00:00
}
2008-08-24 17:42:30 +00:00
/*
* [ 7 ] 10.5 .6 .7
*/
2011-11-28 16:41:59 +00:00
static const true_false_string gsm_a_sm_ti_flag_vals = {
" The message is sent to the side that originates the TI " ,
" The message is sent from the side that originates the TI "
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_sm_linked_ti ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint curr_len ;
2009-05-07 21:22:36 +00:00
gchar oct ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2011-11-28 16:41:59 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_ti_flag , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
/* The TI value and the TI flag occupy bits 5 - 7 and bit 8 of the first octet respectively.
* The extended TI shall not be used unless TI values of 7 or greater are needed .
* Where the extended TI is used , the TI IE includes a second octet . The TI value in the first octet is ignored , and the TI
* value is encoded in bits 7 - 1 of the second octet .
*/
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( curr_len > 1 )
2008-08-24 17:42:30 +00:00
{
2011-11-28 16:41:59 +00:00
curr_offset + + ;
2008-08-24 17:42:30 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2008-09-05 05:49:39 +00:00
2008-08-24 17:42:30 +00:00
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" TI value: 0x%02x (%u) " , oct & 0x7f , oct & 0x7f ) ;
2008-08-24 17:42:30 +00:00
2011-11-28 16:41:59 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_ext , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2011-11-28 16:41:59 +00:00
curr_offset + + ;
2008-08-24 17:42:30 +00:00
}
else
{
proto_tree_add_text ( tree ,
2008-09-05 05:49:39 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" TI value: 0x%02x (%u) " , ( oct > > 4 ) & 7 , ( oct > > 4 ) & 7 ) ;
2011-11-28 16:41:59 +00:00
curr_offset + + ;
2008-08-24 17:42:30 +00:00
}
2010-05-10 15:54:57 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-22 20:36:20 +00:00
* [ 9 ] 10.5 .6 .9 LLC service access point identifier
2008-08-24 17:42:30 +00:00
*/
2009-12-22 20:36:20 +00:00
static const value_string gsm_a_sm_llc_sapi_vals [ ] = {
{ 0 , " LLC SAPI not assigned " } ,
{ 3 , " SAPI 3 " } ,
{ 5 , " SAPI 5 " } ,
{ 9 , " SAPI 9 " } ,
{ 11 , " SAPI 11 " } ,
{ 0 , NULL }
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_sm_sapi ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , offset < < 3 , 4 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_llc_sapi , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-22 20:36:20 +00:00
* [ 9 ] 10.5 .6 .10 Tear down indicator
2008-08-24 17:42:30 +00:00
*/
2009-12-22 20:36:20 +00:00
const true_false_string gsm_a_sm_tdi_value = {
" Tear down requested " ,
" Tear down not requested "
} ;
2008-12-23 20:49:15 +00:00
static guint16
2011-04-04 14:37:25 +00:00
de_sm_tear_down ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset < < 3 ) + 4 , 3 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_tdi , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
2009-12-22 20:36:20 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-22 20:36:20 +00:00
* [ 9 ] 10.5 .6 .11 Packet Flow Identifier
2008-08-24 17:42:30 +00:00
*/
2009-12-22 20:36:20 +00:00
static const range_string gsm_a_sm_packet_flow_id_vals [ ] = {
{ 0x00 , 0x00 , " Best Effort " } ,
2012-01-21 16:09:08 +00:00
{ 0x01 , 0x01 , " Signalling " } ,
2009-12-22 20:36:20 +00:00
{ 0x02 , 0x02 , " SMS " } ,
{ 0x03 , 0x03 , " TOM8 " } ,
{ 0x04 , 0x07 , " Reserved " } ,
{ 0x08 , 0x7f , " Dynamically assigned " } ,
{ 0x00 , 0x00 , NULL }
2008-08-24 17:42:30 +00:00
} ;
2009-12-22 20:36:20 +00:00
2008-12-23 20:49:15 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_sm_pflow_id ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
2012-05-17 14:35:11 +00:00
guint value ;
2010-05-10 15:54:57 +00:00
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
value = tvb_get_guint8 ( tvb , curr_offset ) ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset < < 3 , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_packet_flow_id , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2010-12-16 07:25:01 +00:00
curr_offset + + ;
2010-05-10 15:54:57 +00:00
2012-05-17 14:35:11 +00:00
if ( add_string )
g_snprintf ( add_string , string_len , " - %s " , rval_to_str ( value , gsm_a_sm_packet_flow_id_vals , " Unknown " ) ) ;
2011-01-21 09:31:25 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 10.5 .6 .12 TFT - Traffic Flow Template
*/
/* TFT operation code (octet 3) */
2012-08-01 09:44:57 +00:00
static const value_string gsm_a_sm_tft_op_code_vals [ ] = {
2008-08-24 17:42:30 +00:00
{ 0 , " Spare " } ,
{ 1 , " Create new TFT " } ,
{ 2 , " Delete existing TFT " } ,
{ 3 , " Add packet filters to existing TFT " } ,
{ 4 , " Replace packet filters in existing TFT " } ,
{ 5 , " Delete packet filters from existing TFT " } ,
{ 6 , " No TFT operation " } ,
{ 7 , " Reserved " } ,
{ 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
static const true_false_string gsm_a_sm_tft_e_bit = {
2012-05-17 14:35:11 +00:00
" Parameters list is included " ,
" Parameters list is not included "
2008-08-24 17:42:30 +00:00
} ;
2012-08-01 09:44:57 +00:00
static const value_string gsm_a_sm_tft_pkt_flt_dir_vals [ ] = {
2010-03-08 20:46:30 +00:00
{ 0 , " Pre Rel-7 TFT filter " } ,
{ 1 , " Downlink only " } ,
{ 2 , " Uplink only " } ,
{ 3 , " Bidirectional " } ,
{ 0 , NULL }
} ;
2012-08-01 09:44:57 +00:00
static const value_string gsm_a_sm_tft_param_id_vals [ ] = {
2010-03-08 20:46:30 +00:00
{ 1 , " Authorization Token " } ,
{ 2 , " Flow Identifier " } ,
{ 3 , " Packet Filter Identifier " } ,
{ 0 , NULL }
} ;
2008-08-24 17:42:30 +00:00
2010-06-01 22:22:09 +00:00
guint16
2011-04-04 14:37:25 +00:00
de_sm_tflow_temp ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2008-08-24 17:42:30 +00:00
{
2009-05-07 21:22:36 +00:00
guint32 curr_offset ;
guint curr_len ;
2012-10-02 20:17:08 +00:00
guint8 op_code ;
guint8 pkt_fil_count ;
guint8 e_bit ;
2009-05-07 21:22:36 +00:00
const gchar * str ;
2012-10-02 20:17:08 +00:00
guint8 count ;
guint8 oct ;
2009-05-07 21:22:36 +00:00
gint pf_length ;
2010-03-08 20:46:30 +00:00
gint i ;
2009-05-07 21:22:36 +00:00
gint pack_component_type ;
2010-03-08 20:46:30 +00:00
gint param ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
/*
* parse first octet . It contain TFT operation code , E bit and Number of packet filters
*/
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
op_code = oct > > 5 ;
pkt_fil_count = oct & 0x0f ;
e_bit = ( oct > > 4 ) & 1 ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_tft_op_code , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_tft_e_bit , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_tft_pkt_flt , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
curr_len - - ;
/* Packet filter list dissect */
count = 0 ;
2012-05-17 14:35:11 +00:00
if ( op_code = = 2 ) /* delete TFT contains no packet filters. so we will jump over it */
2008-09-05 05:49:39 +00:00
count = pkt_fil_count ;
2012-05-17 14:35:11 +00:00
while ( count < pkt_fil_count )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
proto_item * tf ;
proto_tree * tf_tree ;
2008-09-05 05:49:39 +00:00
tf = proto_tree_add_text ( tree ,
2008-08-24 17:42:30 +00:00
tvb , curr_offset , 1 ,
2012-05-17 14:35:11 +00:00
" Packet filter %d " , count ) ; /* 0-> 7 */
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
tf_tree = proto_item_add_subtree ( tf , ett_sm_tft ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( op_code = = 5 ) /* Delete packet filters from existing TFT - just a list of identifiers */
2008-09-05 05:49:39 +00:00
{
if ( ( curr_offset - offset ) < 1 ) {
2012-05-17 14:35:11 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset , 1 , " Not enough data " ) ;
return ( len ) ;
2008-09-05 05:49:39 +00:00
}
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 4 , ENC_BIG_ENDIAN ) ;
2012-10-02 20:17:08 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) & 0x0f ;
2012-10-03 18:09:04 +00:00
proto_tree_add_uint_format_value ( tf_tree , hf_gsm_a_sm_tft_pkt_flt_id , tvb , curr_offset , 1 , oct , " %d (%d) " , oct + 1 , oct ) ;
2008-09-05 05:49:39 +00:00
curr_offset + + ;
curr_len - - ;
2010-03-08 20:46:30 +00:00
count + + ;
2008-08-24 17:42:30 +00:00
}
2008-09-05 05:49:39 +00:00
else /* create new, Add packet filters or Replace packet filters */
{
2008-08-24 17:42:30 +00:00
2008-09-05 05:49:39 +00:00
if ( ( curr_offset - offset ) < 1 ) {
2012-05-17 14:35:11 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset , 1 , " Not enough data " ) ;
return ( len ) ;
2008-09-05 05:49:39 +00:00
}
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tf_tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 2 , ENC_BIG_ENDIAN ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tf_tree , hf_gsm_a_sm_tft_pkt_flt_dir , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-10-02 20:17:08 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) & 0x0f ;
2012-10-03 18:09:04 +00:00
proto_tree_add_uint_format_value ( tf_tree , hf_gsm_a_sm_tft_pkt_flt_id , tvb , curr_offset , 1 , oct , " %d (%d) " , oct + 1 , oct ) ;
2008-09-05 05:49:39 +00:00
curr_offset + + ;
curr_len - - ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
if ( ( curr_offset - offset ) < 1 ) {
proto_tree_add_text ( tf_tree , tvb , curr_offset , 1 , " Not enough data " ) ;
return ( len ) ;
2008-08-24 17:42:30 +00:00
}
2008-09-05 05:49:39 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
2008-08-24 17:42:30 +00:00
curr_offset + + ;
curr_len - - ;
2008-09-05 05:49:39 +00:00
proto_tree_add_text ( tf_tree ,
tvb , curr_offset - 1 , 1 ,
2012-05-17 14:35:11 +00:00
" Packet evaluation precedence: 0x%02x (%u) " , oct , oct ) ;
2008-09-05 05:49:39 +00:00
2012-05-17 14:35:11 +00:00
if ( ( curr_offset - offset ) < 1 ) { proto_tree_add_text ( tf_tree , tvb , curr_offset , 1 , " Not enough data " ) ; return ( len ) ; }
2008-09-05 05:49:39 +00:00
pf_length = tvb_get_guint8 ( tvb , curr_offset ) ;
curr_offset + + ;
curr_len - - ;
proto_tree_add_text ( tf_tree ,
tvb , curr_offset - 1 , 1 ,
2012-05-17 14:35:11 +00:00
" Packet filter length: 0x%02x (%u) " , pf_length , pf_length ) ;
2008-09-05 05:49:39 +00:00
/* New tree for component */
/* Dissect Packet filter Component */
2012-05-17 14:35:11 +00:00
/* while (filter_len > 1) */
2008-09-05 05:49:39 +00:00
/* packet filter component type identifier: */
2012-05-17 14:35:11 +00:00
while ( pf_length > 0 ) {
proto_tree * comp_tree ;
if ( ( curr_offset - offset ) < 1 ) {
proto_tree_add_text ( tf_tree , tvb , curr_offset , 1 , " Not enough data " ) ;
return ( len ) ;
2008-09-05 05:49:39 +00:00
}
pack_component_type = tvb_get_guint8 ( tvb , curr_offset ) ;
curr_offset + + ;
curr_len - - ;
2010-09-22 07:06:15 +00:00
pf_length - - ;
2008-09-05 05:49:39 +00:00
2012-05-17 14:35:11 +00:00
tf = proto_tree_add_text ( tf_tree , tvb , curr_offset - 1 , 1 , " Packet filter component type identifier: " ) ;
comp_tree = proto_item_add_subtree ( tf , ett_sm_tft ) ;
2008-09-05 05:49:39 +00:00
2012-05-17 14:35:11 +00:00
switch ( pack_component_type ) {
2010-05-10 15:54:57 +00:00
2008-08-24 17:42:30 +00:00
case 0x10 :
2012-05-17 14:35:11 +00:00
str = " IPv4 remote address type " ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip4_address , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
curr_offset + = 4 ;
curr_len - = 4 ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip4_mask , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
curr_offset + = 4 ;
curr_len - = 4 ;
pf_length - = 8 ;
2008-08-24 17:42:30 +00:00
break ;
2012-10-04 21:23:06 +00:00
case 0x11 :
str = " IPv4 local address type " ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip4_address , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
curr_offset + = 4 ;
curr_len - = 4 ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip4_mask , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
curr_offset + = 4 ;
curr_len - = 4 ;
pf_length - = 8 ;
break ;
2008-08-24 17:42:30 +00:00
case 0x20 :
2012-05-17 14:35:11 +00:00
str = " IPv6 remote address type " ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip6_address , tvb , curr_offset , 16 , ENC_NA ) ;
curr_offset + = 16 ;
curr_len - = 16 ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip6_mask , tvb , curr_offset , 16 , ENC_NA ) ;
curr_offset + = 16 ;
curr_len - = 16 ;
pf_length - = 32 ;
2008-08-24 17:42:30 +00:00
break ;
2012-10-04 21:23:06 +00:00
case 0x21 :
str = " IPv6 remote address/prefix length type " ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip6_address , tvb , curr_offset , 16 , ENC_NA ) ;
curr_offset + = 16 ;
curr_len - = 16 ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip6_prefix_length , tvb , curr_offset , 1 , ENC_NA ) ;
curr_offset + = 1 ;
curr_len - = 1 ;
pf_length - = 17 ;
break ;
case 0x23 :
str = " IPv6 local address/prefix length type " ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip6_address , tvb , curr_offset , 16 , ENC_NA ) ;
curr_offset + = 16 ;
curr_len - = 16 ;
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_ip6_prefix_length , tvb , curr_offset , 1 , ENC_NA ) ;
curr_offset + = 1 ;
curr_len - = 1 ;
pf_length - = 17 ;
break ;
2008-08-24 17:42:30 +00:00
case 0x30 :
2012-05-17 14:35:11 +00:00
str = " Protocol identifier/Next header type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_protocol_header , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
curr_len - = 1 ;
pf_length - = 1 ;
2008-08-24 17:42:30 +00:00
break ;
case 0x40 :
2012-05-17 14:35:11 +00:00
str = " Single local port type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_port , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
curr_len - = 2 ;
pf_length - = 2 ;
2010-08-13 11:57:18 +00:00
break ;
2008-08-24 17:42:30 +00:00
case 0x41 :
2012-05-17 14:35:11 +00:00
str = " Local port range type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_port_low , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_port_high , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
curr_len - = 4 ;
pf_length - = 4 ;
2008-08-24 17:42:30 +00:00
break ;
case 0x50 :
2012-05-17 14:35:11 +00:00
str = " Single remote port type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_port , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
curr_len - = 2 ;
pf_length - = 2 ;
2008-08-24 17:42:30 +00:00
break ;
case 0x51 :
2012-05-17 14:35:11 +00:00
str = " Remote port range type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_port_low , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_port_high , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 2 ;
curr_len - = 4 ;
pf_length - = 4 ;
2008-08-24 17:42:30 +00:00
break ;
case 0x60 :
2012-05-17 14:35:11 +00:00
str = " Security parameter index type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_security , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 4 ;
curr_len - = 4 ;
pf_length - = 4 ;
2008-08-24 17:42:30 +00:00
break ;
case 0x70 :
2012-05-17 14:35:11 +00:00
str = " Type of service/Traffic class type " ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_traffic_class , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2010-09-22 07:06:15 +00:00
curr_offset + + ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_traffic_mask , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2010-09-22 07:06:15 +00:00
curr_offset + + ;
2008-08-24 17:42:30 +00:00
curr_len - = 2 ;
2010-09-22 07:06:15 +00:00
pf_length - = 2 ;
2008-08-24 17:42:30 +00:00
break ;
case 0x80 :
2012-05-17 14:35:11 +00:00
str = " Flow label type " ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( comp_tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 4 , ENC_BIG_ENDIAN ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( comp_tree , hf_gsm_a_sm_tft_flow_label_type , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 3 ;
curr_len - = 3 ;
pf_length - = 3 ;
2008-08-24 17:42:30 +00:00
break ;
default :
2012-05-17 14:35:11 +00:00
str = " not specified " ;
curr_offset + = pf_length ;
curr_len - = pf_length ;
pf_length = 0 ;
2008-09-05 05:49:39 +00:00
}
2009-11-26 22:37:43 +00:00
proto_item_append_text ( tf , " %s (%u) " , str , pack_component_type ) ;
2008-08-24 17:42:30 +00:00
}
2010-10-05 17:58:58 +00:00
count + + ;
2008-08-24 17:42:30 +00:00
}
}
/* The parameters list contains a variable number of parameters that might need to be
* transferred in addition to the packet filters . If the parameters list is included , the E
* bit is set to 1 ; otherwise , the E bit is set to 0.
*/
2010-03-08 20:46:30 +00:00
if ( ( e_bit = = 1 ) & & curr_len ) {
count = 0 ;
while ( curr_len ) {
2012-05-17 14:35:11 +00:00
proto_item * tf ;
proto_tree * tf_tree ;
2010-03-08 20:46:30 +00:00
pf_length = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;
2012-05-17 14:35:11 +00:00
tf = proto_tree_add_text ( tree , tvb , curr_offset , pf_length + 2 , " Parameter %d " , count ) ;
tf_tree = proto_item_add_subtree ( tf , ett_sm_tft ) ;
param = tvb_get_guint8 ( tvb , curr_offset ) ;
2012-08-01 09:44:57 +00:00
proto_tree_add_item ( tf_tree , hf_gsm_a_sm_tft_param_id , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2010-03-08 20:46:30 +00:00
curr_offset + = 2 ;
2012-05-17 14:35:11 +00:00
curr_len - = 2 ;
2010-03-08 20:46:30 +00:00
switch ( param ) {
case 0x01 :
2010-03-09 16:57:24 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset , pf_length , " Authorization token value: 0x%s " ,
2013-12-19 15:49:09 +00:00
tvb_bytes_to_ep_str ( tvb , curr_offset , pf_length ) ) ;
2010-03-08 20:46:30 +00:00
break ;
2010-05-10 15:54:57 +00:00
2010-03-08 20:46:30 +00:00
case 0x02 :
2010-03-09 16:57:24 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset , 2 , " Media Component number value: 0x%x " ,
2012-10-03 18:09:04 +00:00
tvb_get_bits16 ( tvb , curr_offset < < 3 , 16 , ENC_BIG_ENDIAN ) ) ;
2010-03-09 16:57:24 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset + 2 , 2 , " IP flow number: 0x%x " ,
2012-10-03 18:09:04 +00:00
tvb_get_bits16 ( tvb , ( curr_offset + 2 ) < < 3 , 16 , ENC_BIG_ENDIAN ) ) ;
2010-03-08 20:46:30 +00:00
break ;
case 0x03 :
2012-05-17 14:35:11 +00:00
for ( i = 0 ; i < pf_length ; i + + ) {
2012-10-03 18:09:04 +00:00
oct = tvb_get_guint8 ( tvb , curr_offset + i ) & 0x0f ;
proto_tree_add_text ( tf_tree , tvb , curr_offset + i , 1 , " Packet filter identifier %d: %d (%d) " ,
i , oct + 1 , oct ) ;
2010-03-08 20:46:30 +00:00
}
break ;
default :
2010-03-09 16:57:24 +00:00
proto_tree_add_text ( tf_tree , tvb , curr_offset , pf_length , " Parameter content: 0x%s " ,
2013-12-19 15:49:09 +00:00
tvb_bytes_to_ep_str ( tvb , curr_offset , pf_length ) ) ;
2010-03-08 20:46:30 +00:00
break ;
}
curr_offset + = pf_length ;
2012-05-17 14:35:11 +00:00
curr_len - = pf_length ;
2010-03-08 20:46:30 +00:00
count + + ;
}
2008-09-05 05:49:39 +00:00
}
2010-03-08 20:46:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-09-22 07:06:15 +00:00
2012-05-17 14:35:11 +00:00
return ( len ) ;
2008-08-24 17:42:30 +00:00
}
2010-03-06 00:06:27 +00:00
/*
* [ 9 ] 10.5 .6 .13 Temporary Mobile Group Identity ( TMGI )
*/
static guint16
2011-04-04 14:37:25 +00:00
de_sm_tmgi ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2010-03-06 00:06:27 +00:00
{
guint32 curr_offset ;
2010-05-10 15:54:57 +00:00
curr_offset = offset ;
2010-03-06 00:06:27 +00:00
2011-05-29 06:06:22 +00:00
proto_tree_add_item ( tree , hf_gsm_a_sm_tmgi , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;
2010-03-06 00:06:27 +00:00
curr_offset + = 3 ;
NO_MORE_DATA_CHECK ( len ) ;
2011-04-04 14:49:14 +00:00
curr_offset = dissect_e212_mcc_mnc ( tvb , pinfo , tree , curr_offset , TRUE ) ;
2010-03-06 00:06:27 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-06 00:06:27 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2010-03-06 00:06:27 +00:00
}
/*
* [ 9 ] 10.5 .6 .14 MBMS bearer capabilities
*/
static guint16
2011-04-04 14:37:25 +00:00
de_sm_mbms_bearer_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2010-03-06 00:06:27 +00:00
{
2012-05-17 14:35:11 +00:00
guint32 curr_offset , temp32 ;
guint8 oct ;
2010-06-09 18:12:17 +00:00
const gchar * str ;
2010-03-06 00:06:27 +00:00
curr_offset = offset ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
switch ( oct )
{
2012-05-17 14:35:11 +00:00
case 0x00 : str = " Subscribed maximum bit rate for downlink/reserved " ; break ;
case 0xff : str = " 0 kbps " ; break ;
2013-08-30 14:49:55 +00:00
default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , qos_calc_bitrate ( oct ) ) ;
2010-03-06 00:06:27 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_downl , tvb ,
2010-03-06 00:06:27 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2010-03-06 00:06:27 +00:00
NO_MORE_DATA_CHECK ( len ) ;
oct = tvb_get_guint8 ( tvb , curr_offset ) ;
if ( oct = = 0x00 )
str = " Use the value indicated by the Maximum bit rate for downlink " ;
else
{
temp32 = qos_calc_ext_bitrate ( oct ) ;
if ( temp32 % 1000 = = 0 )
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u Mbps " , temp32 / 1000 ) ;
2010-03-06 00:06:27 +00:00
else
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " %u kbps " , temp32 ) ;
2010-03-06 00:06:27 +00:00
}
2012-08-01 09:44:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_qos_max_bitrate_downl_ext , tvb ,
2010-03-06 00:06:27 +00:00
curr_offset , 1 , oct , " %s (%u) " , str , oct ) ;
2012-05-17 14:35:11 +00:00
curr_offset + = 1 ;
2010-03-06 00:06:27 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-06 00:06:27 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2010-03-06 00:06:27 +00:00
}
/*
* [ 9 ] 10.5 .6 .15 MBMS protocol configuration options
*/
static guint16
2011-04-04 14:37:25 +00:00
de_sm_mbms_prot_conf_opt ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2010-03-06 00:06:27 +00:00
{
guint32 curr_offset ;
curr_offset = offset ;
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset < < 3 ) , 8 , ENC_BIG_ENDIAN ) ;
2010-03-06 00:06:27 +00:00
curr_offset + + ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( len , curr_offset - offset , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-06 00:06:27 +00:00
2012-05-17 14:35:11 +00:00
return ( curr_offset - offset ) ;
2010-03-06 00:06:27 +00:00
}
/*
* [ 9 ] 10.5 .6 .16 Enhanced network service access point identifier
*/
static guint16
2011-04-04 14:37:25 +00:00
de_sm_enh_nsapi ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2010-03-06 00:06:27 +00:00
{
2012-05-17 14:35:11 +00:00
guint8 oct ;
2010-06-09 18:12:17 +00:00
const gchar * str ;
2010-03-06 00:06:27 +00:00
oct = tvb_get_guint8 ( tvb , offset ) ;
if ( oct < 0x80 )
str = " Reserved " ;
else if ( oct < 0xff )
2013-08-30 14:49:55 +00:00
str = wmem_strdup_printf ( wmem_packet_scope ( ) , " NSAPI %u for Multimedia Broadcast/Multicast Service (MBMS) Multicast mode " , oct ) ;
2010-03-06 00:06:27 +00:00
else
str = " Reserved for use by lower layers in the p2p radio bearer allocation message for MBMS Broadcast mode " ;
2010-05-10 15:54:57 +00:00
proto_tree_add_uint_format_value ( tree , hf_gsm_a_sm_enh_nsapi , tvb ,
2010-03-06 00:06:27 +00:00
offset , 1 , oct , " %s (%u) " , str , oct ) ;
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2010-03-06 00:06:27 +00:00
}
/*
* [ 9 ] 10.5 .6 .17 Request type
*/
static const value_string gsm_a_sm_req_type_vals [ ] = {
{ 0x01 , " Initial request " } ,
{ 0x02 , " Handover " } ,
{ 0x03 , " Unused. If received, the network shall interpret this as \" Initial request \" . " } ,
2012-09-17 16:04:36 +00:00
{ 0x04 , " Emergency " } ,
2010-03-06 00:06:27 +00:00
{ 0 , NULL }
} ;
static guint16
2011-04-04 14:37:25 +00:00
de_sm_req_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ )
2010-03-06 00:06:27 +00:00
{
2011-05-29 06:06:22 +00:00
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset < < 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;
proto_tree_add_item ( tree , hf_gsm_a_sm_req_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;
2010-03-06 00:06:27 +00:00
/* no length check possible */
2012-05-17 14:35:11 +00:00
return ( 1 ) ;
2010-03-06 00:06:27 +00:00
}
2011-04-27 22:18:00 +00:00
/*
* [ 9 ] 10.5 .6 .18 Notification indicator
*/
static const value_string gsm_a_sm_notif_ind_vals [ ] = {
{ 0x0 , " Reserved " } ,
{ 0x1 , " SRVCC handover cancelled, IMS session re-establishment required " } ,
{ 0 , NULL }
} ;
static guint16
2012-05-20 09:50:34 +00:00
de_sm_notif_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
2011-04-27 22:18:00 +00:00
{
guint32 curr_offset ;
curr_offset = offset ;
proto_tree_add_item ( tree , hf_gsm_a_sm_notif_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
2012-05-17 14:35:11 +00:00
return ( len ) ;
2011-04-27 22:18:00 +00:00
}
2012-05-20 09:50:34 +00:00
/*
* [ 10 ] 10.5 .6 .19 Connectivity type
*/
static const range_string gsm_a_sm_connectivity_type_vals [ ] = {
{ 0x0 , 0x0 , " The PDN connection type is not indicated " } ,
{ 0x1 , 0x1 , " The PDN connection is considered a LIPA PDN connection " } ,
{ 0x2 , 0xF , " The PDN connection type is not indicated " } ,
{ 0 , 0 , NULL }
} ;
static guint16
de_sm_connectivity_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ )
{
guint32 curr_offset ;
curr_offset = offset ;
proto_tree_add_item ( tree , hf_gsm_a_sm_connectivity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;
return ( len ) ;
}
2011-04-27 22:18:00 +00:00
2011-04-04 14:37:25 +00:00
guint16 ( * gm_elem_fcn [ ] ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string , int string_len ) = {
2008-08-24 17:42:30 +00:00
/* GPRS Mobility Management Information Elements 10.5.5 */
2012-10-04 21:23:06 +00:00
de_gmm_add_upd_type , /* Additional Update Type */
2012-05-17 14:35:11 +00:00
de_gmm_attach_res , /* Attach Result */
de_gmm_attach_type , /* Attach Type */
de_gmm_ciph_alg , /* Cipher Algorithm */
de_gmm_tmsi_stat , /* TMSI Status */
de_gmm_detach_type , /* Detach Type */
de_gmm_drx_param , /* DRX Parameter */
de_gmm_ftostby , /* Force to Standby */
de_gmm_ftostby_h , /* Force to Standby - Info is in the high nibble */
de_gmm_ptmsi_sig , /* P-TMSI Signature */
de_gmm_ptmsi_sig2 , /* P-TMSI Signature 2 */
de_gmm_ident_type2 , /* Identity Type 2 */
de_gmm_imeisv_req , /* IMEISV Request */
de_gmm_rec_npdu_lst , /* Receive N-PDU Numbers List */
de_gmm_ms_net_cap , /* MS Network Capability */
de_gmm_ms_radio_acc_cap , /* MS Radio Access Capability */
de_gmm_cause , /* GMM Cause */
de_gmm_rai , /* Routing Area Identification */
de_gmm_rai2 , /* Routing Area Identification 2 */
de_gmm_update_res , /* Update Result */
de_gmm_update_type , /* Update Type */
de_gmm_ac_ref_nr , /* A&C Reference Number */
de_gmm_ac_ref_nr_h , /* A&C Reference Number - Info is in the high nibble */
de_gmm_service_type , /* Service Type */
NULL /* no associated data */ , /* Cell Notification */
de_gmm_ps_lcs_cap , /* PS LCS Capability */
de_gmm_net_feat_supp , /* Network Feature Support */
2012-10-04 21:23:06 +00:00
de_gmm_add_net_feat_supp , /* Network Feature Support */
2012-05-17 14:35:11 +00:00
de_gmm_rat_info_container , /* Inter RAT information container */
de_gmm_req_ms_info , /* Requested MS information */
NULL , /* UE network capability */
de_gmm_eutran_irat_info_container , /* E-UTRAN inter RAT information container */
de_gmm_voice_domain_pref , /* Voice domain preference and UE's usage setting */
2012-05-20 20:56:42 +00:00
de_gmm_ptmsi_type , /* P-TMSI type */
de_gmm_lai_2 , /* Location Area Identification 2 */
2012-10-02 12:46:21 +00:00
de_gmm_net_res_id_cont , /* Network resource identifier container */
2008-08-24 17:42:30 +00:00
/* Session Management Information Elements 10.5.6 */
2012-05-17 14:35:11 +00:00
de_sm_apn , /* Access Point Name */
de_sm_nsapi , /* Network Service Access Point Identifier */
de_sm_pco , /* Protocol Configuration Options */
de_sm_pdp_addr , /* Packet Data Protocol Address */
de_sm_qos , /* Quality Of Service */
de_sm_cause , /* SM Cause */
de_sm_cause_2 , /* SM Cause 2 */
de_sm_linked_ti , /* Linked TI */
de_sm_sapi , /* LLC Service Access Point Identifier */
de_sm_tear_down , /* Tear Down Indicator */
de_sm_pflow_id , /* Packet Flow Identifier */
de_sm_tflow_temp , /* Traffic Flow Template */
de_sm_tmgi , /* Temporary Mobile Group Identity (TMGI) */
de_sm_mbms_bearer_cap , /* MBMS bearer capabilities */
de_sm_mbms_prot_conf_opt , /* MBMS protocol configuration options */
de_sm_enh_nsapi , /* Enhanced network service access point identifier */
de_sm_req_type , /* Request type */
de_sm_notif_ind , /* Notification indicator */
2012-05-20 09:50:34 +00:00
de_sm_connectivity_type , /* Connectivity type */
2008-08-24 17:42:30 +00:00
/* GPRS Common Information Elements 10.5.7 */
2012-05-17 14:35:11 +00:00
de_gc_context_stat , /* PDP Context Status */
de_gc_radio_prio , /* Radio Priority */
de_gc_timer , /* GPRS Timer */
de_gc_timer2 , /* GPRS Timer 2 */
2012-05-20 09:50:34 +00:00
de_gc_timer3 , /* GPRS Timer 3 */
2012-05-17 14:35:11 +00:00
de_gc_radio_prio2 , /* Radio Priority 2 */
de_gc_mbms_context_stat , /* 10.5.7.6 MBMS context status */
de_gc_uplink_data_stat , /* 10.5.7.7 Uplink data status */
2012-05-20 09:50:34 +00:00
de_gc_device_properties , /* 10.5.7.8 Device properties */
2008-08-24 17:42:30 +00:00
NULL , /* NONE */
} ;
/* MESSAGE FUNCTIONS */
/*
* [ 7 ] 9.4 .1
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_attach_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_MS_NET_CAP , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_ATTACH_TYPE , GSM_A_PDU_TYPE_COMMON , DE_CIPH_KEY_SEQ_NUM ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_DRX_PARAM , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAI , " - Old routing area identification " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_MS_RAD_ACC_CAP , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG , " - Old P-TMSI Signature " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x17 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER , " - Ready Timer " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0x90 , GSM_A_PDU_TYPE_GM , DE_TMSI_STAT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x33 , GSM_A_PDU_TYPE_GM , DE_PS_LCS_CAP , NULL ) ;
2011-05-17 18:58:40 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x11 , GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x20 , GSM_A_PDU_TYPE_COMMON , DE_MS_CM_3 , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x40 , GSM_A_PDU_TYPE_DTAP , DE_SUP_CODEC_LIST , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x58 , NAS_PDU_TYPE_EMM , DE_EMM_UE_NET_CAP , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x1A , GSM_A_PDU_TYPE_COMMON , DE_MID , " - Additional mobile identity " ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x1B , GSM_A_PDU_TYPE_GM , DE_RAI_2 , " - Additional old routing area identification " ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x5D , GSM_A_PDU_TYPE_GM , DE_VOICE_DOMAIN_PREF , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xD0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
ELEM_OPT_TV_SHORT ( 0xE0 , GSM_A_PDU_TYPE_GM , DE_PTMSI_TYPE , NULL ) ;
ELEM_OPT_TV_SHORT ( 0xC0 , GSM_A_PDU_TYPE_COMMON , DE_MS_NET_FEAT_SUP , NULL ) ;
ELEM_OPT_TLV ( 0x14 , GSM_A_PDU_TYPE_GM , DE_LAI_2 , " - Old location area identification " ) ;
2012-10-04 21:23:06 +00:00
ELEM_OPT_TV_SHORT ( 0xF0 , GSM_A_PDU_TYPE_GM , DE_ADD_UPD_TYPE , NULL ) ;
ELEM_OPT_TLV ( 0x10 , GSM_A_PDU_TYPE_GM , DE_NET_RES_ID_CONT , " - TMSI based NRI container " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .2
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_attach_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_ATTACH_RES , GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND_H ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAD_PRIO_2 , " - Radio priority for TOM8 " ) ;
2008-08-24 17:42:30 +00:00
curr_len + + ;
curr_offset - - ;
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAD_PRIO , " - Radio priority for SMS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAI , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x17 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER , " - Negotiated Ready Timer " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x18 , GSM_A_PDU_TYPE_COMMON , DE_MID , " - Allocated P-TMSI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x23 , GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x25 , GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x2A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3302 value " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_T ( 0x8C , GSM_A_PDU_TYPE_GM , DE_CELL_NOT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x4A , GSM_A_PDU_TYPE_COMMON , DE_PLMN_LIST , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0xB0 , GSM_A_PDU_TYPE_GM , DE_NET_FEAT_SUP , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x34 , GSM_A_PDU_TYPE_DTAP , DE_EMERGENCY_NUM_LIST , NULL ) ;
2011-05-17 18:58:40 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0xA0 , GSM_A_PDU_TYPE_GM , DE_REQ_MS_INFO , NULL ) ;
2011-05-17 18:58:40 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3319 value " ) ;
ELEM_OPT_TLV ( 0x38 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3323 value " ) ;
2011-05-17 18:58:40 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x39 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3312 extended value " ) ;
2008-08-24 17:42:30 +00:00
2012-10-04 21:23:06 +00:00
ELEM_OPT_TLV ( 0x66 , GSM_A_PDU_TYPE_GM , DE_ADD_NET_FEAT_SUP , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .3
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_attach_com ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
2011-04-27 22:18:00 +00:00
guint32 consumed ;
2008-08-24 17:42:30 +00:00
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_RAT_INFO_CONTAINER , " - Inter RAT handover information " ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x2B , GSM_A_PDU_TYPE_GM , DE_EUTRAN_IRAT_INFO_CONTAINER , " - E-UTRAN inter RAT handover information " ) ;
2011-04-27 22:18:00 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .4
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_attach_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x2A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3302 value " ) ;
2012-05-22 23:59:41 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x3A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3346 value " ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .5
*/
static void
2013-08-30 17:23:36 +00:00
dtap_gmm_detach_req_MT ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_DETACH_TYPE , GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND_H ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x25 , GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2013-08-30 17:23:36 +00:00
}
static void
dtap_gmm_detach_req_MO ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
curr_len = len ;
pinfo - > p2p_dir = P2P_DIR_RECV ;
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_DETACH_TYPE , GSM_A_PDU_TYPE_COMMON , DE_SPARE_NIBBLE ) ;
2013-08-30 17:23:36 +00:00
ELEM_OPT_TLV ( 0x18 , GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG_2 , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
2013-08-30 17:23:36 +00:00
static void
dtap_gmm_detach_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
{
if ( pinfo - > link_dir = = P2P_DIR_UL ) {
dtap_gmm_detach_req_MO ( tvb , tree , pinfo , offset , len ) ;
return ;
} else if ( pinfo - > link_dir = = P2P_DIR_DL ) {
dtap_gmm_detach_req_MT ( tvb , tree , pinfo , offset , len ) ;
return ;
} else {
/* Unknown direction. Try heuristics based on message length. */
if ( len > 5 ) {
dtap_gmm_detach_req_MO ( tvb , tree , pinfo , offset , len ) ;
} else {
dtap_gmm_detach_req_MT ( tvb , tree , pinfo , offset , len ) ;
}
}
}
2008-08-24 17:42:30 +00:00
/*
* [ 7 ] 9.4 .6
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_detach_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2013-08-30 17:23:36 +00:00
if ( curr_len = = 0 ) {
return ;
}
2010-05-10 15:54:57 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND , GSM_A_PDU_TYPE_COMMON , DE_SPARE_NIBBLE ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .7
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_ptmsi_realloc_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , " - Allocated P-TMSI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAI , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND , GSM_A_PDU_TYPE_COMMON , DE_SPARE_NIBBLE ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG , " - P-TMSI Signature " ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .8
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_ptmsi_realloc_com ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
/* guint32 consumed; */
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .9
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_auth_ciph_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
2009-05-07 21:22:36 +00:00
guint curr_len ;
2008-08-24 17:42:30 +00:00
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_CIPH_ALG , GSM_A_PDU_TYPE_GM , DE_IMEISV_REQ ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND , GSM_A_PDU_TYPE_GM , DE_AC_REF_NUM_H ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x21 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_PARAM_RAND , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_OPT_TV_SHORT ( 0x80 , GSM_A_PDU_TYPE_COMMON , DE_CIPH_KEY_SEQ_NUM , NULL ) ;
2010-05-10 15:54:57 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x28 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_PARAM_AUTN , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .10
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_auth_ciph_resp ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_AC_REF_NUM , GSM_A_PDU_TYPE_COMMON , DE_SPARE_NIBBLE ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x22 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_RESP_PARAM , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x23 , GSM_A_PDU_TYPE_COMMON , DE_MID , " - IMEISV " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x29 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_RESP_PARAM_EXT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .11
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_auth_ciph_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .10 a
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_auth_ciph_fail ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x30 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_FAIL_PARAM , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .12
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_ident_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_ID_TYPE_2 , GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND_H ) ;
2013-08-30 17:23:36 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .13
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_ident_res ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .14
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_rau_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_UPD_TYPE , GSM_A_PDU_TYPE_COMMON , DE_CIPH_KEY_SEQ_NUM ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAI , " - Old routing area identification " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_MS_RAD_ACC_CAP , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG , " - Old P-TMSI Signature " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x17 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER , " - Requested Ready Timer " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_DRX_PARAM , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0x90 , GSM_A_PDU_TYPE_GM , DE_TMSI_STAT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x18 , GSM_A_PDU_TYPE_COMMON , DE_MID , " - P-TMSI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x31 , GSM_A_PDU_TYPE_GM , DE_MS_NET_CAP , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x32 , GSM_A_PDU_TYPE_GM , DE_PDP_CONTEXT_STAT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x33 , GSM_A_PDU_TYPE_GM , DE_PS_LCS_CAP , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_CTX_STATUS , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x58 , NAS_PDU_TYPE_EMM , DE_EMM_UE_NET_CAP , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x1A , GSM_A_PDU_TYPE_COMMON , DE_MID , " - Additional mobile identity " ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x1B , GSM_A_PDU_TYPE_GM , DE_RAI_2 , " - Additional old routing area identification " ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x11 , GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x20 , GSM_A_PDU_TYPE_COMMON , DE_MS_CM_3 , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x40 , GSM_A_PDU_TYPE_DTAP , DE_SUP_CODEC_LIST , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x5D , GSM_A_PDU_TYPE_GM , DE_VOICE_DOMAIN_PREF , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xE0 , GSM_A_PDU_TYPE_GM , DE_PTMSI_TYPE , NULL ) ;
ELEM_OPT_TV_SHORT ( 0xD0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
ELEM_OPT_TV_SHORT ( 0xC0 , GSM_A_PDU_TYPE_COMMON , DE_MS_NET_FEAT_SUP , NULL ) ;
ELEM_OPT_TLV ( 0x14 , GSM_A_PDU_TYPE_GM , DE_LAI_2 , " - Old location area identification " ) ;
2012-10-04 21:23:06 +00:00
ELEM_OPT_TV_SHORT ( 0xF0 , GSM_A_PDU_TYPE_GM , DE_ADD_UPD_TYPE , NULL ) ;
ELEM_OPT_TLV ( 0x10 , GSM_A_PDU_TYPE_GM , DE_NET_RES_ID_CONT , " - TMSI based NRI container " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .15
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_rau_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND , GSM_A_PDU_TYPE_GM , DE_UPD_RES ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER , " - Periodic RA update timer " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAI , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x18 , GSM_A_PDU_TYPE_COMMON , DE_MID , " - Allocated P-TMSI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x23 , GSM_A_PDU_TYPE_COMMON , DE_MID , " - MS identity " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x26 , GSM_A_PDU_TYPE_GM , DE_REC_N_PDU_NUM_LIST , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x17 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER , " - Negotiated Ready Timer " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x25 , GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x2A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3302 value " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_T ( 0x8C , GSM_A_PDU_TYPE_GM , DE_CELL_NOT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x4A , GSM_A_PDU_TYPE_COMMON , DE_PLMN_LIST , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x32 , GSM_A_PDU_TYPE_GM , DE_PDP_CONTEXT_STAT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0xB0 , GSM_A_PDU_TYPE_GM , DE_NET_FEAT_SUP , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x34 , GSM_A_PDU_TYPE_DTAP , DE_EMERGENCY_NUM_LIST , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_CTX_STATUS , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0xA0 , GSM_A_PDU_TYPE_GM , DE_REQ_MS_INFO , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3319 value " ) ;
ELEM_OPT_TLV ( 0x38 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3323 value " ) ;
2011-04-27 22:18:00 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x39 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3312 extended value " ) ;
2011-04-27 22:18:00 +00:00
2012-10-04 21:23:06 +00:00
ELEM_OPT_TLV ( 0x66 , GSM_A_PDU_TYPE_GM , DE_ADD_NET_FEAT_SUP , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .16
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_rau_com ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
/* [7] 10.5.5.11 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x26 , GSM_A_PDU_TYPE_GM , DE_REC_N_PDU_NUM_LIST , NULL ) ;
2008-08-24 17:42:30 +00:00
/* Inter RAT information container 10.5.5.24 TS 24.008 version 6.8.0 Release 6 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_RAT_INFO_CONTAINER , " - Inter RAT handover information " ) ;
2011-04-27 22:18:00 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x2B , GSM_A_PDU_TYPE_GM , DE_EUTRAN_IRAT_INFO_CONTAINER , " - E-UTRAN inter RAT handover information " ) ;
2008-09-05 05:49:39 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .17
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_rau_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_GM , DE_FORCE_TO_STAND , GSM_A_PDU_TYPE_COMMON , DE_SPARE_NIBBLE ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x2A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3302 value " ) ;
ELEM_OPT_TLV ( 0x3A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3346 value " ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .18
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.4 .19 GMM Information
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_information ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x43 , GSM_A_PDU_TYPE_DTAP , DE_NETWORK_NAME , " - Full Name " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x45 , GSM_A_PDU_TYPE_DTAP , DE_NETWORK_NAME , " - Short Name " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x46 , GSM_A_PDU_TYPE_DTAP , DE_TIME_ZONE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x47 , GSM_A_PDU_TYPE_DTAP , DE_TIME_ZONE_TIME , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x48 , GSM_A_PDU_TYPE_DTAP , DE_LSA_ID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x49 , GSM_A_PDU_TYPE_DTAP , DE_DAY_SAVING_TIME , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .20
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_service_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2008-08-24 17:42:30 +00:00
2013-09-03 21:10:05 +00:00
ELEM_MAND_VV_SHORT ( GSM_A_PDU_TYPE_COMMON , DE_CIPH_KEY_SEQ_NUM , GSM_A_PDU_TYPE_GM , DE_SRVC_TYPE ) ;
2008-08-24 17:42:30 +00:00
/* P-TMSI Mobile station identity 10.5.1.4 M LV 6 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x32 , GSM_A_PDU_TYPE_GM , DE_PDP_CONTEXT_STAT , NULL ) ;
2008-08-24 17:42:30 +00:00
/* MBMS context status 10.5.7.6 TLV 2 - 18 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_CTX_STATUS , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x36 , GSM_A_PDU_TYPE_GM , DE_UPLINK_DATA_STATUS , NULL ) ;
2011-04-27 22:18:00 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xD0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .21
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_service_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x32 , GSM_A_PDU_TYPE_GM , DE_PDP_CONTEXT_STAT , NULL ) ;
2008-08-24 17:42:30 +00:00
/* MBMS context status 10.5.7.6 TLV 2 - 18 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_CTX_STATUS , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 7 ] 9.4 .22
*/
static void
2011-04-04 14:37:25 +00:00
dtap_gmm_service_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_GMM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x3A , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_2 , " - T3346 value " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .1 Activate PDP context request
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_pdp_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* MS to network */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_UL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_NET_SAPI , " - Requested NSAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Requested LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_QOS , " - Requested QoS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_PD_PRO_ADDR , " - Requested PDP address " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x28 , GSM_A_PDU_TYPE_GM , DE_ACC_POINT_NAME , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0xA0 , GSM_A_PDU_TYPE_GM , DE_REQ_TYPE , NULL ) ;
2010-09-22 10:38:45 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xC0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
2009-12-20 23:17:40 +00:00
* [ 9 ] 9.5 .2 Activate PDP context accept
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_pdp_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS*/
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Negotiated LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_QOS , " - Negotiated QoS " ) ;
2008-08-24 17:42:30 +00:00
#if 0
/* This is done automatically */
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SPARE , NULL ) ;
2008-08-24 17:42:30 +00:00
curr_offset - - ;
curr_len + + ;
# endif
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAD_PRIO , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x2B , GSM_A_PDU_TYPE_GM , DE_PD_PRO_ADDR , " - PDP address " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x34 , GSM_A_PDU_TYPE_GM , DE_PACKET_FLOW_ID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x39 , GSM_A_PDU_TYPE_GM , DE_SM_CAUSE_2 , " - SM cause " ) ;
2009-12-20 23:17:40 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xB0 , GSM_A_PDU_TYPE_GM , DE_SM_CONNECTIVITY_TYPE , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .3 Activate PDP context reject
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_pdp_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS*/
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3396 value " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .4 Activate Secondary PDP Context Request
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_sec_pdp_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* MS to Network */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_UL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_NET_SAPI , " - Requested NSAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Requested LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_QOS , " - Requested QoS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_LINKED_TI , NULL ) ;
2008-08-24 17:42:30 +00:00
/* 3GPP TS 24.008 version 6.8.0 Release 6, 36 TFT Traffic Flow Template 10.5.6.12 O TLV 3-257 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x36 , GSM_A_PDU_TYPE_GM , DE_TRAFFIC_FLOW_TEMPLATE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xC0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
2010-06-29 05:40:45 +00:00
* [ 7 ] 9.5 .5 Activate Secondary PDP Context Accept
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_sec_pdp_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS*/
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Negotiated LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_QOS , " - Negotiated QoS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAD_PRIO , NULL ) ;
2008-08-24 17:42:30 +00:00
#if 0
/* This is done automatically */
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SPARE , NULL ) ;
2008-08-24 17:42:30 +00:00
curr_offset - - ;
curr_len + + ;
# endif
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x34 , GSM_A_PDU_TYPE_GM , DE_PACKET_FLOW_ID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .6 Activate Secondary PDP Context Reject
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_sec_pdp_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS*/
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3396 value " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .7 Request PDP context activation
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_req_pdp_act ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS*/
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_PD_PRO_ADDR , " - Offered PDP address " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x28 , GSM_A_PDU_TYPE_GM , DE_ACC_POINT_NAME , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .8 Request PDP context activation reject
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_req_pdp_act_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* MS to Network */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_UL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .9 Modify PDP context request ( Network to MS direction )
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_mod_pdp_req_net ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_RAD_PRIO , NULL ) ;
2008-08-24 17:42:30 +00:00
#if 0
/* This is done automatically */
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SPARE , NULL ) ;
2008-08-24 17:42:30 +00:00
curr_offset - - ;
curr_len + + ;
# endif
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Requested LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_QOS , " - New QoS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x2B , GSM_A_PDU_TYPE_GM , DE_PD_PRO_ADDR , " - PDP address " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x34 , GSM_A_PDU_TYPE_GM , DE_PACKET_FLOW_ID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x36 , GSM_A_PDU_TYPE_GM , DE_TRAFFIC_FLOW_TEMPLATE , NULL ) ;
2011-04-27 22:18:00 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .10 Modify PDP context request ( MS to network direction )
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_mod_pdp_req_ms ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* MS to Network */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_UL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x32 , GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Requested LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x30 , GSM_A_PDU_TYPE_GM , DE_QOS , " - Requested new QoS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x31 , GSM_A_PDU_TYPE_GM , DE_TRAFFIC_FLOW_TEMPLATE , " - New TFT " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xC0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .11 Modify PDP context accept ( MS to network direction )
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_mod_pdp_acc_ms ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* MS to Network */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_UL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .12 Modify PDP context accept ( Network to MS direction )
2010-06-29 05:40:45 +00:00
* Direction : Network to MS
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_mod_pdp_acc_net ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network to MS */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = P2P_DIR_DL ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x30 , GSM_A_PDU_TYPE_GM , DE_QOS , " - Negotiated QoS " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV ( 0x32 , GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Negotiated LLC SAPI " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0x80 , GSM_A_PDU_TYPE_GM , DE_RAD_PRIO , " - New radio priority " ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x34 , GSM_A_PDU_TYPE_GM , DE_PACKET_FLOW_ID , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .13 Modify PDP Context Reject
2011-01-16 03:35:29 +00:00
* Direction : both
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_mod_pdp_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
/* Network or the MS */
2011-04-04 14:37:25 +00:00
pinfo - > link_dir = LINK_DIR_UNKNOWN ;
2010-06-29 05:40:45 +00:00
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3396 value " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .14 Deactivate PDP context request
2010-06-29 05:40:45 +00:00
* Direction : both
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_deact_pdp_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
pinfo - > link_dir = LINK_DIR_UNKNOWN ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TV_SHORT ( 0x90 , GSM_A_PDU_TYPE_GM , DE_TEAR_DOWN_IND , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-10-04 21:23:06 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3396 value " ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
* [ 8 ] 9.5 .15 Deactivate PDP context accept
2010-06-29 05:40:45 +00:00
* Direction : both
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_deact_pdp_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
pinfo - > link_dir = LINK_DIR_UNKNOWN ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-10-04 21:23:06 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
2011-04-27 22:18:00 +00:00
/*
* [ 8 ] 9.5 .15 a Request Secondary PDP Context Activation
* Direction : network to MS
*/
static void
dtap_sm_req_sec_pdp_act ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2011-04-27 22:18:00 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
pinfo - > link_dir = P2P_DIR_DL ;
2011-11-28 16:41:59 +00:00
/* Required QoS Quality of service 10.5.6.5 M LV 13-17 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_QOS , " - Required QoS " ) ;
2011-04-27 22:18:00 +00:00
2011-11-28 16:41:59 +00:00
/* Linked TI Linked TI 10.5.6.7 M LV 2-3 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_LINKED_TI , NULL ) ;
2011-04-27 22:18:00 +00:00
2011-11-28 16:41:59 +00:00
/* 36 TFT Traffic Flow Template 10.5.6.12 O TLV 3-257 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x36 , GSM_A_PDU_TYPE_GM , DE_TRAFFIC_FLOW_TEMPLATE , NULL ) ;
2011-04-27 22:18:00 +00:00
2011-11-28 18:10:57 +00:00
/* 27 Protocol configuration options Protocol configuration options 10.5.6.3 O TLV 3 - 253 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2011-04-27 22:18:00 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2011-04-27 22:18:00 +00:00
}
/*
* [ 8 ] 9.5 .15 b Request Secondary PDP Context Activation Reject
* Direction : MS to network
*/
static void
dtap_sm_req_sec_pdp_act_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2011-04-27 22:18:00 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
pinfo - > link_dir = P2P_DIR_UL ;
2011-11-28 16:41:59 +00:00
/* SM cause SM cause 10.5.6.6 M V 1 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2011-04-27 22:18:00 +00:00
2011-11-28 18:10:57 +00:00
/* 27 Protocol configuration options Protocol configuration options 10.5.6.3 O TLV 3 - 253 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x27 , GSM_A_PDU_TYPE_GM , DE_PRO_CONF_OPT , NULL ) ;
2011-04-27 22:18:00 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2011-04-27 22:18:00 +00:00
}
/*
* [ 8 ] 9.5 .16 a Notification
* Direction : network to MS
*/
static void
dtap_sm_notif ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2011-04-27 22:18:00 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
pinfo - > link_dir = P2P_DIR_DL ;
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_SM_NOTIF_IND , NULL ) ;
2011-04-27 22:18:00 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2011-04-27 22:18:00 +00:00
}
2008-08-24 17:42:30 +00:00
/*
* [ 8 ] 9.5 .21 SM Status
2010-06-29 05:40:45 +00:00
* Direction : both
2008-08-24 17:42:30 +00:00
*/
static void
2011-04-04 14:37:25 +00:00
dtap_sm_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2008-08-24 17:42:30 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2008-08-24 17:42:30 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_UNKNOWN ;
pinfo - > link_dir = LINK_DIR_UNKNOWN ;
2008-08-24 17:42:30 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2008-08-24 17:42:30 +00:00
}
/*
2010-03-12 21:30:54 +00:00
* [ 9 ] 9.5 .22 Activate MBMS Context Request
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
2010-03-06 00:06:27 +00:00
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_mbms_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2010-03-06 00:06:27 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2010-03-06 00:06:27 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2010-03-06 00:06:27 +00:00
/* Requested MBMS NSAPI Enhanced Network service access point identifier 10.5.6.16 M V */
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_ENH_NSAPI , " - Requested MBMS NSAPI " ) ;
2008-08-24 17:42:30 +00:00
/* Requested LLC SAPI LLC service access point identifier 10.5.6.9 M V 1 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Requested LLC SAPI " ) ;
2010-03-06 00:06:27 +00:00
2008-08-24 17:42:30 +00:00
/* Supported MBMS bearer capabilities MBMS bearer capabilities 10.5.6.14 M LV 2 - 3 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_MBMS_BEARER_CAP , NULL ) ;
2010-03-06 00:06:27 +00:00
2008-08-24 17:42:30 +00:00
/* Requested multicast address Packet data protocol address 10.5.6.4 M LV 3 - 19 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_PD_PRO_ADDR , " - Requested multicast address " ) ;
2010-03-06 00:06:27 +00:00
2008-08-24 17:42:30 +00:00
/* Access point name Access point name 10.5.6.1 M LV 2 - 101 */
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_ACC_POINT_NAME , NULL ) ;
2010-03-06 00:06:27 +00:00
2008-08-24 17:42:30 +00:00
/* 35 MBMS protocol configuration options MBMS protocol configuration options 10.5.6.15 O TLV 3 - 253 */
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
2010-03-06 00:06:27 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TV_SHORT ( 0xC0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-06 00:06:27 +00:00
}
2008-08-24 17:42:30 +00:00
/*
2010-03-12 21:30:54 +00:00
* [ 9 ] 9.5 .23 Activate MBMS Context Accept
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
2010-03-12 21:30:54 +00:00
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_mbms_acc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2010-03-12 21:30:54 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2010-03-12 21:30:54 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_TMGI , NULL ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_LLC_SAPI , " - Negotiated LLC SAPI " ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
2010-03-12 21:30:54 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-12 21:30:54 +00:00
}
2008-08-24 17:42:30 +00:00
/*
2010-03-12 21:30:54 +00:00
* [ 9 ] 9.5 .24 Activate MBMS Context Reject
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
2010-03-12 21:30:54 +00:00
static void
2011-04-04 14:37:25 +00:00
dtap_sm_act_mbms_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2010-03-12 21:30:54 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-05-17 14:35:11 +00:00
curr_len = len ;
2010-03-12 21:30:54 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
2008-08-24 17:42:30 +00:00
2012-05-20 20:56:42 +00:00
ELEM_OPT_TLV ( 0x37 , GSM_A_PDU_TYPE_GM , DE_GPRS_TIMER_3 , " - T3396 value " ) ;
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-12 21:30:54 +00:00
}
2010-05-10 15:54:57 +00:00
2008-08-24 17:42:30 +00:00
/*
2010-03-12 21:30:54 +00:00
* [ 9 ] 9.5 .25 Request MBMS Context Activation
2010-06-29 05:40:45 +00:00
* Direction : network to MS
2008-08-24 17:42:30 +00:00
*/
2010-03-12 21:30:54 +00:00
static void
2011-04-04 14:37:25 +00:00
dtap_sm_req_mbms_act ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2010-03-12 21:30:54 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-03-16 02:00:29 +00:00
curr_len = len ;
2010-03-12 21:30:54 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_SENT ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_NET_SAPI , " - Linked NSAPI " ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_PD_PRO_ADDR , " - Offered multicast address " ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_LV ( GSM_A_PDU_TYPE_GM , DE_ACC_POINT_NAME , NULL ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
2010-03-12 21:30:54 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-12 21:30:54 +00:00
}
2008-08-24 17:42:30 +00:00
/*
* [ 8 ] 9.5 .26 Request MBMS Context Activation Reject
2010-06-29 05:40:45 +00:00
* Direction : MS to network
2008-08-24 17:42:30 +00:00
*/
2010-03-12 21:30:54 +00:00
static void
2011-04-04 14:37:25 +00:00
dtap_sm_req_mbms_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len )
2010-03-12 21:30:54 +00:00
{
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
2012-03-16 02:00:29 +00:00
curr_len = len ;
2010-03-12 21:30:54 +00:00
2011-04-04 14:37:25 +00:00
pinfo - > p2p_dir = P2P_DIR_RECV ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_MAND_V ( GSM_A_PDU_TYPE_GM , DE_SM_CAUSE , NULL ) ;
2010-03-12 21:30:54 +00:00
2012-05-17 14:35:11 +00:00
ELEM_OPT_TLV ( 0x35 , GSM_A_PDU_TYPE_GM , DE_MBMS_PROT_CONF_OPT , NULL ) ;
2010-03-12 21:30:54 +00:00
2013-09-03 02:26:50 +00:00
EXTRANEOUS_DATA_CHECK_EXPERT ( curr_len , 0 , pinfo , & ei_gsm_a_gm_extraneous_data ) ;
2010-03-12 21:30:54 +00:00
}
2008-08-24 17:42:30 +00:00
# define NUM_GSM_DTAP_MSG_GMM (sizeof(gsm_a_dtap_msg_gmm_strings) / sizeof(value_string))
static gint ett_gsm_dtap_msg_gmm [ NUM_GSM_DTAP_MSG_GMM ] ;
2011-04-04 14:37:25 +00:00
static void ( * dtap_msg_gmm_fcn [ ] ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len ) = {
2008-08-24 17:42:30 +00:00
dtap_gmm_attach_req , /* Attach Request */
dtap_gmm_attach_acc , /* Attach Accept */
dtap_gmm_attach_com , /* Attach Complete */
dtap_gmm_attach_rej , /* Attach Reject */
dtap_gmm_detach_req , /* Detach Request */
dtap_gmm_detach_acc , /* Detach Accept */
2012-05-17 14:35:11 +00:00
dtap_gmm_rau_req , /* Routing Area Update Request */
dtap_gmm_rau_acc , /* Routing Area Update Accept */
dtap_gmm_rau_com , /* Routing Area Update Complete */
dtap_gmm_rau_rej , /* Routing Area Update Reject */
2008-08-24 17:42:30 +00:00
dtap_gmm_service_req , /* Service Request */
dtap_gmm_service_acc , /* Service Accept */
dtap_gmm_service_rej , /* Service Reject */
dtap_gmm_ptmsi_realloc_cmd , /* P-TMSI Reallocation Command */
dtap_gmm_ptmsi_realloc_com , /* P-TMSI Reallocation Complete */
dtap_gmm_auth_ciph_req , /* Authentication and Ciphering Req */
dtap_gmm_auth_ciph_resp , /* Authentication and Ciphering Resp */
dtap_gmm_auth_ciph_rej , /* Authentication and Ciphering Rej */
dtap_gmm_auth_ciph_fail , /* Authentication and Ciphering Failure */
2012-05-17 14:35:11 +00:00
dtap_gmm_ident_req , /* Identity Request */
dtap_gmm_ident_res , /* Identity Response */
dtap_gmm_status , /* GMM Status */
2008-08-24 17:42:30 +00:00
dtap_gmm_information , /* GMM Information */
NULL , /* NONE */
} ;
# define NUM_GSM_DTAP_MSG_SM (sizeof(gsm_a_dtap_msg_sm_strings) / sizeof(value_string))
static gint ett_gsm_dtap_msg_sm [ NUM_GSM_DTAP_MSG_SM ] ;
2011-04-04 14:37:25 +00:00
static void ( * dtap_msg_sm_fcn [ ] ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len ) = {
2008-08-24 17:42:30 +00:00
dtap_sm_act_pdp_req , /* Activate PDP Context Request */
dtap_sm_act_pdp_acc , /* Activate PDP Context Accept */
dtap_sm_act_pdp_rej , /* Activate PDP Context Reject */
dtap_sm_req_pdp_act , /* Request PDP Context Activation */
dtap_sm_req_pdp_act_rej , /* Request PDP Context Activation rej. */
dtap_sm_deact_pdp_req , /* Deactivate PDP Context Request */
dtap_sm_deact_pdp_acc , /* Deactivate PDP Context Accept */
dtap_sm_mod_pdp_req_net , /* Modify PDP Context Request(Network to MS direction) */
dtap_sm_mod_pdp_acc_ms , /* Modify PDP Context Accept (MS to network direction) */
dtap_sm_mod_pdp_req_ms , /* Modify PDP Context Request(MS to network direction) */
dtap_sm_mod_pdp_acc_net , /* Modify PDP Context Accept (Network to MS direction) */
dtap_sm_mod_pdp_rej , /* Modify PDP Context Reject */
dtap_sm_act_sec_pdp_req , /* Activate Secondary PDP Context Request */
dtap_sm_act_sec_pdp_acc , /* Activate Secondary PDP Context Accept */
dtap_sm_act_sec_pdp_rej , /* Activate Secondary PDP Context Reject */
2012-05-17 14:35:11 +00:00
NULL , /* Reserved: was allocated in earlier phases of the protocol */
NULL , /* Reserved: was allocated in earlier phases of the protocol */
NULL , /* Reserved: was allocated in earlier phases of the protocol */
NULL , /* Reserved: was allocated in earlier phases of the protocol */
NULL , /* Reserved: was allocated in earlier phases of the protocol */
dtap_sm_status , /* SM Status */
2010-03-06 00:06:27 +00:00
dtap_sm_act_mbms_req , /* Activate MBMS Context Request */
2010-03-12 21:30:54 +00:00
dtap_sm_act_mbms_acc , /* Activate MBMS Context Accept */
dtap_sm_act_mbms_rej , /* Activate MBMS Context Reject */
dtap_sm_req_mbms_act , /* Request MBMS Context Activation */
dtap_sm_req_mbms_rej , /* Request MBMS Context Activation Reject */
2011-04-27 22:18:00 +00:00
dtap_sm_req_sec_pdp_act , /* Request Secondary PDP Context Activation */
2012-05-17 14:35:11 +00:00
dtap_sm_req_sec_pdp_act_rej , /* Request Secondary PDP Context Activation Reject */
dtap_sm_notif , /* Notification */
2008-08-24 17:42:30 +00:00
NULL , /* NONE */
} ;
2012-03-16 02:00:29 +00:00
void
get_gmm_msg_params ( guint8 oct , const gchar * * msg_str , int * ett_tree , int * hf_idx , msg_fcn * dtap_msg_fcn )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
gint idx ;
2008-08-24 17:42:30 +00:00
2013-03-29 00:26:23 +00:00
* msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_GMM_IEI_MASK ) , gsm_a_dtap_msg_gmm_strings , & idx ) ;
2012-03-16 02:00:29 +00:00
* hf_idx = hf_gsm_a_dtap_msg_gmm_type ;
2013-03-24 10:09:16 +00:00
if ( * msg_str ! = NULL ) {
* ett_tree = ett_gsm_dtap_msg_gmm [ idx ] ;
* dtap_msg_fcn = dtap_msg_gmm_fcn [ idx ] ;
}
2008-08-24 17:42:30 +00:00
return ;
}
2012-03-16 02:00:29 +00:00
void
get_sm_msg_params ( guint8 oct , const gchar * * msg_str , int * ett_tree , int * hf_idx , msg_fcn * dtap_msg_fcn )
2008-08-24 17:42:30 +00:00
{
2012-05-17 14:35:11 +00:00
gint idx ;
2008-08-24 17:42:30 +00:00
2013-03-29 00:26:23 +00:00
* msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_SM_IEI_MASK ) , gsm_a_dtap_msg_sm_strings , & idx ) ;
2012-03-16 02:00:29 +00:00
* hf_idx = hf_gsm_a_dtap_msg_sm_type ;
2013-03-24 10:09:16 +00:00
if ( * msg_str ! = NULL ) {
* ett_tree = ett_gsm_dtap_msg_sm [ idx ] ;
* dtap_msg_fcn = dtap_msg_sm_fcn [ idx ] ;
}
2008-08-24 17:42:30 +00:00
return ;
}
/* Register the protocol with Wireshark */
void
proto_register_gsm_a_gm ( void )
{
2012-05-17 14:35:11 +00:00
guint i ;
guint last_offset ;
2008-08-24 17:42:30 +00:00
/* Setup list of header fields */
2012-05-17 14:35:11 +00:00
static hf_register_info hf [ ] = {
{ & hf_gsm_a_dtap_msg_gmm_type ,
2012-08-25 13:32:41 +00:00
{ " DTAP GPRS Mobility Management Message Type " , " gsm_a.dtap.msg_gmm_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_gmm_strings ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_dtap_msg_sm_type ,
2012-08-25 13:32:41 +00:00
{ " DTAP GPRS Session Management Message Type " , " gsm_a.dtap.msg_sm_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_sm_strings ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_elem_id ,
2012-08-25 13:32:41 +00:00
{ " Element ID " , " gsm_a.gm.elem_id " ,
2012-05-21 19:27:38 +00:00
FT_UINT8 , BASE_HEX , NULL , 0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_delay_cls ,
2012-08-25 13:32:41 +00:00
{ " Quality of Service Delay class " , " gsm_a.gm.sm.qos.delay_cls " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_delay_cls_vals ) , 0x38 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_reliability_cls ,
2012-08-25 13:32:41 +00:00
{ " Reliability class " , " gsm_a.gm.sm.qos.reliability_cls " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_reliability_vals ) , 0x07 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_traffic_cls ,
2012-08-25 13:32:41 +00:00
{ " Traffic class " , " gsm_a.gm.sm.qos.traffic_cls " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_traffic_cls_vals ) , 0xe0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_del_order ,
2012-08-25 13:32:41 +00:00
{ " Delivery order " , " gsm_a.gm.sm.qos.del_order " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_del_order_vals ) , 0x18 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_del_of_err_sdu ,
2012-08-25 13:32:41 +00:00
{ " Delivery of erroneous SDUs " , " gsm_a.gm.sm.qos.del_of_err_sdu " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_del_of_err_sdu_vals ) , 0x07 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_ber ,
2012-08-25 13:32:41 +00:00
{ " Residual Bit Error Rate (BER) " , " gsm_a.gm.sm.qos.ber " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_ber_vals ) , 0xf0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_sdu_err_rat ,
2012-08-25 13:32:41 +00:00
{ " SDU error ratio " , " gsm_a.gm.sm.qos.sdu_err_rat " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_sdu_err_rat_vals ) , 0x0f ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_traff_hdl_pri ,
2012-08-25 13:32:41 +00:00
{ " Traffic handling priority " , " gsm_a.gm.sm.qos.traff_hdl_pri " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_qos_traff_hdl_pri_vals ) , 0x03 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2013-08-27 17:01:58 +00:00
{ & hf_gsm_a_gmm_split_pg_cycle_code ,
{ " SPLIT PG CYCLE CODE " , " gsm_a.gm.gmm.split_pg_cycle_code " ,
FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & gsm_a_gmm_split_pg_cycle_code_strings_ext , 0x00 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gmm_split_on_ccch ,
2012-08-25 13:32:41 +00:00
{ " SPLIT on CCCH " , " gsm_a.gm.gmm.split_on_ccch " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_split_on_ccch_value ) , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_non_drx_timer ,
2012-08-25 13:32:41 +00:00
{ " Non-DRX timer " , " gsm_a.gm.gmm.non_drx_timer " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gmm_non_drx_timer_strings ) , 0x07 ,
NULL , HFILL }
} ,
2013-08-27 17:01:58 +00:00
{ & hf_gsm_a_gmm_cn_spec_drx_cycle_len_coef ,
{ " CN Specific DRX cycle length coefficient " , " gsm_a.gm.gmm.cn_spec_drx_cycle_len_coef " ,
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_gmm_cn_spec_drx_cycle_len_coef_strings ) , 0xf0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_op_code ,
2012-08-25 13:32:41 +00:00
{ " TFT operation code " , " gsm_a.gm.sm.tft.op_code " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_tft_op_code_vals ) , 0xe0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_e_bit ,
2012-08-25 13:32:41 +00:00
{ " E bit " , " gsm_a.gm.sm.tft.e_bit " ,
2012-08-01 09:44:57 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_sm_tft_e_bit ) , 0x10 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_pkt_flt ,
2012-08-25 13:32:41 +00:00
{ " Number of packet filters " , " gsm_a.gm.sm.tft.pkt_flt " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0f ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_pkt_flt_dir ,
2012-08-25 13:32:41 +00:00
{ " Packet filter direction " , " gsm_a.gm.sm.tft.pkt_flt_dir " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_tft_pkt_flt_dir_vals ) , 0x30 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_pkt_flt_id ,
2012-08-25 13:32:41 +00:00
{ " Packet filter identifier " , " gsm_a.gm.sm.tft.pkt_flt_id " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0f ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_ip4_address ,
2012-08-25 13:32:41 +00:00
{ " IPv4 address " , " gsm_a.gm.sm.ip4_address " ,
2012-05-17 14:35:11 +00:00
FT_IPv4 , BASE_NONE , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_ip4_mask ,
2012-08-25 13:32:41 +00:00
{ " IPv4 address mask " , " gsm_a.gm.sm.ip4_mask " ,
2012-05-17 14:35:11 +00:00
FT_IPv4 , BASE_NONE , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_ip6_address ,
2012-08-25 13:32:41 +00:00
{ " IPv6 address " , " gsm_a.gm.sm.ip6_address " ,
2012-05-17 14:35:11 +00:00
FT_IPv6 , BASE_NONE , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_ip6_mask ,
2012-08-25 13:32:41 +00:00
{ " IPv6 address mask " , " gsm_a.gm.sm.ip6_mask " ,
2012-05-17 14:35:11 +00:00
FT_IPv6 , BASE_NONE , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-10-04 21:23:06 +00:00
{ & hf_gsm_a_sm_ip6_prefix_length ,
{ " IPv6 prefix length " , " gsm_a.gm.sm.ip6_prefix_length " ,
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_protocol_header ,
2012-08-25 13:32:41 +00:00
{ " Protocol/header " , " gsm_a.gm.sm.tft.protocol_header " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX | BASE_EXT_STRING , ( & ipproto_val_ext ) , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_port ,
2012-08-25 13:32:41 +00:00
{ " Port " , " gsm_a.gm.sm.tft.port " ,
2012-05-17 14:35:11 +00:00
FT_UINT16 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_port_low ,
2012-08-25 13:32:41 +00:00
{ " Low limit port " , " gsm_a.gm.sm.tft.port_low " ,
2012-05-17 14:35:11 +00:00
FT_UINT16 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_port_high ,
2012-08-25 13:32:41 +00:00
{ " High limit port " , " gsm_a.gm.sm.tft.port_high " ,
2012-05-17 14:35:11 +00:00
FT_UINT16 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_security ,
2012-08-25 13:32:41 +00:00
{ " IPSec security parameter index " , " gsm_a.gm.sm.tft.security " ,
2012-05-17 14:35:11 +00:00
FT_UINT32 , BASE_HEX , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_traffic_class ,
2012-08-25 13:32:41 +00:00
{ " Type of service/Traffic class field " , " gsm_a.gm.sm.tft.traffic_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_traffic_mask ,
2012-08-25 13:32:41 +00:00
{ " Mask field " , " gsm_a.gm.sm.tft.traffic_mask " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_flow_label_type ,
2012-08-25 13:32:41 +00:00
{ " Flow Label Type " , " gsm_a.gm.sm.tft.flow_label_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT24 , BASE_HEX , NULL , 0x0FFFFF ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_tft_param_id ,
2012-08-25 13:32:41 +00:00
{ " Parameter identifier " , " gsm_a.gm.sm.tft.param_id " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_tft_param_id_vals ) , 0x0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_gmm_ptmsi_sig ,
2012-08-25 13:32:41 +00:00
{ " P-TMSI Signature " , " gsm_a.gm.gmm.ptmsi_sig " ,
2012-05-17 14:35:11 +00:00
FT_UINT24 , BASE_HEX , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_gmm_ptmsi_sig2 ,
2012-08-25 13:32:41 +00:00
{ " P-TMSI Signature 2 " , " gsm_a.gm.gmm.ptmsi_sig2 " ,
2012-05-17 14:35:11 +00:00
FT_UINT24 , BASE_HEX , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_acc_tech_type ,
2012-08-25 13:32:41 +00:00
{ " Access Technology Type " , " gsm_a.gm.gmm.acc_tech_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_acc_tech_type_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_acc_cap_struct_len ,
2012-08-25 13:32:41 +00:00
{ " Length in bits " , " gsm_a.gm.gmm.acc_cap_struct_len " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_sms_value ,
2012-08-25 13:32:41 +00:00
{ " SMS_VALUE (Switch-Measure-Switch) " , " gsm_a.gm.gmm.sms " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sms_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_sm_value ,
2012-08-25 13:32:41 +00:00
{ " (SM_VALUE) Switch-Measure " , " gsm_a.gm.gmm.sm " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sms_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_link_dir ,
2012-08-25 13:32:41 +00:00
{ " Link direction " , " gsm_a.gm.sm.link_dir " ,
2012-05-17 14:35:11 +00:00
FT_INT32 , BASE_DEC , VALS ( gsm_a_gm_link_dir_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_cause ,
2012-08-25 13:32:41 +00:00
{ " GMM Cause " , " gsm_a.gm.gmm.cause " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmm_cause_vals ) , 0x0 ,
NULL , HFILL }
} ,
2012-10-04 21:23:06 +00:00
{ & hf_gsm_a_gm_add_upd_type ,
{ " Additional update type " , " gsm_a.gm.gmm.add_upd_type " ,
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_add_upd_type_value ) , 0x0 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gm_fop ,
2012-08-25 13:32:41 +00:00
{ " Follow-on proceed " , " gsm_a.gm.gmm.fop " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , NULL , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_res_of_attach ,
2012-08-25 13:32:41 +00:00
{ " Result of attach " , " gsm_a.gm.gmm.res_of_attach " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_res_of_attach_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_type_of_ciph_alg ,
2012-08-25 13:32:41 +00:00
{ " Type of ciphering algorithm " , " gsm_a.gm.gmm.type_of_ciph_alg " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_type_of_ciph_alg_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_imeisv_req ,
2012-08-25 13:32:41 +00:00
{ " IMEISV request " , " gsm_a.gm.gmm.imeisv_req " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_gm_imeisv_req_vals ) , 0x00 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_ac_ref_nr ,
2012-08-25 13:32:41 +00:00
{ " A&C reference number " , " gsm_a.gm.gmm.ac_ref_nr " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_force_to_standby ,
2012-08-25 13:32:41 +00:00
{ " Force to standby " , " gsm_a.gm.gmm.force_to_standby " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_gm_force_to_standby_vals ) , 0x00 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_serv_type ,
2012-08-25 13:32:41 +00:00
{ " Service type " , " gsm_a.gm.gmm.serv_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_serv_type_vals ) , 0x00 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_for ,
2012-08-25 13:32:41 +00:00
{ " Follow-on request pending " , " gsm_a.gm.gmm.for " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , NULL , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_type_of_attach ,
2012-08-25 13:32:41 +00:00
{ " Type of attach " , " gsm_a.gm.gmm.type_of_attach " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_type_of_attach_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_tmsi_flag ,
2012-08-25 13:32:41 +00:00
{ " TMSI flag " , " gsm_a.gm.gmm.tmsi_flag " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_tmsi_flag_value ) , 0x01 ,
NULL , HFILL }
2013-08-30 17:23:36 +00:00
} ,
{ & hf_gsm_a_gm_power_off ,
{ " Power off " , " gsm_a.gm.gmm.power_off " ,
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_power_off_value ) , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_type_of_detach_mo ,
{ " Type of detach " , " gsm_a.gm.gmm.type_of_detach " ,
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_type_of_detach_mo_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_type_of_detach_mt ,
{ " Type of detach " , " gsm_a.gm.gmm.type_of_detach " ,
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_type_of_detach_mt_vals ) , 0x07 ,
NULL , HFILL }
2012-05-17 14:35:11 +00:00
} ,
{ & hf_gsm_a_gm_update_type ,
2012-08-25 13:32:41 +00:00
{ " Update type " , " gsm_a.gm.gmm.update_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_update_type_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gprs_timer_unit ,
2012-08-25 13:32:41 +00:00
{ " Unit " , " gsm_a.gm.gmm.gprs_timer_unit " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_gprs_timer_unit_vals ) , 0xe0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gprs_timer_value ,
2012-08-25 13:32:41 +00:00
{ " Timer value " , " gsm_a.gm.gmm.gprs_timer_value " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x1f ,
NULL , HFILL }
} ,
2012-05-20 09:50:34 +00:00
{ & hf_gsm_a_gm_gprs_timer2_unit ,
2012-08-25 13:32:41 +00:00
{ " Unit " , " gsm_a.gm.gmm.gprs_timer2_unit " ,
2012-05-20 09:50:34 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_gprs_timer_unit_vals ) , 0xe0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gprs_timer2_value ,
2012-08-25 13:32:41 +00:00
{ " Timer value " , " gsm_a.gm.gmm.gprs_timer2_value " ,
2012-05-20 09:50:34 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x1f ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gprs_timer3_unit ,
2012-08-25 13:32:41 +00:00
{ " Unit " , " gsm_a.gm.gmm.gprs_timer3_unit " ,
2012-05-20 09:50:34 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_gprs_timer3_unit_vals ) , 0xe0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gprs_timer3_value ,
2012-08-25 13:32:41 +00:00
{ " Timer value " , " gsm_a.gm.gmm.gprs_timer3_value " ,
2012-05-20 09:50:34 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x1f ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gm_nsapi_5_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(5) uplink status " , " gsm_a.gm.gmm.nsapi_5_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_6_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(6) uplink status " , " gsm_a.gm.gmm.nsapi_6_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_7_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(7) uplink status " , " gsm_a.gm.gmm.nsapi_7_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_8_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(8) uplink status " , " gsm_a.gm.gmm.nsapi_8_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_9_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(9) uplink status " , " gsm_a.gm.gmm.nsapi_9_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_10_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(10) uplink status " , " gsm_a.gm.gmm.nsapi_10_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_11_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(11) uplink status " , " gsm_a.gm.gmm.nsapi_11_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_12_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(12) uplink status " , " gsm_a.gm.gmm.nsapi_12_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_13_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(13) uplink status " , " gsm_a.gm.gmm.nsapi_13_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_14_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(14) uplink status " , " gsm_a.gm.gmm.nsapi_14_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_nsapi_15_ul_stat ,
2012-08-25 13:32:41 +00:00
{ " NSAPI(15) uplink status " , " gsm_a.gm.gmm.nsapi_15_ul_stat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_nsapi_ul_stat_vals ) , 0x0 ,
NULL , HFILL }
} ,
2012-05-20 09:50:34 +00:00
{ & hf_gsm_a_gm_device_prop_low_prio ,
2012-08-25 13:32:41 +00:00
{ " Low priority " , " gsm_a.gm.gmm.device_prop_low_prio " ,
2012-05-20 09:50:34 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_device_prop_low_prio_value ) , 0x0 ,
NULL , HFILL }
} ,
2012-10-31 16:19:46 +00:00
{ & hf_gsm_a_gm_apn ,
2012-11-01 10:10:55 +00:00
{ " APN " , " gsm_a.gm.sm.apn " ,
2012-10-31 16:19:46 +00:00
FT_STRING , BASE_NONE , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gm_pco_pid ,
2012-08-25 13:32:41 +00:00
{ " Protocol or Container ID " , " gsm_a.gm.sm.pco_pid " ,
2012-05-17 14:35:11 +00:00
FT_UINT16 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-05-22 20:34:20 +00:00
{ & hf_gsm_a_gm_pco_app_spec_info ,
2012-08-25 13:32:41 +00:00
{ " Application specific information " , " gsm_a.gm.sm.app_spec_info " ,
2012-05-22 20:34:20 +00:00
FT_BYTES , BASE_NONE , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gm_type_of_identity ,
2012-08-25 13:32:41 +00:00
{ " Type of identity " , " gsm_a.gm.gmm.type_of_identity " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_type_of_identity_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac ,
2012-08-25 13:32:41 +00:00
{ " Routing Area Code (RAC) " , " gsm_a.gm.gmm.rac " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX_DEC , NULL , 0x00 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_apc ,
2012-08-25 13:32:41 +00:00
{ " APC " , " gsm_a.gm.gmm.apc " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_apc_vals ) , 0x20 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_otd_a ,
2012-08-25 13:32:41 +00:00
{ " OTD-A " , " gsm_a.gm.gmm.otd_a " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_otd_a_vals ) , 0x10 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_otd_b ,
2012-08-25 13:32:41 +00:00
{ " OTD-B " , " gsm_a.gm.gmm.otd_b " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_otd_b_vals ) , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gps_a ,
2012-08-25 13:32:41 +00:00
{ " GPS-A " , " gsm_a.gm.gmm.gps_a " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_gps_a_vals ) , 0x04 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gps_b ,
2012-08-25 13:32:41 +00:00
{ " GPS-B " , " gsm_a.gm.gmm.gps_b " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_gps_b_vals ) , 0x02 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_gps_c ,
2012-08-25 13:32:41 +00:00
{ " GPS-C " , " gsm_a.gm.gmm.gps_c " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_gps_c_vals ) , 0x01 ,
NULL , HFILL }
} ,
2012-05-20 20:56:42 +00:00
{ & hf_gsm_a_gm_lcs_molr ,
2012-08-25 13:32:41 +00:00
{ " LCS-MOLR " , " gsm_a.gm.gmm.lcs_molr " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_lcs_molr_value ) , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_mbms ,
2012-08-25 13:32:41 +00:00
{ " MBMS " , " gsm_a.gm.gmm.mbms " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , 8 , TFS ( & tfs_supported_not_supported ) , 0x04 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_ims_vops ,
2012-08-25 13:32:41 +00:00
{ " IMS VoPS " , " gsm_a.gm.gmm.ims_vops " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_ims_vops_value ) , 0x02 ,
" IMS voice over PS session indicator " , HFILL }
} ,
{ & hf_gsm_a_gm_emc_bs ,
2012-08-25 13:32:41 +00:00
{ " EMC BS " , " gsm_a.gm.gmm.emc_bs " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_emc_bs_value ) , 0x01 ,
" Emergency bearer services indicator " , HFILL }
} ,
2012-10-04 21:23:06 +00:00
{ & hf_gsm_a_gm_gprs_sms ,
{ " GPRS-SMS " , " gsm_a.gm.gmm.gprs_sms " ,
FT_BOOLEAN , 8 , TFS ( & gsm_a_gm_gprs_sms_value ) , 0x01 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gm_req_ms_info_irat ,
2012-08-25 13:32:41 +00:00
{ " I-RAT " , " gsm_a.gm.gmm.req_ms_info_irat " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_req_ms_info_irat_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_req_ms_info_irat2 ,
2012-08-25 13:32:41 +00:00
{ " I-RAT2 " , " gsm_a.gm.gmm.req_ms_info_irat2 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_req_ms_info_irat2_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_ue_usage_setting ,
2012-08-25 13:32:41 +00:00
{ " UE's usage setting " , " gsm_a.gm.gmm.ue_usage_setting " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_ue_usage_setting_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_voice_domain_pref_for_eutran ,
2012-08-25 13:32:41 +00:00
{ " Voice domain preference for E-UTRAN " , " gsm_a.gm.gmm.voice_domain_pref_for_eutran " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_voice_domain_pref_for_eutran_vals ) , 0x0 ,
NULL , HFILL }
} ,
2012-05-20 20:56:42 +00:00
{ & hf_gsm_a_gm_ptmsi_type ,
2012-08-25 13:32:41 +00:00
{ " P-TMSI type " , " gsm_a.gm.gmm.ptmsi_type " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_ptmsi_type_value ) , 0x0 ,
NULL , HFILL }
} ,
2012-10-02 12:46:21 +00:00
{ & hf_gsm_a_gm_nri_cont ,
{ " NRI container value " , " gsm_a.gm.gmm.nri_cont_value " ,
FT_UINT16 , BASE_HEX , NULL , 0xffc0 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_sm_pdp_type_org ,
2012-08-25 13:32:41 +00:00
{ " PDP type organization " , " gsm_a.gm.sm.pdp_type_org " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_pdp_type_org_vals ) , 0x0f ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_mean_thr ,
2012-08-25 13:32:41 +00:00
{ " Mean throughput " , " gsm_a.gm.sm.qos.mean_throughput " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_sm_qos_mean_thr_vals ) , 0x1f ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_peak_thr ,
2012-08-25 13:32:41 +00:00
{ " Peak throughput " , " gsm_a.gm.sm.qos.peak_throughput " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_sm_qos_peak_thr_vals ) , 0xf0 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_prec_class ,
2012-08-25 13:32:41 +00:00
{ " Precedence class " , " gsm_a.gm.sm.qos.prec_class " ,
2012-08-01 09:44:57 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_sm_qos_prec_class_vals ) , 0x07 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_trans_delay ,
2012-08-25 13:32:41 +00:00
{ " Transfer delay " , " gsm_a.gm.sm.qos.trans_delay " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0xfc ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_signalling_ind ,
2012-08-25 13:32:41 +00:00
{ " Signalling indication " , " gsm_a.gm.sm.qos.signalling_ind " ,
2012-08-01 09:44:57 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_sm_qos_signalling_ind_value ) , 0x10 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_source_stat_desc ,
2012-08-25 13:32:41 +00:00
{ " Source statistics description " , " gsm_a.gm.sm.qos.source_stat_desc " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0f ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_max_bitrate_upl ,
2012-08-25 13:32:41 +00:00
{ " Maximum bitrate for uplink " , " gsm_a.gm.sm.qos.max_bitrate_upl " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_max_bitrate_downl ,
2012-08-25 13:32:41 +00:00
{ " Maximum bitrate for downlink " , " gsm_a.gm.sm.qos.max_bitrate_downl " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_guar_bitrate_upl ,
2012-08-25 13:32:41 +00:00
{ " Guaranteed bitrate for uplink " , " gsm_a.gm.sm.qos.guar_bitrate_upl " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_guar_bitrate_downl ,
2012-08-25 13:32:41 +00:00
{ " Guaranteed bitrate for downlink " , " gsm_a.gm.sm.qos.guar_bitrate_downl " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_max_bitrate_upl_ext ,
2012-08-25 13:32:41 +00:00
{ " Maximum bitrate for uplink (extended) " , " gsm_a.gm.sm.qos.max_bitrate_upl_ext " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_max_bitrate_downl_ext ,
2012-08-25 13:32:41 +00:00
{ " Maximum bitrate for downlink (extended) " , " gsm_a.gm.sm.qos.max_bitrate_downl_ext " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_guar_bitrate_upl_ext ,
2012-08-25 13:32:41 +00:00
{ " Guaranteed bitrate for uplink (extended) " , " gsm_a.gm.sm.qos.guar_bitrate_upl_ext " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-08-01 09:44:57 +00:00
{ & hf_gsm_a_sm_qos_guar_bitrate_downl_ext ,
2012-08-25 13:32:41 +00:00
{ " Guaranteed bitrate for downlink (extended) " , " gsm_a.gm.sm.qos.guar_bitrate_downl_ext " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-10-04 21:23:06 +00:00
{ & hf_gsm_a_sm_qos_max_bitrate_upl_ext2 ,
{ " Maximum bitrate for uplink (extended-2) " , " gsm_a.gm.sm.qos.max_bitrate_upl_ext2 " ,
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_qos_max_bitrate_downl_ext2 ,
{ " Maximum bitrate for downlink (extended-2) " , " gsm_a.gm.sm.qos.max_bitrate_downl_ext2 " ,
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_qos_guar_bitrate_upl_ext2 ,
{ " Guaranteed bitrate for uplink (extended-2) " , " gsm_a.gm.sm.qos.guar_bitrate_upl_ext2 " ,
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_qos_guar_bitrate_downl_ext2 ,
{ " Guaranteed bitrate for downlink (extended-2) " , " gsm_a.gm.sm.qos.guar_bitrate_downl_ext2 " ,
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_sm_cause ,
2012-08-25 13:32:41 +00:00
{ " SM Cause " , " gsm_a.gm.sm.cause " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_cause_2 ,
2012-08-25 13:32:41 +00:00
{ " SM Cause 2 " , " gsm_a.gm.sm.cause_2 " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_llc_sapi ,
2012-08-25 13:32:41 +00:00
{ " LLC SAPI " , " gsm_a.gm.sm.llc_sapi " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_llc_sapi_vals ) , 0x0f ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_tdi ,
2012-08-25 13:32:41 +00:00
{ " Tear Down Indicator (TDI) " , " gsm_a.gm.sm.tdi " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_sm_tdi_value ) , 0x01 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_packet_flow_id ,
2012-08-25 13:32:41 +00:00
{ " Packet Flow Identifier (PFI) " , " gsm_a.gm.sm.packet_flow_id " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_sm_packet_flow_id_vals ) , 0x7f ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea1 ,
2012-08-25 13:32:41 +00:00
{ " GEA/1 " , " gsm_a.gm.gmm.net_cap.gea1 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x80 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_smdch ,
2012-08-25 13:32:41 +00:00
{ " SM capabilities via dedicated channels " , " gsm_a.gm.gmm.net_cap.smdch " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_smdch_vals ) , 0x40 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_smgprs ,
2012-08-25 13:32:41 +00:00
{ " SM capabilities via GPRS channels " , " gsm_a.gm.gmm.net_cap.smgprs " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_smgprs_vals ) , 0x20 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_ucs2 ,
2012-08-25 13:32:41 +00:00
{ " UCS2 support " , " gsm_a.gm.gmm.net_cap.ucs2 " ,
2013-10-24 21:11:00 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_ucs2_vals ) , 0x10 ,
2012-05-17 14:35:11 +00:00
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_ss_scr_ind ,
2012-08-25 13:32:41 +00:00
{ " SS Screening Indicator " , " gsm_a.gm.gmm.net_cap.ss_scr_ind " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX , VALS ( gsm_a_gmm_net_cap_ss_scr_ind_vals ) , 0x0c ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_solsa ,
2012-08-25 13:32:41 +00:00
{ " SoLSA Capability " , " gsm_a.gm.gmm.net_cap.solsa " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_solsa_vals ) , 0x02 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_rev ,
2012-08-25 13:32:41 +00:00
{ " Revision level indicator " , " gsm_a.gm.gmm.net_cap.rev " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_rev_vals ) , 0x01 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_pfc ,
2012-08-25 13:32:41 +00:00
{ " PFC feature mode " , " gsm_a.gm.gmm.net_cap.pfc " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_pfc_vals ) , 0x80 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_ext_gea_bits ,
2012-08-25 13:32:41 +00:00
{ " Extended GEA bits " , " gsm_a.gm.gmm.net_cap.ext_gea_bits " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_HEX , NULL , 0x7e ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea2 ,
2012-08-25 13:32:41 +00:00
{ " GEA/2 " , " gsm_a.gm.gmm.net_cap.gea2 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x40 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea3 ,
2012-08-25 13:32:41 +00:00
{ " GEA/3 " , " gsm_a.gm.gmm.net_cap.gea3 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x20 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea4 ,
2012-08-25 13:32:41 +00:00
{ " GEA/4 " , " gsm_a.gm.gmm.net_cap.gea4 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x10 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea5 ,
2012-08-25 13:32:41 +00:00
{ " GEA/5 " , " gsm_a.gm.gmm.net_cap.gea5 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea6 ,
2012-08-25 13:32:41 +00:00
{ " GEA/6 " , " gsm_a.gm.gmm.net_cap.gea6 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x04 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_gea7 ,
2012-08-25 13:32:41 +00:00
{ " GEA/7 " , " gsm_a.gm.gmm.net_cap.gea7 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_gea_vals ) , 0x02 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_lcs ,
2012-08-25 13:32:41 +00:00
{ " LCS VA capability " , " gsm_a.gm.gmm.net_cap.lcs " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_lcs_vals ) , 0x01 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_ps_irat_iu ,
2012-08-25 13:32:41 +00:00
{ " PS inter-RAT HO from GERAN to UTRAN Iu mode capability " , " gsm_a.gm.gmm.net_cap.ps_irat_iu " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_ps_irat_iu_vals ) , 0x80 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_ps_irat_s1 ,
2012-08-25 13:32:41 +00:00
{ " PS inter-RAT HO from GERAN to E-UTRAN S1 mode capability " , " gsm_a.gm.gmm.net_cap.ps_irat_s1 " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_ps_irat_s1_vals ) , 0x40 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_comb_proc ,
2012-08-25 13:32:41 +00:00
{ " EMM Combined procedures capability " , " gsm_a.gm.gmm.net_cap.comb_proc " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_comb_proc_vals ) , 0x20 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_isr ,
2012-08-25 13:32:41 +00:00
{ " ISR support " , " gsm_a.gm.gmm.net_cap.isr " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_isr_vals ) , 0x10 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_srvcc_to_geran ,
2012-08-25 13:32:41 +00:00
{ " SRVCC to GERAN/UTRAN capability " , " gsm_a.gm.gmm.net_cap.srvcc_to_geran " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_srvcc_to_geran_vals ) , 0x08 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_epc ,
2012-10-04 21:23:06 +00:00
{ " EPC capability " , " gsm_a.gm.gmm.net_cap.epc " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_epc_vals ) , 0x04 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gmm_net_cap_nf ,
2012-10-04 21:23:06 +00:00
{ " NF capability " , " gsm_a.gm.gmm.net_cap.nf " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_cap_nf_vals ) , 0x02 ,
NULL , HFILL }
} ,
2012-10-04 21:23:06 +00:00
{ & hf_gsm_a_gmm_net_geran_net_sharing ,
{ " GERAN network sharing capability " , " gsm_a.gm.gmm.net_cap.geran_net_sharing " ,
FT_BOOLEAN , 8 , TFS ( & gsm_a_gmm_net_geran_net_vals ) , 0x01 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_sm_tmgi ,
2012-08-25 13:32:41 +00:00
{ " Temporary Mobile Group Identity (TMGI) " , " gsm_a.gm.sm.tmgi " ,
2012-05-17 14:35:11 +00:00
FT_UINT24 , BASE_HEX , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_enh_nsapi ,
2012-08-25 13:32:41 +00:00
{ " Enhanced NSAPI " , " gsm_a.gm.sm.enh_nsapi " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , NULL , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_req_type ,
2012-08-25 13:32:41 +00:00
{ " Request type " , " gsm_a.gm.sm.req_type " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_req_type_vals ) , 0x07 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_notif_ind ,
2012-08-25 13:32:41 +00:00
{ " Notification indicator value " , " gsm_a.gm.sm.notif_ind " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_sm_notif_ind_vals ) , 0x0 ,
NULL , HFILL }
} ,
2012-05-20 09:50:34 +00:00
{ & hf_gsm_a_sm_connectivity_type ,
2012-08-25 13:32:41 +00:00
{ " Connectivity type value " , " gsm_a.gm.sm.connectivity_type " ,
2012-05-20 09:50:34 +00:00
FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gsm_a_sm_connectivity_type_vals ) , 0x0F ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_gm_rac_ctrled_early_cm_sending ,
2012-08-25 13:32:41 +00:00
{ " Controlled early Classmark Sending " , " gsm_a.gm.gmm.rac.ctrled_early_cm_sending " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_implemented_not_implemented ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_pseudo_sync ,
2012-08-25 13:32:41 +00:00
{ " Pseudo Synchronisation " , " gsm_a.gm.gmm.rac.pseudo_sync " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_present_not_present ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_vgcs ,
2012-08-25 13:32:41 +00:00
{ " Voice Group Call Service " , " gsm_a.gm.gmm.rac.vgcs " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_vgcs ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_vbs ,
2012-08-25 13:32:41 +00:00
{ " Voice Broadcast Service " , " gsm_a.gm.gmm.rac.vbs " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_vbs ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_multislot_capability ,
2012-08-25 13:32:41 +00:00
{ " Multislot capability struct " , " gsm_a.gm.gmm.rac.multislot_capability " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_present_not_present ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_hscsd_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " HSCSD multislot class " , " gsm_a.gm.gmm.rac.hscsd_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_multi_slot_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_gprs_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " GPRS multislot class " , " gsm_a.gm.gmm.rac.gprs_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_multi_slot_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_gprs_ext_dyn_alloc_cap ,
2012-08-25 13:32:41 +00:00
{ " GPRS Extended Dynamic Allocation Capability " , " gsm_a.gm.gmm.rac.gprs_ext_dyn_alloc_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_implemented_not_implemented ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_ecsd_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " ECSD multislot class " , " gsm_a.gm.gmm.rac.ecsd_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_multi_slot_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_egprs_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " EGPRS multislot class " , " gsm_a.gm.gmm.rac.egprs_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_multi_slot_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_egprs_ext_dyn_alloc_cap ,
2012-08-25 13:32:41 +00:00
{ " EGPRS Extended Dynamic Allocation Capability " , " gsm_a.gm.gmm.rac.egprs_ext_dyn_alloc_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_implemented_not_implemented ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_gprs_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " DTM GPRS Multi Slot Class " , " gsm_a.gm.gmm.rac.dtm_gprs_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_dtm_gprs_multi_slot_class_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_single_slt_dtm ,
2012-08-25 13:32:41 +00:00
{ " Single Slot DTM " , " gsm_a.gm.gmm.rac.single_slt_dtm " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_egprs_multi_slot_cls_pres ,
2012-08-25 13:32:41 +00:00
{ " DTM EGPRS Multi Slot Class " , " gsm_a.gm.gmm.rac.dtm_egprs_multi_slot_cls_pres " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_present_not_present ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_egprs_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " DTM EGPRS Multi Slot Class " , " gsm_a.gm.gmm.rac.dtm_egprs_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_dtm_gprs_multi_slot_class_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_8psk_pow_cap_pres ,
2012-08-25 13:32:41 +00:00
{ " 8PSK Power Capability Bits " , " gsm_a.gm.gmm.rac.8psk_pow_cap_pres " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_present_not_present ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_comp_int_meas_cap ,
2012-08-25 13:32:41 +00:00
{ " COMPACT Interference Measurement Capability " , " gsm_a.gm.gmm.rac.comp_int_meas_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_implemented_not_implemented ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rel_lev_ind ,
2012-08-25 13:32:41 +00:00
{ " Revision Level Indicator " , " gsm_a.gm.gmm.rel_lev_ind " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_revision_level_indicator ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_umts_fdd_cap ,
2012-08-25 13:32:41 +00:00
{ " UMTS FDD Radio Access Technology Capability " , " gsm_a.gm.gmm.rac.umts_fdd_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_umts_384_tdd_ra_cap ,
2012-08-25 13:32:41 +00:00
{ " UMTS 3.84 Mcps TDD Radio Access Technology Capability " , " gsm_a.gm.gmm.rac.umts_384_tdd_ra_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_cdma2000_cap ,
2012-08-25 13:32:41 +00:00
{ " CDMA 2000 Radio Access Technology Capability " , " gsm_a.gm.gmm.rac.cdma2000_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_umts_128_tdd_ra_cap ,
2012-08-25 13:32:41 +00:00
{ " UMTS 1.28 Mcps TDD Radio Access Technology Capability " , " gsm_a.gm.gmm.rac.umts_128_tdd_ra_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_geran_feat_pkg ,
2012-08-25 13:32:41 +00:00
{ " GERAN Feature Package 1 " , " gsm_a.gm.gmm.rac.geran_feat_pkg " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_mod_based_multi_slot_class_support ,
2012-08-25 13:32:41 +00:00
{ " Modulation based multislot class support " , " gsm_a.gm.gmm.rac.mod_based_multi_slot_class_support " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_geran_iu_mode_cap ,
2012-08-25 13:32:41 +00:00
{ " GERAN Iu mode " , " gsm_a.gm.gmm.rac.geran_iu_mode_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_flo_iu_cap ,
2012-08-25 13:32:41 +00:00
{ " FLO Iu Capability " , " gsm_a.gm.gmm.rac.flo_iu_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_mult_tbf_cap ,
2012-08-25 13:32:41 +00:00
{ " Multiple TBF Capability " , " gsm_a.gm.gmm.rac.mult_tbf_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_down_adv_rec_perf ,
2012-08-25 13:32:41 +00:00
{ " Downlink Advanced Receiver Performance " , " gsm_a.gm.gmm.rac.down_adv_rec_perf " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_down_adv_rec_perf_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_ext_rlc_mac_ctrl_msg_seg_cap ,
2012-08-25 13:32:41 +00:00
{ " Extended RLC/MAC Control Message Segmentation Capability " , " gsm_a.gm.gmm.rac.ext_rlc_mac_ctrl_msg_seg_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_enh_cap ,
2012-08-25 13:32:41 +00:00
{ " DTM Enhancements Capability " , " gsm_a.gm.gmm.rac.dtm_enh_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_gm_dtm_enh_cap ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_gprs_high_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " DTM GPRS High Multi Slot Class " , " gsm_a.gm.gmm.rac.dtm_gprs_high_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_dtm_gprs_high_multi_slot_class_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_egprs_high_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " DTM EGPRS High Multi Slot Class " , " gsm_a.gm.gmm.rac.dtm_egprs_high_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_dtm_gprs_high_multi_slot_class_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_ps_ho_cap ,
2012-08-25 13:32:41 +00:00
{ " PS Handover Capability " , " gsm_a.gm.gmm.rac.ps_ho_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dtm_ho_cap ,
2012-08-25 13:32:41 +00:00
{ " DTM Handover Capability " , " gsm_a.gm.gmm.rac.dtm_ho_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_multi_slot_cap_red_down_dual_carrier ,
2012-08-25 13:32:41 +00:00
{ " Multislot Capability Reduction for Downlink Dual Carrier " , " gsm_a.gm.gmm.rac.multi_slot_cap_red_down_dual_carrier " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_multi_slot_cap_red_down_dual_carrier_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_down_dual_carrier_dtm_cap ,
2012-08-25 13:32:41 +00:00
{ " Downlink Dual Carrier for DTM Capability " , " gsm_a.gm.gmm.rac.down_dual_carrier_dtm_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_flex_ts_assign ,
2012-08-25 13:32:41 +00:00
{ " Flexible Timeslot Assignment " , " gsm_a.gm.gmm.rac.flex_ts_assign " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_gan_ps_ho_cap ,
2012-08-25 13:32:41 +00:00
{ " GAN PS Handover Capability " , " gsm_a.gm.gmm.rac.gan_ps_ho_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_rlc_non_pers_mode ,
2012-08-25 13:32:41 +00:00
{ " RLC Non-persistent Mode " , " gsm_a.gm.gmm.rac.rlc_non_pers_mode " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_reduced_lat_cap ,
2012-08-25 13:32:41 +00:00
{ " Reduced Latency Capability " , " gsm_a.gm.gmm.rac.reduced_lat_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_ul_egprs2 ,
2012-08-25 13:32:41 +00:00
{ " Uplink EGPRS2 " , " gsm_a.gm.gmm.rac.ul_egprs2 " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_ul_egprs2_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_dl_egprs2 ,
2012-08-25 13:32:41 +00:00
{ " Downlink EGPRS2 " , " gsm_a.gm.gmm.rac.dl_egprs2 " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_dl_egprs2_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_eutra_fdd_support ,
2012-08-25 13:32:41 +00:00
{ " E-UTRA FDD support " , " gsm_a.gm.gmm.rac.eutra_fdd_support " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_eutra_tdd_support ,
2012-08-25 13:32:41 +00:00
{ " E-UTRA TDD support " , " gsm_a.gm.gmm.rac.eutra_tdd_support " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_geran_to_eutra_support_in_geran_ptm ,
2012-08-25 13:32:41 +00:00
{ " GERAN to E-UTRA support in GERAN packet transfer mode " , " gsm_a.gm.gmm.rac.geran_to_eutra_support_in_geran_ptm " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_geran_to_eutra_support_in_geran_ptm_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_prio_based_resel_support ,
2012-08-25 13:32:41 +00:00
{ " Priority-based reselection support " , " gsm_a.gm.gmm.rac.prio_based_resel_support " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_alt_efta_multi_slot_class ,
2012-08-25 13:32:41 +00:00
{ " Alternative EFTA Multislot Class " , " gsm_a.gm.gmm.rac.alt_efta_multi_slot_class " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_alt_efta_multi_slot_class_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_efta_multi_slot_cap_red_down_dual_carrier ,
2012-08-25 13:32:41 +00:00
{ " EFTA Multislot Capability Reduction for Downlink Dual Carrier " , " gsm_a.gm.gmm.rac.efta_multi_slot_cap_red_down_dual_carrier " ,
2012-05-17 14:35:11 +00:00
FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_multi_slot_cap_red_down_dual_carrier_vals ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_ind_up_layer_pdu_start_cap_for_rlc_um ,
2012-08-25 13:32:41 +00:00
{ " Indication of Upper Layer PDU Start Capability for RLC UM " , " gsm_a.gm.gmm.rac.ind_up_layer_pdu_start_cap_for_rlc_um " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_emst_cap ,
2012-08-25 13:32:41 +00:00
{ " Enhanced Multiplexing for Single TBF Capability " , " gsm_a.gm.gmm.rac.emst_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_mtti_cap ,
2012-08-25 13:32:41 +00:00
{ " Multiple TTI Capability " , " gsm_a.gm.gmm.rac.mtti_cap " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_utra_csg_cell_report ,
2012-08-25 13:32:41 +00:00
{ " Reporting of UTRAN CSG cells in packet transfer mode " , " gsm_a.gm.gmm.rac.utra_csg_cell_report " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_eutra_csg_cell_report ,
2012-08-25 13:32:41 +00:00
{ " Reporting of E-UTRAN CSG cells in packet transfer mode " , " gsm_a.gm.gmm.rac.eutra_csg_cell_report " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
2012-05-20 20:56:42 +00:00
{ & hf_gsm_a_gm_rac_dtr_cap ,
2012-08-25 13:32:41 +00:00
{ " Dynamic Timeslot Reduction Capability " , " gsm_a.gm.gmm.rac.dtr_cap " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_emsr_cap ,
2012-08-25 13:32:41 +00:00
{ " Enhanced Multiplexing for Single RLC Entity Capability " , " gsm_a.gm.gmm.rac.emsr_cap " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_fast_down_freq_switch_cap ,
2012-08-25 13:32:41 +00:00
{ " Fast Downlink Frequency Switching Capability " , " gsm_a.gm.gmm.rac.fast_down_freq_switch_cap " ,
2012-05-20 20:56:42 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_tighter_cap ,
2012-08-25 13:32:41 +00:00
{ " TIGHTER Capability " , " gsm_a.gm.gmm.rac.tighter_cap " ,
2012-05-20 20:56:42 +00:00
FT_UINT8 , BASE_DEC , VALS ( tighter_cap_level_vals ) , 0x0 ,
NULL , HFILL }
} ,
2012-10-04 21:23:06 +00:00
{ & hf_gsm_a_gm_rac_fanr_cap ,
{ " Fast Ack/Nack Reporting Capability " , " gsm_a.gm.gmm.rac.fanr_cap " ,
2012-10-05 04:48:51 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
2012-10-04 21:23:06 +00:00
NULL , HFILL }
} ,
{ & hf_gsm_a_gm_rac_ipa_cap ,
{ " Immediate Packet Assignment Capability " , " gsm_a.gm.gmm.rac.ipa_cap " ,
2012-10-05 04:48:51 +00:00
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
2012-10-04 21:23:06 +00:00
NULL , HFILL }
} ,
2013-07-10 21:31:22 +00:00
{ & hf_gsm_a_gm_rac_geran_nw_sharing_support ,
{ " GERAN Network Sharing support " , " gsm_a.gm.gmm.rac.geran_nw_sharing_support " ,
FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 ,
NULL , HFILL }
} ,
2012-05-17 14:35:11 +00:00
{ & hf_gsm_a_sm_ti_flag ,
2012-08-25 13:32:41 +00:00
{ " TI Flag " , " gsm_a.gm.sm.ti_flag " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , TFS ( & gsm_a_sm_ti_flag_vals ) , 0x80 ,
NULL , HFILL }
} ,
{ & hf_gsm_a_sm_ext ,
2012-08-25 13:32:41 +00:00
{ " Extension " , " gsm_a.gm.sm.ext " ,
2012-05-17 14:35:11 +00:00
FT_BOOLEAN , 8 , NULL , 0x80 ,
NULL , HFILL }
} ,
} ;
2008-08-24 17:42:30 +00:00
2013-09-03 02:26:50 +00:00
static ei_register_info ei [ ] = {
{ & ei_gsm_a_gm_extraneous_data , { " gsm_a.gm.extraneous_data " , PI_PROTOCOL , PI_NOTE , " Extraneous Data, dissector bug or later version spec(report to wireshark.org) " , EXPFILL } } ,
} ;
expert_module_t * expert_gsm_a_gm ;
2013-09-03 21:10:05 +00:00
/* Setup protocol subtree array */
# define NUM_INDIVIDUAL_ELEMS 7
gint * ett [ NUM_INDIVIDUAL_ELEMS +
NUM_GSM_DTAP_MSG_GMM + NUM_GSM_DTAP_MSG_SM +
NUM_GSM_GM_ELEM ] ;
ett [ 0 ] = & ett_gmm_radio_cap ;
ett [ 1 ] = & ett_gmm_rai ;
ett [ 2 ] = & ett_sm_tft ;
ett [ 3 ] = & ett_gmm_gprs_timer ;
ett [ 4 ] = & ett_gmm_network_cap ;
ett [ 5 ] = & ett_gsm_a_gm_msrac_multislot_capability ;
ett [ 6 ] = & ett_sm_pco ;
2008-08-24 17:42:30 +00:00
last_offset = NUM_INDIVIDUAL_ELEMS ;
2012-05-17 14:35:11 +00:00
for ( i = 0 ; i < NUM_GSM_DTAP_MSG_GMM ; i + + , last_offset + + )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
ett_gsm_dtap_msg_gmm [ i ] = - 1 ;
ett [ last_offset ] = & ett_gsm_dtap_msg_gmm [ i ] ;
2008-08-24 17:42:30 +00:00
}
2012-05-17 14:35:11 +00:00
for ( i = 0 ; i < NUM_GSM_DTAP_MSG_SM ; i + + , last_offset + + )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
ett_gsm_dtap_msg_sm [ i ] = - 1 ;
ett [ last_offset ] = & ett_gsm_dtap_msg_sm [ i ] ;
2008-08-24 17:42:30 +00:00
}
2012-05-17 14:35:11 +00:00
for ( i = 0 ; i < NUM_GSM_GM_ELEM ; i + + , last_offset + + )
2008-08-24 17:42:30 +00:00
{
2008-09-05 05:49:39 +00:00
ett_gsm_gm_elem [ i ] = - 1 ;
ett [ last_offset ] = & ett_gsm_gm_elem [ i ] ;
2008-08-24 17:42:30 +00:00
}
proto_a_gm =
2012-08-25 13:32:41 +00:00
proto_register_protocol ( " GSM A-I/F GPRS Mobility and Session Management " , " GSM Management " , " gsm_a.gm " ) ;
2008-08-24 17:42:30 +00:00
proto_register_field_array ( proto_a_gm , hf , array_length ( hf ) ) ;
proto_register_subtree_array ( ett , array_length ( ett ) ) ;
2013-09-03 02:26:50 +00:00
expert_gsm_a_gm = expert_register_protocol ( proto_a_gm ) ;
expert_register_field_array ( expert_gsm_a_gm , ei , array_length ( ei ) ) ;
2008-08-24 17:42:30 +00:00
/* subdissector code */
gprs_sm_pco_subdissector_table = register_dissector_table ( " sm_pco.protocol " ,
" GPRS SM PCO PPP protocol " , FT_UINT16 , BASE_HEX ) ;
}
void
proto_reg_handoff_gsm_a_gm ( void )
{
data_handle = find_dissector ( " data " ) ;
2008-11-17 19:41:44 +00:00
rrc_irat_ho_info_handle = find_dissector ( " rrc.irat.irat_ho_info " ) ;
2011-04-27 22:18:00 +00:00
lte_rrc_ue_eutra_cap_handle = find_dissector ( " lte-rrc.ue_eutra_cap " ) ;
2008-08-24 17:42:30 +00:00
}