epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / asn1 / rrc / packet-rrc-template.h
blob68be7373e814b0b3dd0da52a9d26261f4fac2405
1 /* packet-rrc-template.h
2 * Copyright 2009, Anders Broman <anders.broman@ericsson.com>
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef PACKET_RRC_H
12 #define PACKET_RRC_H
14 #include <epan/asn1.h> /* Needed for non asn1 dissectors?*/
16 extern int proto_rrc;
17 #include "packet-rrc-exp.h"
19 enum rrc_message_type {
20 RRC_MESSAGE_TYPE_INVALID = 0,
21 RRC_MESSAGE_TYPE_PCCH = 1,
22 RRC_MESSAGE_TYPE_UL_CCCH,
23 RRC_MESSAGE_TYPE_DL_CCCH,
24 RRC_MESSAGE_TYPE_UL_DCCH,
25 RRC_MESSAGE_TYPE_DL_DCCH,
26 RRC_MESSAGE_TYPE_BCCH_FACH
29 enum nas_sys_info_gsm_map {
30 RRC_NAS_SYS_UNKNOWN = 0,
31 RRC_NAS_SYS_INFO_CS,
32 RRC_NAS_SYS_INFO_PS,
33 RRC_NAS_SYS_INFO_CN_COMMON
36 enum rrc_ue_state {
37 RRC_UE_STATE_UNKNOWN = 0,
38 RRC_UE_STATE_CELL_DCH,
39 RRC_UE_STATE_CELL_FACH,
40 RRC_UE_STATE_CELL_PCH,
41 RRC_UE_STATE_URA_PCH
44 #define MAX_RRC_FRAMES 64
45 typedef struct rrc_info
47 enum rrc_message_type msgtype[MAX_RRC_FRAMES];
48 uint16_t hrnti[MAX_RRC_FRAMES];
49 } rrc_info;
51 /*Struct for storing ciphering information*/
52 typedef struct rrc_ciphering_info
54 int seq_no[31][2]; /*Indicates for each Rbid when ciphering starts - Indexers are [BearerID][Direction]*/
55 GTree * /*uint32_t*/ start_cs; /*Start value for CS counter*/
56 GTree * /*uint32_t*/ start_ps; /*Start value for PS counter*/
57 int32_t ciphering_algorithm; /*Indicates which type of ciphering algorithm used*/
58 int32_t integrity_algorithm; /*Indicates which type of integrity algorithm used*/
59 uint32_t setup_frame[2]; /*Store which frame contained this information - Indexer is [Direction]*/
60 uint32_t ps_conf_counters[31][2]; /*This should also be made for CS*/
62 } rrc_ciphering_info;
64 extern GTree * hsdsch_muxed_flows;
65 extern GTree * rrc_ciph_info_tree;
66 extern wmem_tree_t* rrc_global_urnti_crnti_map;
68 #endif /* PACKET_RRC_H */