| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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 uint16_t rnti;
28 uint16_t ueid;
29 uint8_t rntiType;
30 uint8_t isPredefinedData;
31 bool crcStatusValid;
32 int crcStatus; // mac_lte_crc_status
33 uint8_t direction;
34
35 uint8_t isPHYRetx;
36 uint16_t ueInTTI;
37 nstime_t mac_time;
38
39 /* Number of bytes (which part is used depends upon context settings) */
40 uint32_t single_number_of_bytes;
41 uint32_t bytes_for_lcid[MAC_3GPP_DATA_LCID_COUNT_MAX];
42 uint32_t sdus_for_lcid[MAC_3GPP_DATA_LCID_COUNT_MAX];
43 uint8_t number_of_rars;
44 uint8_t number_of_paging_ids;
45
46 /* Number of padding bytes includes padding subheaders and trailing padding */
47 uint16_t padding_bytes;
48 uint16_t raw_length;
49} mac_3gpp_tap_info;
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 */
mac_3gpp_tap_info
Definition packet-mac-3gpp-common.h:22
nstime_t
Definition nstime.h:26