HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / asn1 / nbap / packet-nbap-template.h
bloba1173170e2ea4eca856302d597798df239083121
1 /* packet-nbap-template.h
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_NBAP_H
25 #define PACKET_NBAP_H
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*/
43 RLC_AM,
44 RLC_AM,
45 RLC_AM,
46 RLC_TM, /*5 to 7 Conv CS Speech*/
47 RLC_TM,
48 RLC_TM, /*...*/
49 RLC_AM,
50 RLC_AM,
51 RLC_AM,
52 RLC_AM,
53 RLC_AM,
54 RLC_AM,
55 RLC_AM,
56 RLC_AM, /* This is CCCH which is UM?, probably not */
59 /* 1 to 8*/
60 static const guint8 hsdsch_macdflow_id_rlc_map[] = {
61 RLC_UM, /*1 SRB */
62 RLC_AM, /*2 Interactive PS*/
63 RLC_AM, /*3 Interatcive PS*/
64 RLC_UNKNOWN_MODE, /*4 ???*/
65 RLC_AM, /*5 Streaming PS*/
66 RLC_UNKNOWN_MODE,
67 RLC_UNKNOWN_MODE
70 /* Mapping hsdsch MACd-FlowId to MAC_CONTENT, basically flowid = 1 (0) => SRB*/
71 /* 1 to 8*/
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*/
78 RLC_UNKNOWN_MODE,
79 RLC_UNKNOWN_MODE,
80 RLC_UNKNOWN_MODE
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*/
88 {2,"DCCH"},
89 {3,"DCCH"},
90 {4,"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*/
96 {13,"DTCH"},
97 {14,"DTCH"}, /*14 Interatictive PS => DTCH*/
98 {15,"MAC_CONTENT_UNKNOWN"},
99 {0, NULL} /* This is CCCH? */
101 #endif