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