forked from osmocom/wireshark
![Michael Mann](/assets/img/avatar_default.png)
Started by grepping call_dissector_with_data, call_dissector_only and call_dissector and traced the handles passed into them to a find_dissector within the dissector. Then replaced find_dissector with find_dissector_add_dependency and added the protocol id from the dissector. "data" dissector was not considered to be a dependency. Change-Id: I15d0d77301306587ef8e7af5876e74231816890d Reviewed-on: https://code.wireshark.org/review/14509 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
887 lines
35 KiB
C
887 lines
35 KiB
C
/* packet-gsmtap.c
|
|
* Routines for GSMTAP captures
|
|
*
|
|
* (C) 2008-2013 by Harald Welte <laforge@gnumonks.org>
|
|
* (C) 2011 by Holger Hans Peter Freyther
|
|
*
|
|
* 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
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
/* GSMTAP is a generic header format for GSM protocol captures,
|
|
* it uses the IANA-assigned UDP port number 4729 and carries
|
|
* payload in various formats of GSM interfaces such as Um MAC
|
|
* blocks or Um bursts.
|
|
*
|
|
* Example programs generating GSMTAP data are airprobe
|
|
* (http://airprobe.org/) or OsmocomBB (http://bb.osmocom.org/)
|
|
*
|
|
* It has also been used for Tetra by the OsmocomTETRA project.
|
|
* (http://tetra.osmocom.org/)
|
|
*
|
|
* GSMTAP also carries payload in various formats of WiMAX interfaces.
|
|
* It uses the wimax plugin to decode the WiMAX bursts.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include "packet-tetra.h"
|
|
|
|
void proto_register_gsmtap(void);
|
|
void proto_reg_handoff_gsmtap(void);
|
|
|
|
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
|
|
/* The following types and definitions are imported from libosmocore,
|
|
* the original source of the GSMTAP format.
|
|
*
|
|
* prior to getting them accepted/included into the official Osmocom
|
|
* GSMTAP definition, available from
|
|
* http://cgit.osmocom.org/cgit/libosmocore/tree/include/osmocom/core/gsmtap.h
|
|
*
|
|
* The GSMTAP maintainer can be contacted via the
|
|
* openbsc@lists.osmocom.org mailing list, or by private e-mail
|
|
* to laforge@gnumonks.org
|
|
*/
|
|
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
|
|
#define GSMTAP_TYPE_UM 0x01
|
|
#define GSMTAP_TYPE_ABIS 0x02
|
|
#define GSMTAP_TYPE_UM_BURST 0x03 /* raw burst bits */
|
|
#define GSMTAP_TYPE_SIM 0x04
|
|
#define GSMTAP_TYPE_TETRA_I1 0x05 /* tetra air interface */
|
|
#define GSMTAP_TTPE_TETRA_I1_BURST 0x06 /* tetra air interface */
|
|
#define GSMTAP_TYPE_WMX_BURST 0x07 /* WiMAX burst */
|
|
#define GSMTAP_TYPE_GB_LLC 0x08 /* GPRS Gb interface: LLC */
|
|
#define GSMTAP_TYPE_GB_SNDCP 0x09 /* GPRS Gb interface: SNDCP */
|
|
#define GSMTAP_TYPE_GMR1_UM 0x0a /* GMR-1 L2 packets */
|
|
#define GSMTAP_TYPE_UMTS_RLC_MAC 0x0b
|
|
#define GSMTAP_TYPE_UMTS_RRC 0x0c
|
|
|
|
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
|
|
#define GSMTAP_BURST_UNKNOWN 0x00
|
|
#define GSMTAP_BURST_FCCH 0x01
|
|
#define GSMTAP_BURST_PARTIAL_SCH 0x02
|
|
#define GSMTAP_BURST_SCH 0x03
|
|
#define GSMTAP_BURST_CTS_SCH 0x04
|
|
#define GSMTAP_BURST_COMPACT_SCH 0x05
|
|
#define GSMTAP_BURST_NORMAL 0x06
|
|
#define GSMTAP_BURST_DUMMY 0x07
|
|
#define GSMTAP_BURST_ACCESS 0x08
|
|
#define GSMTAP_BURST_NONE 0x09
|
|
/* WiMAX bursts */
|
|
#define GSMTAP_BURST_CDMA_CODE 0x10 /* WiMAX CDMA Code Attribute burst */
|
|
#define GSMTAP_BURST_FCH 0x11 /* WiMAX FCH burst */
|
|
#define GSMTAP_BURST_FFB 0x12 /* WiMAX Fast Feedback burst */
|
|
#define GSMTAP_BURST_PDU 0x13 /* WiMAX PDU burst */
|
|
#define GSMTAP_BURST_HACK 0x14 /* WiMAX HARQ ACK burst */
|
|
#define GSMTAP_BURST_PHY_ATTRIBUTES 0x15 /* WiMAX PHY Attributes burst */
|
|
|
|
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
|
|
/* sub-types for TYPE_UM */
|
|
#define GSMTAP_CHANNEL_UNKNOWN 0x00
|
|
#define GSMTAP_CHANNEL_BCCH 0x01
|
|
#define GSMTAP_CHANNEL_CCCH 0x02
|
|
#define GSMTAP_CHANNEL_RACH 0x03
|
|
#define GSMTAP_CHANNEL_AGCH 0x04
|
|
#define GSMTAP_CHANNEL_PCH 0x05
|
|
#define GSMTAP_CHANNEL_SDCCH 0x06
|
|
#define GSMTAP_CHANNEL_SDCCH4 0x07
|
|
#define GSMTAP_CHANNEL_SDCCH8 0x08
|
|
#define GSMTAP_CHANNEL_TCH_F 0x09
|
|
#define GSMTAP_CHANNEL_TCH_H 0x0a
|
|
#define GSMTAP_CHANNEL_PACCH 0x0b
|
|
#define GSMTAP_CHANNEL_CBCH52 0x0c
|
|
#define GSMTAP_CHANNEL_PDCH 0x0d
|
|
#define GSMTAP_CHANNEL_PTCCH 0x0e
|
|
#define GSMTAP_CHANNEL_CBCH51 0x0f
|
|
|
|
/* GPRS Coding Scheme CS1..4 */
|
|
#define GSMTAP_GPRS_CS_BASE 0x20
|
|
#define GSMTAP_GPRS_CS(N) (GSMTAP_GPRS_CS_BASE + N)
|
|
/* (E) GPRS Coding Scheme MCS0..9 */
|
|
#define GSMTAP_GPRS_MCS_BASE 0x30
|
|
#define GSMTAP_GPRS_MCS(N) (GSMTAP_GPRS_MCS_BASE + N)
|
|
|
|
#define GSMTAP_CHANNEL_ACCH 0x80
|
|
|
|
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
|
|
/* sub-types for TYPE_TETRA_AIR */
|
|
#define GSMTAP_TETRA_BSCH 0x01
|
|
#define GSMTAP_TETRA_AACH 0x02
|
|
#define GSMTAP_TETRA_SCH_HU 0x03
|
|
#define GSMTAP_TETRA_SCH_HD 0x04
|
|
#define GSMTAP_TETRA_SCH_F 0x05
|
|
#define GSMTAP_TETRA_BNCH 0x06
|
|
#define GSMTAP_TETRA_STCH 0x07
|
|
#define GSMTAP_TETRA_TCH_F 0x08
|
|
|
|
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
|
|
/* sub-types for TYPE_GMR1 */
|
|
#define GSMTAP_GMR1_UNKNOWN 0x00
|
|
#define GSMTAP_GMR1_BCCH 0x01
|
|
#define GSMTAP_GMR1_CCCH 0x02 /* either AGCH or PCH */
|
|
#define GSMTAP_GMR1_PCH 0x03
|
|
#define GSMTAP_GMR1_AGCH 0x04
|
|
#define GSMTAP_GMR1_BACH 0x05
|
|
#define GSMTAP_GMR1_RACH 0x06
|
|
#define GSMTAP_GMR1_CBCH 0x07
|
|
#define GSMTAP_GMR1_SDCCH 0x08
|
|
#define GSMTAP_GMR1_TACCH 0x09
|
|
#define GSMTAP_GMR1_GBCH 0x0a
|
|
|
|
#define GSMTAP_GMR1_SACCH 0x01 /* to be combined with _TCH{6,9} */
|
|
#define GSMTAP_GMR1_FACCH 0x02 /* to be combines with _TCH{3,6,9} */
|
|
#define GSMTAP_GMR1_DKAB 0x03 /* to be combined with _TCH3 */
|
|
#define GSMTAP_GMR1_TCH3 0x10
|
|
#define GSMTAP_GMR1_TCH6 0x14
|
|
#define GSMTAP_GMR1_TCH9 0x18
|
|
|
|
#define GSMTAP_ARFCN_F_PCS 0x8000
|
|
#define GSMTAP_ARFCN_F_UPLINK 0x4000
|
|
#define GSMTAP_ARFCN_MASK 0x3fff
|
|
|
|
#define GSMTAP_UDP_PORT 4729
|
|
|
|
/* This is the header as it is used by gsmtap-generating software.
|
|
* It is not used by the wireshark dissector and provided for reference only.
|
|
struct gsmtap_hdr {
|
|
guint8 version; // version, set to 0x01 currently
|
|
guint8 hdr_len; // length in number of 32bit words
|
|
guint8 type; // see GSMTAP_TYPE_*
|
|
guint8 timeslot; // timeslot (0..7 on Um)
|
|
|
|
guint16 arfcn; // ARFCN (frequency)
|
|
gint8 signal_dbm; // signal level in dBm
|
|
gint8 snr_db; // signal/noise ratio in dB
|
|
|
|
guint32 frame_number; // GSM Frame Number (FN)
|
|
|
|
guint8 sub_type; // Type of burst/channel, see above
|
|
guint8 antenna_nr; // Antenna Number
|
|
guint8 sub_slot; // sub-slot within timeslot
|
|
guint8 res; // reserved for future use (RFU)
|
|
}
|
|
*/
|
|
|
|
static int proto_gsmtap = -1;
|
|
|
|
static int hf_gsmtap_version = -1;
|
|
static int hf_gsmtap_hdrlen = -1;
|
|
static int hf_gsmtap_type = -1;
|
|
static int hf_gsmtap_timeslot = -1;
|
|
static int hf_gsmtap_subslot = -1;
|
|
static int hf_gsmtap_arfcn = -1;
|
|
static int hf_gsmtap_uplink = -1;
|
|
static int hf_gsmtap_signal_dbm = -1;
|
|
static int hf_gsmtap_snr_db = -1;
|
|
static int hf_gsmtap_frame_nr = -1;
|
|
static int hf_gsmtap_burst_type = -1;
|
|
static int hf_gsmtap_channel_type = -1;
|
|
static int hf_gsmtap_tetra_channel_type = -1;
|
|
static int hf_gsmtap_gmr1_channel_type = -1;
|
|
static int hf_gsmtap_antenna = -1;
|
|
|
|
static int hf_sacch_l1h_power_lev = -1;
|
|
static int hf_sacch_l1h_fpc = -1;
|
|
static int hf_sacch_l1h_ta = -1;
|
|
|
|
static gint ett_gsmtap = -1;
|
|
|
|
enum {
|
|
GSMTAP_SUB_DATA = 0,
|
|
GSMTAP_SUB_UM,
|
|
GSMTAP_SUB_UM_LAPDM,
|
|
GSMTAP_SUB_UM_RLC_MAC_UL,
|
|
GSMTAP_SUB_UM_RLC_MAC_DL,
|
|
GSMTAP_SUB_LLC,
|
|
GSMTAP_SUB_SNDCP,
|
|
GSMTAP_SUB_ABIS,
|
|
/* WiMAX sub handles */
|
|
GSMTAP_SUB_CDMA_CODE,
|
|
GSMTAP_SUB_FCH,
|
|
GSMTAP_SUB_FFB,
|
|
GSMTAP_SUB_PDU,
|
|
GSMTAP_SUB_HACK,
|
|
GSMTAP_SUB_PHY_ATTRIBUTES,
|
|
GSMTAP_SUB_CBCH,
|
|
GSMTAP_SUB_SIM,
|
|
/* GMR-1 sub handles */
|
|
GSMTAP_SUB_GMR1_BCCH,
|
|
GSMTAP_SUB_GMR1_CCCH,
|
|
GSMTAP_SUB_GMR1_LAPSAT,
|
|
GSMTAP_SUB_GMR1_RACH,
|
|
/* UMTS */
|
|
GSMTAP_SUB_UMTS_RLC_MAC,
|
|
GSMTAP_SUB_UMTS_RRC,
|
|
|
|
GSMTAP_SUB_MAX
|
|
};
|
|
|
|
enum {
|
|
GSMTAP_RRC_SUB_DL_DCCH_Message = 0,
|
|
GSMTAP_RRC_SUB_UL_DCCH_Message,
|
|
GSMTAP_RRC_SUB_DL_CCCH_Message,
|
|
GSMTAP_RRC_SUB_UL_CCCH_Message,
|
|
GSMTAP_RRC_SUB_PCCH_Message,
|
|
GSMTAP_RRC_SUB_DL_SHCCH_Message,
|
|
GSMTAP_RRC_SUB_UL_SHCCH_Message,
|
|
GSMTAP_RRC_SUB_BCCH_FACH_Message,
|
|
GSMTAP_RRC_SUB_BCCH_BCH_Message,
|
|
GSMTAP_RRC_SUB_MCCH_Message,
|
|
GSMTAP_RRC_SUB_MSCH_Message,
|
|
GSMTAP_RRC_SUB_HandoverToUTRANCommand,
|
|
GSMTAP_RRC_SUB_InterRATHandoverInfo,
|
|
GSMTAP_RRC_SUB_SystemInformation_BCH,
|
|
GSMTAP_RRC_SUB_System_Information_Container,
|
|
GSMTAP_RRC_SUB_UE_RadioAccessCapabilityInfo,
|
|
GSMTAP_RRC_SUB_MasterInformationBlock,
|
|
GSMTAP_RRC_SUB_SysInfoType1,
|
|
GSMTAP_RRC_SUB_SysInfoType2,
|
|
GSMTAP_RRC_SUB_SysInfoType3,
|
|
GSMTAP_RRC_SUB_SysInfoType4,
|
|
GSMTAP_RRC_SUB_SysInfoType5,
|
|
GSMTAP_RRC_SUB_SysInfoType5bis,
|
|
GSMTAP_RRC_SUB_SysInfoType6,
|
|
GSMTAP_RRC_SUB_SysInfoType7,
|
|
GSMTAP_RRC_SUB_SysInfoType8,
|
|
GSMTAP_RRC_SUB_SysInfoType9,
|
|
GSMTAP_RRC_SUB_SysInfoType10,
|
|
GSMTAP_RRC_SUB_SysInfoType11,
|
|
GSMTAP_RRC_SUB_SysInfoType11bis,
|
|
GSMTAP_RRC_SUB_SysInfoType12,
|
|
GSMTAP_RRC_SUB_SysInfoType13,
|
|
GSMTAP_RRC_SUB_SysInfoType13_1,
|
|
GSMTAP_RRC_SUB_SysInfoType13_2,
|
|
GSMTAP_RRC_SUB_SysInfoType13_3,
|
|
GSMTAP_RRC_SUB_SysInfoType13_4,
|
|
GSMTAP_RRC_SUB_SysInfoType14,
|
|
GSMTAP_RRC_SUB_SysInfoType15,
|
|
GSMTAP_RRC_SUB_SysInfoType15bis,
|
|
GSMTAP_RRC_SUB_SysInfoType15_1,
|
|
GSMTAP_RRC_SUB_SysInfoType15_1bis,
|
|
GSMTAP_RRC_SUB_SysInfoType15_2,
|
|
GSMTAP_RRC_SUB_SysInfoType15_2bis,
|
|
GSMTAP_RRC_SUB_SysInfoType15_2ter,
|
|
GSMTAP_RRC_SUB_SysInfoType15_3,
|
|
GSMTAP_RRC_SUB_SysInfoType15_3bis,
|
|
GSMTAP_RRC_SUB_SysInfoType15_4,
|
|
GSMTAP_RRC_SUB_SysInfoType15_5,
|
|
GSMTAP_RRC_SUB_SysInfoType15_6,
|
|
GSMTAP_RRC_SUB_SysInfoType15_7,
|
|
GSMTAP_RRC_SUB_SysInfoType15_8,
|
|
GSMTAP_RRC_SUB_SysInfoType16,
|
|
GSMTAP_RRC_SUB_SysInfoType17,
|
|
GSMTAP_RRC_SUB_SysInfoType18,
|
|
GSMTAP_RRC_SUB_SysInfoType19,
|
|
GSMTAP_RRC_SUB_SysInfoType20,
|
|
GSMTAP_RRC_SUB_SysInfoType21,
|
|
GSMTAP_RRC_SUB_SysInfoType22,
|
|
GSMTAP_RRC_SUB_SysInfoTypeSB1,
|
|
GSMTAP_RRC_SUB_SysInfoTypeSB2,
|
|
GSMTAP_RRC_SUB_ToTargetRNC_Container,
|
|
GSMTAP_RRC_SUB_TargetRNC_ToSourceRNC_Container,
|
|
|
|
GSMTAP_RRC_SUB_MAX
|
|
};
|
|
|
|
static dissector_handle_t sub_handles[GSMTAP_SUB_MAX];
|
|
static dissector_handle_t rrc_sub_handles[GSMTAP_RRC_SUB_MAX];
|
|
|
|
static dissector_table_t gsmtap_dissector_table;
|
|
|
|
static const value_string gsmtap_bursts[] = {
|
|
{ GSMTAP_BURST_UNKNOWN, "UNKNOWN" },
|
|
{ GSMTAP_BURST_FCCH, "FCCH" },
|
|
{ GSMTAP_BURST_PARTIAL_SCH, "PARTIAL SCH" },
|
|
{ GSMTAP_BURST_SCH, "SCH" },
|
|
{ GSMTAP_BURST_CTS_SCH, "CTS SCH" },
|
|
{ GSMTAP_BURST_COMPACT_SCH, "COMPACT SCH" },
|
|
{ GSMTAP_BURST_NORMAL, "NORMAL" },
|
|
{ GSMTAP_BURST_DUMMY, "DUMMY" },
|
|
{ GSMTAP_BURST_ACCESS, "RACH" },
|
|
/* WiMAX bursts */
|
|
{ GSMTAP_BURST_CDMA_CODE, "CDMA Code" },
|
|
{ GSMTAP_BURST_FCH, "FCH" },
|
|
{ GSMTAP_BURST_FFB, "Fast Feedback" },
|
|
{ GSMTAP_BURST_PDU, "PDU" },
|
|
{ GSMTAP_BURST_HACK, "HACK" },
|
|
{ GSMTAP_BURST_PHY_ATTRIBUTES, "PHY Attributes" },
|
|
{ 0, NULL },
|
|
};
|
|
|
|
static const value_string gsmtap_channels[] = {
|
|
{ GSMTAP_CHANNEL_UNKNOWN, "UNKNOWN" },
|
|
{ GSMTAP_CHANNEL_BCCH, "BCCH" },
|
|
{ GSMTAP_CHANNEL_CCCH, "CCCH" },
|
|
{ GSMTAP_CHANNEL_RACH, "RACH" },
|
|
{ GSMTAP_CHANNEL_AGCH, "AGCH" },
|
|
{ GSMTAP_CHANNEL_PCH, "PCH" },
|
|
{ GSMTAP_CHANNEL_SDCCH, "SDCCH" },
|
|
{ GSMTAP_CHANNEL_SDCCH4, "SDCCH/4" },
|
|
{ GSMTAP_CHANNEL_SDCCH8, "SDCCH/8" },
|
|
{ GSMTAP_CHANNEL_TCH_F, "FACCH/F" },
|
|
{ GSMTAP_CHANNEL_TCH_H, "FACCH/H" },
|
|
{ GSMTAP_CHANNEL_PACCH, "PACCH" },
|
|
{ GSMTAP_CHANNEL_CBCH52, "CBCH" },
|
|
{ GSMTAP_CHANNEL_PDCH, "PDCH" },
|
|
{ GSMTAP_CHANNEL_PTCCH, "PTTCH" },
|
|
{ GSMTAP_CHANNEL_CBCH51, "CBCH" },
|
|
|
|
{ GSMTAP_CHANNEL_ACCH|
|
|
GSMTAP_CHANNEL_SDCCH, "LSACCH" },
|
|
{ GSMTAP_CHANNEL_ACCH|
|
|
GSMTAP_CHANNEL_SDCCH4, "SACCH/4" },
|
|
{ GSMTAP_CHANNEL_ACCH|
|
|
GSMTAP_CHANNEL_SDCCH8, "SACCH/8" },
|
|
{ GSMTAP_CHANNEL_ACCH|
|
|
GSMTAP_CHANNEL_TCH_F, "SACCH/F" },
|
|
{ GSMTAP_CHANNEL_ACCH|
|
|
GSMTAP_CHANNEL_TCH_H, "SACCH/H" },
|
|
{ 0, NULL },
|
|
};
|
|
|
|
static const value_string gsmtap_tetra_channels[] = {
|
|
{ GSMTAP_TETRA_BSCH, "BSCH" },
|
|
{ GSMTAP_TETRA_AACH, "AACH" },
|
|
{ GSMTAP_TETRA_SCH_HU, "SCH/HU" },
|
|
{ GSMTAP_TETRA_SCH_HD, "SCH/HD" },
|
|
{ GSMTAP_TETRA_SCH_F, "SCH/F" },
|
|
{ GSMTAP_TETRA_BNCH, "BNCH" },
|
|
{ GSMTAP_TETRA_STCH, "STCH" },
|
|
{ GSMTAP_TETRA_TCH_F, "AACH" },
|
|
{ 0, NULL },
|
|
};
|
|
|
|
static const value_string gsmtap_gmr1_channels[] = {
|
|
{ GSMTAP_GMR1_BCCH, "BCCH" },
|
|
{ GSMTAP_GMR1_CCCH, "CCCH" },
|
|
{ GSMTAP_GMR1_PCH, "PCH" },
|
|
{ GSMTAP_GMR1_AGCH, "AGCH" },
|
|
{ GSMTAP_GMR1_BACH, "BACH" },
|
|
{ GSMTAP_GMR1_RACH, "RACH" },
|
|
{ GSMTAP_GMR1_CBCH, "CBCH" },
|
|
{ GSMTAP_GMR1_SDCCH, "SDCCH" },
|
|
{ GSMTAP_GMR1_TACCH, "TACCH" },
|
|
{ GSMTAP_GMR1_GBCH, "GBCH" },
|
|
{ GSMTAP_GMR1_TCH3, "TCH3" },
|
|
{ GSMTAP_GMR1_TCH3|
|
|
GSMTAP_GMR1_FACCH, "FACCH3" },
|
|
{ GSMTAP_GMR1_TCH3|
|
|
GSMTAP_GMR1_DKAB, "DKAB" },
|
|
{ GSMTAP_GMR1_TCH6, "TCH6" },
|
|
{ GSMTAP_GMR1_TCH6|
|
|
GSMTAP_GMR1_FACCH, "FACCH6" },
|
|
{ GSMTAP_GMR1_TCH6|
|
|
GSMTAP_GMR1_SACCH, "SACCH6" },
|
|
{ GSMTAP_GMR1_TCH9, "TCH9" },
|
|
{ GSMTAP_GMR1_TCH9|
|
|
GSMTAP_GMR1_FACCH, "FACCH9" },
|
|
{ GSMTAP_GMR1_TCH9|
|
|
GSMTAP_GMR1_SACCH, "SACCH9" },
|
|
{ 0, NULL },
|
|
};
|
|
|
|
/* the mapping is not complete */
|
|
static const int gsmtap_to_tetra[9] = {
|
|
0,
|
|
TETRA_CHAN_BSCH,
|
|
TETRA_CHAN_AACH,
|
|
TETRA_CHAN_SCH_HU,
|
|
0,
|
|
TETRA_CHAN_SCH_F,
|
|
TETRA_CHAN_BNCH,
|
|
TETRA_CHAN_STCH,
|
|
0
|
|
};
|
|
|
|
static const value_string gsmtap_types[] = {
|
|
{ GSMTAP_TYPE_UM, "GSM Um (MS<->BTS)" },
|
|
{ GSMTAP_TYPE_ABIS, "GSM Abis (BTS<->BSC)" },
|
|
{ GSMTAP_TYPE_UM_BURST, "GSM Um burst (MS<->BTS)" },
|
|
{ GSMTAP_TYPE_SIM, "SIM" },
|
|
{ GSMTAP_TYPE_TETRA_I1, "TETRA V+D"},
|
|
{ GSMTAP_TTPE_TETRA_I1_BURST, "TETRA V+D burst"},
|
|
{ GSMTAP_TYPE_WMX_BURST,"WiMAX burst" },
|
|
{ GSMTAP_TYPE_GMR1_UM, "GMR-1 air interfeace (MES-MS<->GTS)" },
|
|
{ GSMTAP_TYPE_UMTS_RLC_MAC, "UMTS RLC/MAC" },
|
|
{ GSMTAP_TYPE_UMTS_RRC, "UMTS RRC" },
|
|
{ 0, NULL },
|
|
};
|
|
|
|
/* dissect a SACCH L1 header which is included in the first 2 bytes
|
|
* of every SACCH frame (according to TS 04.04) */
|
|
static void
|
|
dissect_sacch_l1h(tvbuff_t *tvb, proto_tree *tree)
|
|
{
|
|
proto_item *ti;
|
|
proto_tree *l1h_tree = NULL;
|
|
|
|
if (!tree)
|
|
return;
|
|
|
|
ti = proto_tree_add_protocol_format(tree, proto_gsmtap, tvb, 0, 2,
|
|
"SACCH L1 Header, Power Level: %u, Timing Advance: %u",
|
|
tvb_get_guint8(tvb, 0) & 0x1f,
|
|
tvb_get_guint8(tvb, 1));
|
|
l1h_tree = proto_item_add_subtree(ti, ett_gsmtap);
|
|
/* Power Level */
|
|
proto_tree_add_item(l1h_tree, hf_sacch_l1h_power_lev, tvb, 0, 1, ENC_BIG_ENDIAN);
|
|
/* Fast Power Control */
|
|
proto_tree_add_item(l1h_tree, hf_sacch_l1h_fpc, tvb, 0, 1, ENC_BIG_ENDIAN);
|
|
/* Acutal Timing Advance */
|
|
proto_tree_add_item(l1h_tree, hf_sacch_l1h_ta, tvb, 1, 1, ENC_BIG_ENDIAN);
|
|
}
|
|
|
|
|
|
static void
|
|
handle_tetra(int channel _U_, tvbuff_t *payload_tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_)
|
|
{
|
|
int tetra_chan;
|
|
if (channel < 0 || channel > GSMTAP_TETRA_TCH_F)
|
|
return;
|
|
|
|
tetra_chan = gsmtap_to_tetra[channel];
|
|
if (tetra_chan <= 0)
|
|
return;
|
|
|
|
tetra_dissect_pdu(tetra_chan, TETRA_DOWNLINK, payload_tvb, tree, pinfo);
|
|
}
|
|
|
|
/* dissect a GSMTAP header and hand payload off to respective dissector */
|
|
static int
|
|
dissect_gsmtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
|
|
{
|
|
int sub_handle, rrc_sub_handle = 0, len, offset = 0;
|
|
proto_item *ti;
|
|
proto_tree *gsmtap_tree = NULL;
|
|
tvbuff_t *payload_tvb, *l1h_tvb = NULL;
|
|
guint8 hdr_len, type, sub_type, timeslot, subslot;
|
|
guint16 arfcn;
|
|
|
|
len = tvb_reported_length(tvb);
|
|
|
|
hdr_len = tvb_get_guint8(tvb, offset + 1) <<2;
|
|
type = tvb_get_guint8(tvb, offset + 2);
|
|
timeslot = tvb_get_guint8(tvb, offset + 3);
|
|
arfcn = tvb_get_ntohs(tvb, offset + 4);
|
|
sub_type = tvb_get_guint8(tvb, offset + 12);
|
|
subslot = tvb_get_guint8(tvb, offset + 14);
|
|
|
|
/* In case of a SACCH, there is a two-byte L1 header in front
|
|
* of the packet (see TS 04.04) */
|
|
if (type == GSMTAP_TYPE_UM &&
|
|
sub_type & GSMTAP_CHANNEL_ACCH) {
|
|
l1h_tvb = tvb_new_subset_length(tvb, hdr_len, 2);
|
|
payload_tvb = tvb_new_subset_length(tvb, hdr_len+2, len-(hdr_len+2));
|
|
} else {
|
|
payload_tvb = tvb_new_subset_length(tvb, hdr_len, len-hdr_len);
|
|
}
|
|
|
|
/* We don't want any UDP related info left in the INFO field, as the
|
|
* gsm_a_dtap dissector will not clear but only append */
|
|
col_clear(pinfo->cinfo, COL_INFO);
|
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSMTAP");
|
|
|
|
/* Some GSMTAP types are completely unrelated to the Um air interface */
|
|
if (dissector_try_uint(gsmtap_dissector_table, type, payload_tvb,
|
|
pinfo, tree))
|
|
return tvb_captured_length(tvb);
|
|
|
|
if (arfcn & GSMTAP_ARFCN_F_UPLINK) {
|
|
col_append_str(pinfo->cinfo, COL_RES_NET_SRC, "MS");
|
|
col_append_str(pinfo->cinfo, COL_RES_NET_DST, "BTS");
|
|
/* p2p_dir is used by the LAPDm dissector */
|
|
pinfo->p2p_dir = P2P_DIR_SENT;
|
|
} else {
|
|
col_set_str(pinfo->cinfo, COL_RES_NET_SRC, "BTS");
|
|
switch (sub_type & ~GSMTAP_CHANNEL_ACCH) {
|
|
case GSMTAP_CHANNEL_BCCH:
|
|
case GSMTAP_CHANNEL_CCCH:
|
|
case GSMTAP_CHANNEL_PCH:
|
|
case GSMTAP_CHANNEL_AGCH:
|
|
case GSMTAP_CHANNEL_CBCH51:
|
|
case GSMTAP_CHANNEL_CBCH52:
|
|
col_set_str(pinfo->cinfo, COL_RES_NET_DST, "Broadcast");
|
|
break;
|
|
default:
|
|
col_set_str(pinfo->cinfo, COL_RES_NET_DST, "MS");
|
|
break;
|
|
}
|
|
/* p2p_dir is used by the LAPDm dissector */
|
|
pinfo->p2p_dir = P2P_DIR_RECV;
|
|
}
|
|
|
|
/* Try to build an identifier of different 'streams' */
|
|
/* (AFCN _cant_ be used because of hopping */
|
|
pinfo->circuit_id = (timeslot << 3) | subslot;
|
|
|
|
if (tree) {
|
|
guint8 channel;
|
|
const char *channel_str;
|
|
channel = tvb_get_guint8(tvb, offset+12);
|
|
if (type == GSMTAP_TYPE_TETRA_I1)
|
|
channel_str = val_to_str(channel, gsmtap_tetra_channels, "Unknown: %d");
|
|
else if (type == GSMTAP_TYPE_GMR1_UM)
|
|
channel_str = val_to_str(channel, gsmtap_gmr1_channels, "Unknown: %d");
|
|
else
|
|
channel_str = val_to_str(channel, gsmtap_channels, "Unknown: %d");
|
|
|
|
ti = proto_tree_add_protocol_format(tree, proto_gsmtap, tvb, 0, hdr_len,
|
|
"GSM TAP Header, ARFCN: %u (%s), TS: %u, Channel: %s (%u)",
|
|
arfcn & GSMTAP_ARFCN_MASK,
|
|
arfcn & GSMTAP_ARFCN_F_UPLINK ? "Uplink" : "Downlink",
|
|
tvb_get_guint8(tvb, offset+3),
|
|
channel_str,
|
|
tvb_get_guint8(tvb, offset+14));
|
|
gsmtap_tree = proto_item_add_subtree(ti, ett_gsmtap);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_version,
|
|
tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_uint_format_value(gsmtap_tree, hf_gsmtap_hdrlen,
|
|
tvb, offset+1, 1, hdr_len,
|
|
"%u bytes", hdr_len);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_type,
|
|
tvb, offset+2, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_timeslot,
|
|
tvb, offset+3, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_arfcn,
|
|
tvb, offset+4, 2, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_uplink,
|
|
tvb, offset+4, 2, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_signal_dbm,
|
|
tvb, offset+6, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_snr_db,
|
|
tvb, offset+7, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_frame_nr,
|
|
tvb, offset+8, 4, ENC_BIG_ENDIAN);
|
|
if (type == GSMTAP_TYPE_UM_BURST)
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_burst_type,
|
|
tvb, offset+12, 1, ENC_BIG_ENDIAN);
|
|
else if (type == GSMTAP_TYPE_UM)
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_channel_type,
|
|
tvb, offset+12, 1, ENC_BIG_ENDIAN);
|
|
else if (type == GSMTAP_TYPE_TETRA_I1)
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_tetra_channel_type,
|
|
tvb, offset+12, 1, ENC_BIG_ENDIAN);
|
|
else if (type == GSMTAP_TYPE_WMX_BURST)
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_burst_type,
|
|
tvb, offset+12, 1, ENC_BIG_ENDIAN);
|
|
else if (type == GSMTAP_TYPE_GMR1_UM)
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_gmr1_channel_type,
|
|
tvb, offset+12, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_antenna,
|
|
tvb, offset+13, 1, ENC_BIG_ENDIAN);
|
|
proto_tree_add_item(gsmtap_tree, hf_gsmtap_subslot,
|
|
tvb, offset+14, 1, ENC_BIG_ENDIAN);
|
|
}
|
|
|
|
switch (type) {
|
|
case GSMTAP_TYPE_UMTS_RRC:
|
|
sub_handle = GSMTAP_SUB_UMTS_RRC;
|
|
rrc_sub_handle = sub_type;
|
|
if (rrc_sub_handle >= GSMTAP_RRC_SUB_MAX) {
|
|
sub_handle = GSMTAP_SUB_DATA;
|
|
}
|
|
/* make entry in the Protocol column on summary display.
|
|
* Normally, the RRC dissector would be doing this, but
|
|
* we are bypassing dissect_rrc() and directly call a
|
|
* sub-dissector */
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "RRC");
|
|
break;
|
|
case GSMTAP_TYPE_UM:
|
|
if (l1h_tvb)
|
|
dissect_sacch_l1h(l1h_tvb, tree);
|
|
switch (sub_type & ~GSMTAP_CHANNEL_ACCH) {
|
|
case GSMTAP_CHANNEL_BCCH:
|
|
case GSMTAP_CHANNEL_CCCH:
|
|
case GSMTAP_CHANNEL_PCH:
|
|
case GSMTAP_CHANNEL_AGCH:
|
|
/* FIXME: we might want to skip idle frames */
|
|
sub_handle = GSMTAP_SUB_UM;
|
|
break;
|
|
case GSMTAP_CHANNEL_SDCCH:
|
|
case GSMTAP_CHANNEL_SDCCH4:
|
|
case GSMTAP_CHANNEL_SDCCH8:
|
|
case GSMTAP_CHANNEL_TCH_F:
|
|
case GSMTAP_CHANNEL_TCH_H:
|
|
sub_handle = GSMTAP_SUB_UM_LAPDM;
|
|
break;
|
|
case GSMTAP_CHANNEL_PACCH:
|
|
if (pinfo->p2p_dir == P2P_DIR_SENT) {
|
|
sub_handle = GSMTAP_SUB_UM_RLC_MAC_UL;
|
|
}
|
|
else
|
|
{
|
|
sub_handle = GSMTAP_SUB_UM_RLC_MAC_DL;
|
|
}
|
|
break;
|
|
|
|
case GSMTAP_CHANNEL_CBCH51:
|
|
case GSMTAP_CHANNEL_CBCH52:
|
|
sub_handle = GSMTAP_SUB_CBCH;
|
|
break;
|
|
|
|
case GSMTAP_CHANNEL_RACH:
|
|
default:
|
|
sub_handle = GSMTAP_SUB_DATA;
|
|
break;
|
|
}
|
|
break;
|
|
case GSMTAP_TYPE_ABIS:
|
|
sub_handle = GSMTAP_SUB_ABIS;
|
|
break;
|
|
case GSMTAP_TYPE_GB_LLC:
|
|
sub_handle = GSMTAP_SUB_LLC;
|
|
break;
|
|
case GSMTAP_TYPE_GB_SNDCP:
|
|
sub_handle = GSMTAP_SUB_SNDCP;
|
|
break;
|
|
case GSMTAP_TYPE_TETRA_I1:
|
|
handle_tetra(tvb_get_guint8(tvb, offset+12), payload_tvb, pinfo, tree);
|
|
return tvb_captured_length(tvb);
|
|
case GSMTAP_TYPE_WMX_BURST:
|
|
switch (sub_type) {
|
|
case GSMTAP_BURST_CDMA_CODE:
|
|
sub_handle = GSMTAP_SUB_CDMA_CODE;
|
|
break;
|
|
case GSMTAP_BURST_FCH:
|
|
sub_handle = GSMTAP_SUB_FCH;
|
|
break;
|
|
case GSMTAP_BURST_FFB:
|
|
sub_handle = GSMTAP_SUB_FFB;
|
|
break;
|
|
case GSMTAP_BURST_PDU:
|
|
sub_handle = GSMTAP_SUB_PDU;
|
|
break;
|
|
case GSMTAP_BURST_HACK:
|
|
sub_handle = GSMTAP_SUB_HACK;
|
|
break;
|
|
case GSMTAP_BURST_PHY_ATTRIBUTES:
|
|
sub_handle = GSMTAP_SUB_PHY_ATTRIBUTES;
|
|
break;
|
|
default:
|
|
sub_handle = GSMTAP_SUB_DATA;
|
|
break;
|
|
}
|
|
break;
|
|
case GSMTAP_TYPE_GMR1_UM:
|
|
switch (sub_type) {
|
|
case GSMTAP_GMR1_BCCH:
|
|
sub_handle = GSMTAP_SUB_GMR1_BCCH;
|
|
break;
|
|
case GSMTAP_GMR1_CCCH:
|
|
case GSMTAP_GMR1_AGCH:
|
|
case GSMTAP_GMR1_PCH:
|
|
sub_handle = GSMTAP_SUB_GMR1_CCCH;
|
|
break;
|
|
case GSMTAP_GMR1_SDCCH:
|
|
case GSMTAP_GMR1_TCH3 | GSMTAP_GMR1_FACCH:
|
|
case GSMTAP_GMR1_TCH6 | GSMTAP_GMR1_FACCH:
|
|
case GSMTAP_GMR1_TCH9 | GSMTAP_GMR1_FACCH:
|
|
sub_handle = GSMTAP_SUB_GMR1_LAPSAT;
|
|
break;
|
|
case GSMTAP_GMR1_RACH:
|
|
sub_handle = GSMTAP_SUB_GMR1_RACH;
|
|
break;
|
|
default:
|
|
sub_handle = GSMTAP_SUB_DATA;
|
|
break;
|
|
}
|
|
break;
|
|
case GSMTAP_TYPE_UM_BURST:
|
|
default:
|
|
sub_handle = GSMTAP_SUB_DATA;
|
|
break;
|
|
}
|
|
if (sub_handle == GSMTAP_SUB_UMTS_RRC)
|
|
call_dissector(rrc_sub_handles[rrc_sub_handle], payload_tvb,
|
|
pinfo, tree);
|
|
else if (sub_handles[sub_handle] != NULL)
|
|
call_dissector(sub_handles[sub_handle], payload_tvb, pinfo, tree);
|
|
/* TODO: warn user that the WiMAX plugin must be enabled for some types */
|
|
return tvb_captured_length(tvb);
|
|
}
|
|
|
|
static const true_false_string sacch_l1h_fpc_mode_vals = {
|
|
"In use",
|
|
"Not in use"
|
|
};
|
|
|
|
void
|
|
proto_register_gsmtap(void)
|
|
{
|
|
static hf_register_info hf[] = {
|
|
{ &hf_gsmtap_version, { "Version", "gsmtap.version",
|
|
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_hdrlen, { "Header Length", "gsmtap.hdr_len",
|
|
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_type, { "Payload Type", "gsmtap.type",
|
|
FT_UINT8, BASE_DEC, VALS(gsmtap_types), 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_timeslot, { "Time Slot", "gsmtap.ts",
|
|
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_arfcn, { "ARFCN", "gsmtap.arfcn",
|
|
FT_UINT16, BASE_DEC, NULL, GSMTAP_ARFCN_MASK, NULL, HFILL } },
|
|
{ &hf_gsmtap_uplink, { "Uplink", "gsmtap.uplink",
|
|
FT_UINT16, BASE_DEC, NULL, GSMTAP_ARFCN_F_UPLINK, NULL, HFILL } },
|
|
{ &hf_gsmtap_signal_dbm, { "Signal Level (dBm)", "gsmtap.signal_dbm",
|
|
FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_snr_db, { "Signal/Noise Ratio (dB)", "gsmtap.snr_db",
|
|
FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_frame_nr, { "GSM Frame Number", "gsmtap.frame_nr",
|
|
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_burst_type, { "Burst Type", "gsmtap.burst_type",
|
|
FT_UINT8, BASE_DEC, VALS(gsmtap_bursts), 0, NULL, HFILL }},
|
|
{ &hf_gsmtap_channel_type, { "Channel Type", "gsmtap.chan_type",
|
|
FT_UINT8, BASE_DEC, VALS(gsmtap_channels), 0, NULL, HFILL }},
|
|
{ &hf_gsmtap_tetra_channel_type, { "Channel Type", "gsmtap.tetra_chan_type",
|
|
FT_UINT8, BASE_DEC, VALS(gsmtap_tetra_channels), 0, NULL, HFILL }},
|
|
{ &hf_gsmtap_gmr1_channel_type, { "Channel Type", "gsmtap.gmr1_chan_type",
|
|
FT_UINT8, BASE_DEC, VALS(gsmtap_gmr1_channels), 0, NULL, HFILL }},
|
|
{ &hf_gsmtap_antenna, { "Antenna Number", "gsmtap.antenna",
|
|
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
{ &hf_gsmtap_subslot, { "Sub-Slot", "gsmtap.sub_slot",
|
|
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_sacch_l1h_power_lev, { "MS power level", "gsmtap.sacch_l1.power_lev",
|
|
FT_UINT8, BASE_DEC, NULL, 0x1f, NULL, HFILL } },
|
|
{ &hf_sacch_l1h_fpc, { "FPC", "gsmtap.sacch_l1.fpc",
|
|
FT_BOOLEAN, 8, TFS(&sacch_l1h_fpc_mode_vals), 0x04,
|
|
NULL, HFILL } },
|
|
{ &hf_sacch_l1h_ta, { "Actual Timing Advance", "gsmtap.sacch_l1.ta",
|
|
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
};
|
|
static gint *ett[] = {
|
|
&ett_gsmtap
|
|
};
|
|
|
|
proto_gsmtap = proto_register_protocol("GSM Radiotap", "GSMTAP", "gsmtap");
|
|
proto_register_field_array(proto_gsmtap, hf, array_length(hf));
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
gsmtap_dissector_table = register_dissector_table("gsmtap.type",
|
|
"GSMTAP type", proto_gsmtap, FT_UINT8, BASE_HEX, DISSECTOR_TABLE_NOT_ALLOW_DUPLICATE);
|
|
}
|
|
|
|
void
|
|
proto_reg_handoff_gsmtap(void)
|
|
{
|
|
dissector_handle_t gsmtap_handle;
|
|
|
|
/* TODO: some dissectors may be NULL if not loaded */
|
|
sub_handles[GSMTAP_SUB_DATA] = find_dissector("data");
|
|
sub_handles[GSMTAP_SUB_UM] = find_dissector_add_dependency("gsm_a_ccch", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_UM_LAPDM] = find_dissector_add_dependency("lapdm", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_UM_RLC_MAC_UL] = find_dissector_add_dependency("gsm_rlcmac_ul", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_UM_RLC_MAC_DL] = find_dissector_add_dependency("gsm_rlcmac_dl", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_LLC] = find_dissector_add_dependency("llcgprs", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_SNDCP] = find_dissector_add_dependency("sndcp", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_ABIS] = find_dissector_add_dependency("gsm_a_dtap", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_CDMA_CODE] = find_dissector_add_dependency("wimax_cdma_code_burst_handler", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_FCH] = find_dissector_add_dependency("wimax_fch_burst_handler", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_FFB] = find_dissector_add_dependency("wimax_ffb_burst_handler", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_PDU] = find_dissector_add_dependency("wimax_pdu_burst_handler", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_HACK] = find_dissector_add_dependency("wimax_hack_burst_handler", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_PHY_ATTRIBUTES] = find_dissector_add_dependency("wimax_phy_attributes_burst_handler", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_CBCH] = find_dissector_add_dependency("gsm_cbch", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_GMR1_BCCH] = find_dissector_add_dependency("gmr1_bcch", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_GMR1_CCCH] = find_dissector_add_dependency("gmr1_ccch", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_GMR1_LAPSAT] = find_dissector_add_dependency("lapsat", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_GMR1_RACH] = find_dissector_add_dependency("gmr1_rach", proto_gsmtap);
|
|
sub_handles[GSMTAP_SUB_UMTS_RRC] = find_dissector_add_dependency("rrc", proto_gsmtap);
|
|
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_DL_DCCH_Message] = find_dissector_add_dependency("rrc.dl.dcch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_UL_DCCH_Message] = find_dissector_add_dependency("rrc.ul.dcch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_DL_CCCH_Message] = find_dissector_add_dependency("rrc.dl.ccch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_UL_CCCH_Message] = find_dissector_add_dependency("rrc.ul.ccch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_PCCH_Message] = find_dissector_add_dependency("rrc.pcch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_DL_SHCCH_Message] = find_dissector_add_dependency("rrc.dl.shcch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_UL_SHCCH_Message] = find_dissector_add_dependency("rrc.ul.shcch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_BCCH_FACH_Message] = find_dissector_add_dependency("rrc.bcch.fach", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_BCCH_BCH_Message] = find_dissector_add_dependency("rrc.bcch.bch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_MCCH_Message] = find_dissector_add_dependency("rrc.mcch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_MSCH_Message] = find_dissector_add_dependency("rrc.msch", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_HandoverToUTRANCommand] = find_dissector_add_dependency("rrc.irat.ho_to_utran_cmd", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_InterRATHandoverInfo] = find_dissector_add_dependency("rrc.irat.irat_ho_info", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SystemInformation_BCH] = find_dissector_add_dependency("rrc.sysinfo", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_System_Information_Container] = find_dissector_add_dependency("rrc.sysinfo.cont", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_UE_RadioAccessCapabilityInfo] = find_dissector_add_dependency("rrc.ue_radio_access_cap_info", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_MasterInformationBlock] = find_dissector_add_dependency("rrc.si.mib", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType1] = find_dissector_add_dependency("rrc.si.sib1", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType2] = find_dissector_add_dependency("rrc.si.sib2", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType3] = find_dissector_add_dependency("rrc.si.sib3", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType4] = find_dissector_add_dependency("rrc.si.sib4", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType5] = find_dissector_add_dependency("rrc.si.sib5", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType5bis] = find_dissector_add_dependency("rrc.si.sib5bis", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType6] = find_dissector_add_dependency("rrc.si.sib6", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType7] = find_dissector_add_dependency("rrc.si.sib7", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType8] = find_dissector_add_dependency("rrc.si.sib8", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType9] = find_dissector_add_dependency("rrc.si.sib9", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType10] = find_dissector_add_dependency("rrc.si.sib10", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType11] = find_dissector_add_dependency("rrc.si.sib11", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType11bis] = find_dissector_add_dependency("rrc.si.sib11bis", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType12] = find_dissector_add_dependency("rrc.si.sib12", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType13] = find_dissector_add_dependency("rrc.si.sib13", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType13_1] = find_dissector_add_dependency("rrc.si.sib13-1", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType13_2] = find_dissector_add_dependency("rrc.si.sib13-2", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType13_3] = find_dissector_add_dependency("rrc.si.sib13-3", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType13_4] = find_dissector_add_dependency("rrc.si.sib13-4", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType14] = find_dissector_add_dependency("rrc.si.sib14", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15] = find_dissector_add_dependency("rrc.si.sib15", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15bis] = find_dissector_add_dependency("rrc.si.sib15bis", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_1] = find_dissector_add_dependency("rrc.si.sib15-1", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_1bis] = find_dissector_add_dependency("rrc.si.sib15-1bis", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_2] = find_dissector_add_dependency("rrc.si.sib15-2", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_2bis] = find_dissector_add_dependency("rrc.si.sib15-2bis", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_2ter] = find_dissector_add_dependency("rrc.si.sib15-2ter", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_3] = find_dissector_add_dependency("rrc.si.sib15-3", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_3bis] = find_dissector_add_dependency("rrc.si.sib15-3bis", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_4] = find_dissector_add_dependency("rrc.si.sib15-4", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_5] = find_dissector_add_dependency("rrc.si.sib15-5", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_6] = find_dissector_add_dependency("rrc.si.sib15-6", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_7] = find_dissector_add_dependency("rrc.si.sib15-7", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType15_8] = find_dissector_add_dependency("rrc.si.sib15-8", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType16] = find_dissector_add_dependency("rrc.si.sib16", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType17] = find_dissector_add_dependency("rrc.si.sib17", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType18] = find_dissector_add_dependency("rrc.si.sib18", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType19] = find_dissector_add_dependency("rrc.si.sib19", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType20] = find_dissector_add_dependency("rrc.si.sib20", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType21] = find_dissector_add_dependency("rrc.si.sib21", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoType22] = find_dissector_add_dependency("rrc.si.sib22", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoTypeSB1] = find_dissector_add_dependency("rrc.si.sb1", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_SysInfoTypeSB2] = find_dissector_add_dependency("rrc.si.sb2", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_ToTargetRNC_Container] = find_dissector_add_dependency("rrc.s_to_trnc_cont", proto_gsmtap);
|
|
rrc_sub_handles[GSMTAP_RRC_SUB_TargetRNC_ToSourceRNC_Container] = find_dissector_add_dependency("rrc.t_to_srnc_cont", proto_gsmtap);
|
|
|
|
gsmtap_handle = create_dissector_handle(dissect_gsmtap, proto_gsmtap);
|
|
dissector_add_uint("udp.port", GSMTAP_UDP_PORT, gsmtap_handle);
|
|
}
|
|
|
|
/*
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
*
|
|
* Local variables:
|
|
* c-basic-offset: 8
|
|
* tab-width: 8
|
|
* indent-tabs-mode: t
|
|
* End:
|
|
*
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
*/
|