MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-umts_mac.h
blobe6dd4f70bf53528b91dc06b4216fd6fe25a2fa16
1 /* Routines for UMTS FP disassembly
3 * $Id$
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 {
44 MAC_CONTENT_UNKNOWN,
45 MAC_CONTENT_DCCH,
46 MAC_CONTENT_PS_DTCH,
47 MAC_CONTENT_CS_DTCH,
48 MAC_CONTENT_CCCH
51 /* Used for mapping id to string names*/
52 #define MAC_PCCH 0
53 #define MAC_CCCH 1
54 #define MAC_CTCH 2
55 #define MAC_DCCH 3
56 #define MAC_DTCH 4
57 #define MAC_BCCH 5
58 #define MAC_MCCH 6
59 #define MAC_MSCH 7
60 #define MAC_MTCH 8
61 #define MAC_N_A 9
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*/
74 } umts_mac_info;
76 typedef struct
78 guint number_of_mac_is_sdus;
79 guint8 lchid[MAX_MAC_FRAMES];
80 gint sdulength[MAX_MAC_FRAMES];
81 } umts_mac_is_info;
83 enum enum_mac_tsn_size {
84 MAC_TSN_6BITS,
85 MAC_TSN_14BITS
87 gint get_mac_tsn_size(void);
89 #endif