1 /* Routines for UMTS FP disassembly
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef PACKET_UMTS_MAC_H
25 #define PACKET_UMTS_MAC_H
27 /* Target Channel Type Field (TCTF) values */
28 #define TCTF_CCCH_RACH_FDD 0x0
29 #define TCTF_DCCH_DTCH_RACH_FDD 0x1
31 #define TCTF_BCCH_FACH_FDD 0x0
32 #define TCTF_DCCH_DTCH_FACH_FDD 0x3
33 #define TCTF_MTCH_FACH_FDD 0x6
34 #define TCTF_CCCH_FACH_FDD 0x40
35 #define TCTF_MCCH_FACH_FDD 0x50
36 #define TCTF_MSCH_FACH_FDD 0x5f
37 #define TCTF_CTCH_FACH_FDD 0x80
39 /* UeID Type values */
40 #define MAC_UEID_TYPE_URNTI 0x0
41 #define MAC_UEID_TYPE_CRNTI 0x1
43 enum mac_content_type
{
51 /* Used for mapping id to string names*/
63 #define MAX_MAC_FRAMES 64
64 typedef struct umts_mac_info
66 gboolean ctmux
[MAX_MAC_FRAMES
];
67 guint8 content
[MAX_MAC_FRAMES
];
68 guint8 lchid
[MAX_MAC_FRAMES
]; /*Makes displaying logical channel a lot easier*/
69 guint8 macdflow_id
[MAX_MAC_FRAMES
]; /*Makes displaying logical channel a lot easier*/
71 gboolean fake_chid
[MAX_MAC_FRAMES
]; /*Indicate if the child ID is faked or not*/
72 guint pdu_len
; /*Length of MAC PDU, same for all PDUs in one FP frame*/
73 guint8 trchid
[MAX_MAC_FRAMES
]; /*Makes displaying logical channel a lot easier*/
78 guint number_of_mac_is_sdus
;
79 guint8 lchid
[MAX_MAC_FRAMES
];
80 gint sdulength
[MAX_MAC_FRAMES
];
83 enum enum_mac_tsn_size
{
87 gint
get_mac_tsn_size(void);