HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-nbap.h
blob1d727ef1e1dd99528d9b8d318f9939aeef0ef3f9
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-nbap.h */
4 /* ../../tools/asn2wrs.py -p nbap -c ./nbap.cnf -s ./packet-nbap-template -D . -O ../../epan/dissectors NBAP-CommonDataTypes.asn NBAP-Constants.asn NBAP-Containers.asn NBAP-IEs.asn NBAP-PDU-Contents.asn NBAP-PDU-Descriptions.asn */
6 /* Input file: packet-nbap-template.h */
8 #line 1 "../../asn1/nbap/packet-nbap-template.h"
9 /* packet-nbap-template.h
11 * $Id$
13 * Wireshark - Network traffic analyzer
14 * By Gerald Combs <gerald@wireshark.org>
15 * Copyright 1998 Gerald Combs
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License
19 * as published by the Free Software Foundation; either version 2
20 * of the License, or (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
32 #ifndef PACKET_NBAP_H
33 #define PACKET_NBAP_H
35 #include "packet-rlc.h"
36 #include "packet-umts_mac.h"
39 * Ericsson specific mapping for various dissector settings.
40 * Must be altered for other equipment.
43 /*Array are indexed on logical channel id, meaning they need to be defined for 1-15*/
44 /* Mapping from logical channel id to MAC content type ie. DCCH or DTCH*/
45 extern guint8 lchId_type_table[];
47 /* Mapping logicalchannel id to RLC_MODE */
48 static const guint8 lchId_rlc_map[] = {
50 RLC_UM, /* Logical channel id = 1 is SRB1 which uses RLC_UM*/
51 RLC_AM,
52 RLC_AM,
53 RLC_AM,
54 RLC_TM, /*5 to 7 Conv CS Speech*/
55 RLC_TM,
56 RLC_TM, /*...*/
57 RLC_AM,
58 RLC_AM,
59 RLC_AM,
60 RLC_AM,
61 RLC_AM,
62 RLC_AM,
63 RLC_AM,
64 RLC_AM, /* This is CCCH which is UM?, probably not */
67 /* 1 to 8*/
68 static const guint8 hsdsch_macdflow_id_rlc_map[] = {
69 RLC_UM, /*1 SRB */
70 RLC_AM, /*2 Interactive PS*/
71 RLC_AM, /*3 Interatcive PS*/
72 RLC_UNKNOWN_MODE, /*4 ???*/
73 RLC_AM, /*5 Streaming PS*/
74 RLC_UNKNOWN_MODE,
75 RLC_UNKNOWN_MODE
78 /* Mapping hsdsch MACd-FlowId to MAC_CONTENT, basically flowid = 1 (0) => SRB*/
79 /* 1 to 8*/
80 static const guint8 hsdsch_macdflow_id_mac_content_map[] = {
81 MAC_CONTENT_DCCH, /*1 SRB */
82 MAC_CONTENT_PS_DTCH, /*2 Interactive PS*/
83 MAC_CONTENT_PS_DTCH, /*3 Interatcive PS*/
84 RLC_UNKNOWN_MODE, /*4 ???*/
85 MAC_CONTENT_PS_DTCH, /*5 Streaming PS*/
86 RLC_UNKNOWN_MODE,
87 RLC_UNKNOWN_MODE,
88 RLC_UNKNOWN_MODE
91 /* Make fake logical channel id's based on MACdFlow-ID's*/
92 static const guint8 fake_lchid_macd_flow[] = {1,9,14,11,0,12};
94 static const value_string lchid_name_resolve[] = {
95 {1,"DCCH"}, /* 1 to 4 SRB => DCCH*/
96 {2,"DCCH"},
97 {3,"DCCH"},
98 {4,"DCCH"},
99 {8,"DCCH"}, /* 8 SRB => DCCH*/
100 {9,"DTCH"}, /*9 maps to DTCH*/
101 {10,"UNKNOWN"}, /*10 Conv CS unknown*/
102 {11,"DTCH"}, /*11 Interactive PS => DTCH*/
103 {12,"DTCH"}, /*12 13 Streaming PS => DTCH*/
104 {13,"DTCH"},
105 {14,"DTCH"}, /*14 Interatictive PS => DTCH*/
106 {15,"MAC_CONTENT_UNKNOWN"},
107 {0, NULL} /* This is CCCH? */
109 #endif