1 /* packet-nbap-template.h
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.
27 #include "packet-rlc.h"
28 #include "packet-umts_mac.h"
31 * Ericsson specific mapping for various dissector settings.
32 * Must be altered for other equipment.
35 /*Array are indexed on logical channel id, meaning they need to be defined for 1-15*/
36 /* Mapping from logical channel id to MAC content type ie. DCCH or DTCH*/
37 extern guint8 lchId_type_table
[];
39 /* Mapping logicalchannel id to RLC_MODE */
40 static const guint8 lchId_rlc_map
[] = {
42 RLC_UM
, /* Logical channel id = 1 is SRB1 which uses RLC_UM*/
46 RLC_TM
, /*5 to 7 Conv CS Speech*/
56 RLC_AM
, /* This is CCCH which is UM?, probably not */
60 static const guint8 hsdsch_macdflow_id_rlc_map
[] = {
62 RLC_AM
, /*2 Interactive PS*/
63 RLC_AM
, /*3 Interatcive PS*/
64 RLC_UNKNOWN_MODE
, /*4 ???*/
65 RLC_AM
, /*5 Streaming PS*/
70 /* Mapping hsdsch MACd-FlowId to MAC_CONTENT, basically flowid = 1 (0) => SRB*/
72 static const guint8 hsdsch_macdflow_id_mac_content_map
[] = {
73 MAC_CONTENT_DCCH
, /*1 SRB */
74 MAC_CONTENT_PS_DTCH
, /*2 Interactive PS*/
75 MAC_CONTENT_PS_DTCH
, /*3 Interatcive PS*/
76 RLC_UNKNOWN_MODE
, /*4 ???*/
77 MAC_CONTENT_PS_DTCH
, /*5 Streaming PS*/
83 /* Make fake logical channel id's based on MACdFlow-ID's*/
84 static const guint8 fake_lchid_macd_flow
[] = {1,9,14,11,0,12};
86 static const value_string lchid_name_resolve
[] = {
87 {1,"DCCH"}, /* 1 to 4 SRB => DCCH*/
91 {8,"DCCH"}, /* 8 SRB => DCCH*/
92 {9,"DTCH"}, /*9 maps to DTCH*/
93 {10,"UNKNOWN"}, /*10 Conv CS unknown*/
94 {11,"DTCH"}, /*11 Interactive PS => DTCH*/
95 {12,"DTCH"}, /*12 13 Streaming PS => DTCH*/
97 {14,"DTCH"}, /*14 Interatictive PS => DTCH*/
98 {15,"MAC_CONTENT_UNKNOWN"},
99 {0, NULL
} /* This is CCCH? */