Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-umts_mac.h
1 /* packet-umts_mac.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef PACKET_UMTS_MAC_H
11 #define PACKET_UMTS_MAC_H
12 
13 /* Target Channel Type Field (TCTF) values */
14 #define TCTF_CCCH_RACH_FDD 0x0
15 #define TCTF_DCCH_DTCH_RACH_FDD 0x1
16 
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
24 
25 /* UeID Type values */
26 #define MAC_UEID_TYPE_URNTI 0x0
27 #define MAC_UEID_TYPE_CRNTI 0x1
28 
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
35 };
36 
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
48 
49 #define MAX_MAC_FRAMES 64
50 typedef struct umts_mac_info
51 {
52  gboolean ctmux[MAX_MAC_FRAMES];
53  guint8 content[MAX_MAC_FRAMES];
54  guint8 lchid[MAX_MAC_FRAMES]; /*Makes displaying logical channel a lot easier*/
55  guint8 macdflow_id[MAX_MAC_FRAMES]; /*Makes displaying logical channel a lot easier*/
56 
57  gboolean fake_chid[MAX_MAC_FRAMES]; /*Indicate if the child ID is faked or not*/
58  guint pdu_len; /*Length of MAC PDU, same for all PDUs in one FP frame*/
59  guint8 trchid[MAX_MAC_FRAMES]; /*Makes displaying logical channel a lot easier*/
61 
62 typedef struct
63 {
64  guint number_of_mac_is_sdus;
65  guint8 lchid[MAX_MAC_FRAMES];
66  gint sdulength[MAX_MAC_FRAMES];
68 
69 enum enum_mac_tsn_size {
70  MAC_TSN_6BITS,
71  MAC_TSN_14BITS
72 };
73 gint get_mac_tsn_size(void);
74 
75 #endif
Definition: packet-umts_mac.h:51
Definition: packet-umts_mac.h:63