2006-09-04 11:04:14 +00:00
|
|
|
/* packet-fp.h
|
|
|
|
*
|
|
|
|
* Martin Mathieson
|
2006-09-14 17:21:28 +00:00
|
|
|
* $Id$
|
2006-09-04 11:04:14 +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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Channel types */
|
2008-05-11 01:09:30 +00:00
|
|
|
#define CHANNEL_RACH_FDD 1
|
|
|
|
#define CHANNEL_RACH_TDD 2
|
|
|
|
#define CHANNEL_FACH_FDD 3
|
|
|
|
#define CHANNEL_FACH_TDD 4
|
|
|
|
#define CHANNEL_DSCH_FDD 5
|
|
|
|
#define CHANNEL_DSCH_TDD 6
|
|
|
|
#define CHANNEL_USCH_TDD_384 8
|
|
|
|
#define CHANNEL_USCH_TDD_128 24
|
|
|
|
#define CHANNEL_PCH 9
|
|
|
|
#define CHANNEL_CPCH 10
|
|
|
|
#define CHANNEL_BCH 11
|
|
|
|
#define CHANNEL_DCH 12
|
|
|
|
#define CHANNEL_HSDSCH 13
|
|
|
|
#define CHANNEL_IUR_CPCHF 14
|
|
|
|
#define CHANNEL_IUR_FACH 15
|
|
|
|
#define CHANNEL_IUR_DSCH 16
|
|
|
|
#define CHANNEL_EDCH 17
|
2008-06-04 17:33:48 +00:00
|
|
|
#define CHANNEL_RACH_TDD_128 66
|
2006-09-04 11:04:14 +00:00
|
|
|
|
2007-02-14 15:41:43 +00:00
|
|
|
enum fp_interface_type
|
|
|
|
{
|
|
|
|
IuB_Interface,
|
|
|
|
IuR_Interface
|
|
|
|
};
|
|
|
|
|
2008-06-04 17:33:48 +00:00
|
|
|
enum division_type
|
|
|
|
{
|
|
|
|
Division_FDD=1,
|
|
|
|
Division_TDD_384=2,
|
|
|
|
Division_TDD_128=3,
|
|
|
|
Division_TDD_768=4
|
|
|
|
};
|
|
|
|
|
2008-05-20 10:08:28 +00:00
|
|
|
enum fp_hsdsch_entity
|
|
|
|
{
|
2008-05-25 23:12:56 +00:00
|
|
|
entity_not_specified=0,
|
2008-05-20 10:08:28 +00:00
|
|
|
hs=1,
|
|
|
|
ehs=2
|
|
|
|
};
|
|
|
|
|
2009-11-05 21:54:06 +00:00
|
|
|
enum fp_link_type
|
|
|
|
{
|
|
|
|
FP_Link_Unknown,
|
|
|
|
FP_Link_ATM,
|
|
|
|
FP_Link_Ethernet,
|
|
|
|
};
|
|
|
|
|
2006-09-04 11:04:14 +00:00
|
|
|
/* Info attached to each FP packet */
|
2007-02-14 15:41:43 +00:00
|
|
|
typedef struct fp_info
|
2006-09-04 11:04:14 +00:00
|
|
|
{
|
2007-02-14 22:03:39 +00:00
|
|
|
enum fp_interface_type iface_type;
|
2008-06-04 17:33:48 +00:00
|
|
|
enum division_type division;
|
|
|
|
guint8 release; /* e.g. 99, 4, 5, 6, 7 */
|
2007-02-14 15:41:43 +00:00
|
|
|
guint16 release_year; /* e.g. 2001 */
|
|
|
|
guint8 release_month; /* e.g. 12 for December */
|
2006-09-04 11:04:14 +00:00
|
|
|
gboolean is_uplink;
|
2007-02-14 15:41:43 +00:00
|
|
|
gint channel; /* see definitions above */
|
2007-05-08 17:13:14 +00:00
|
|
|
guint8 dch_crc_present; /* 0=No, 1=Yes, 2=Unknown */
|
2006-09-04 11:04:14 +00:00
|
|
|
gint paging_indications;
|
|
|
|
gint num_chans;
|
|
|
|
#define MAX_FP_CHANS 64
|
|
|
|
gint chan_tf_size[MAX_FP_CHANS];
|
|
|
|
gint chan_num_tbs[MAX_FP_CHANS];
|
|
|
|
|
2006-09-11 12:03:29 +00:00
|
|
|
#define MAX_EDCH_DDIS 16
|
|
|
|
gint no_ddi_entries;
|
|
|
|
guint8 edch_ddi[MAX_EDCH_DDIS];
|
|
|
|
guint edch_macd_pdu_size[MAX_EDCH_DDIS];
|
2008-05-20 10:08:28 +00:00
|
|
|
|
2009-11-05 21:54:06 +00:00
|
|
|
gint cur_tb; /* current transport block (required for dissecting of single TBs */
|
|
|
|
gint cur_chan; /* current channel, required to retrieve the correct channel configuration for UMTS MAC */
|
|
|
|
|
2009-11-29 12:05:23 +00:00
|
|
|
guint16 srcport, destport;
|
|
|
|
|
2008-05-20 10:08:28 +00:00
|
|
|
enum fp_hsdsch_entity hsdsch_entity;
|
2009-11-05 21:54:06 +00:00
|
|
|
enum fp_link_type link_type;
|
2007-02-14 15:41:43 +00:00
|
|
|
} fp_info;
|
2006-09-04 11:04:14 +00:00
|
|
|
|