Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-mac-3gpp-common.h
1 /* packet-mac-common.h
2  *
3  * Common tap definitions for LTE and NR MAC protocols
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  *
11  */
12 
13 #include "ws_symbol_export.h"
14 
15 
16  /* For LTE, mapped to 0 to 10 and 32 to 38 */
17 #define MAC_3GPP_DATA_LCID_COUNT_MAX 33
18 
19 #define MAC_RAT_LTE 0
20 #define MAC_RAT_NR 1
21 
22 typedef struct mac_3gpp_tap_info {
23  /* version */
24  uint8_t rat;
25 
26  /* Info from context */
27  guint16 rnti;
28  guint16 ueid;
29  guint8 rntiType;
30  guint8 isPredefinedData;
31  gboolean crcStatusValid;
32  int crcStatus; // mac_lte_crc_status
33  guint8 direction;
34 
35  guint8 isPHYRetx;
36  guint16 ueInTTI;
37  nstime_t mac_time;
38 
39  /* Number of bytes (which part is used depends upon context settings) */
40  guint32 single_number_of_bytes;
41  guint32 bytes_for_lcid[MAC_3GPP_DATA_LCID_COUNT_MAX];
42  guint32 sdus_for_lcid[MAC_3GPP_DATA_LCID_COUNT_MAX];
43  guint8 number_of_rars;
44  guint8 number_of_paging_ids;
45 
46  /* Number of padding bytes includes padding subheaders and trailing padding */
47  guint16 padding_bytes;
48  guint16 raw_length;
50 
51 /*
52  * Editor modelines - https://www.wireshark.org/tools/modelines.html
53  *
54  * Local variables:
55  * c-basic-offset: 4
56  * tab-width: 8
57  * indent-tabs-mode: nil
58  * End:
59  *
60  * vi: set shiftwidth=4 tabstop=8 expandtab:
61  * :indentSize=4:tabSize=8:noTabs=true:
62  */
Definition: packet-mac-3gpp-common.h:22
Definition: nstime.h:26