Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-umts_mac.h
blob2cb81fe3b346628a814e2c6a1e9d2667534344d1
1 /* packet-umts_mac.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef PACKET_UMTS_MAC_H
11 #define PACKET_UMTS_MAC_H
13 /* Target Channel Type Field (TCTF) values */
14 #define TCTF_CCCH_RACH_FDD 0x0
15 #define TCTF_DCCH_DTCH_RACH_FDD 0x1
17 #define TCTF_BCCH_FACH_FDD 0x0
18 #define TCTF_DCCH_DTCH_FACH_FDD 0x3
19 #define TCTF_MTCH_FACH_FDD 0x6
20 #define TCTF_CCCH_FACH_FDD 0x40
21 #define TCTF_MCCH_FACH_FDD 0x50
22 #define TCTF_MSCH_FACH_FDD 0x5f
23 #define TCTF_CTCH_FACH_FDD 0x80
25 /* UeID Type values */
26 #define MAC_UEID_TYPE_URNTI 0x0
27 #define MAC_UEID_TYPE_CRNTI 0x1
29 enum mac_content_type {
30 MAC_CONTENT_UNKNOWN,
31 MAC_CONTENT_DCCH,
32 MAC_CONTENT_PS_DTCH,
33 MAC_CONTENT_CS_DTCH,
34 MAC_CONTENT_CCCH
37 /* Used for mapping id to string names*/
38 #define MAC_PCCH 0
39 #define MAC_CCCH 1
40 #define MAC_CTCH 2
41 #define MAC_DCCH 3
42 #define MAC_DTCH 4
43 #define MAC_BCCH 5
44 #define MAC_MCCH 6
45 #define MAC_MSCH 7
46 #define MAC_MTCH 8
47 #define MAC_N_A 9
49 #define MAX_MAC_FRAMES 64
50 typedef struct umts_mac_info
52 bool ctmux[MAX_MAC_FRAMES];
53 uint8_t content[MAX_MAC_FRAMES];
54 uint8_t lchid[MAX_MAC_FRAMES]; /*Makes displaying logical channel a lot easier*/
55 uint8_t macdflow_id[MAX_MAC_FRAMES]; /*Makes displaying logical channel a lot easier*/
57 bool fake_chid[MAX_MAC_FRAMES]; /*Indicate if the child ID is faked or not*/
58 unsigned pdu_len; /*Length of MAC PDU, same for all PDUs in one FP frame*/
59 uint8_t trchid[MAX_MAC_FRAMES]; /*Makes displaying logical channel a lot easier*/
60 } umts_mac_info;
62 typedef struct
64 unsigned number_of_mac_is_sdus;
65 uint8_t lchid[MAX_MAC_FRAMES];
66 int sdulength[MAX_MAC_FRAMES];
67 } umts_mac_is_info;
69 enum enum_mac_tsn_size {
70 MAC_TSN_6BITS,
71 MAC_TSN_14BITS
73 int get_mac_tsn_size(void);
75 #endif