Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-mac-3gpp-common.h
blobdcac5b218a3dec5beb9b4bec1c60e67589e5c8de
1 /* packet-mac-common.h
3 * Common tap definitions for LTE and NR MAC protocols
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "ws_symbol_export.h"
16 /* For LTE, mapped to 0 to 10 and 32 to 38 */
17 #define MAC_3GPP_DATA_LCID_COUNT_MAX 33
19 #define MAC_RAT_LTE 0
20 #define MAC_RAT_NR 1
22 typedef struct mac_3gpp_tap_info {
23 /* version */
24 uint8_t rat;
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;
35 uint8_t isPHYRetx;
36 uint16_t ueInTTI;
37 nstime_t mac_time;
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;
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;
52 * Editor modelines - https://www.wireshark.org/tools/modelines.html
54 * Local variables:
55 * c-basic-offset: 4
56 * tab-width: 8
57 * indent-tabs-mode: nil
58 * End:
60 * vi: set shiftwidth=4 tabstop=8 expandtab:
61 * :indentSize=4:tabSize=8:noTabs=true: