Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
packet-oran.h
1/* packet-oran.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/* Section types from Table 7.3.1-1 */
11enum section_c_types {
12 SEC_C_UNUSED_RB = 0,
13 SEC_C_NORMAL = 1,
14 SEC_C_RSVD2 = 2,
15 SEC_C_PRACH = 3,
16 SEC_C_SLOT_CONTROL = 4,
17 SEC_C_UE_SCHED = 5,
18 SEC_C_CH_INFO = 6,
19 SEC_C_LAA = 7,
20 SEC_C_ACK_NACK_FEEDBACK = 8,
21 SEC_C_SINR_REPORTING = 9,
22 SEC_C_RRM_MEAS_REPORTS = 10,
23 SEC_C_REQUEST_RRM_MEAS = 11,
24 SEC_C_MAX_INDEX
25};
26
27#define HIGHEST_EXTTYPE 28
28
29#define MAX_SECTION_IDs 32 /* i.e. how many may be reported from one frame */
30
31typedef struct oran_tap_info {
32 /* Key info */
33 bool userplane;
34 uint16_t eaxc;
35 bool uplink;
36 /* TODO: Timing info */
37 uint8_t slot;
38 /* Missing SNs */
39 uint32_t missing_sns;
40 /* TODO: repeated SNs? */
41 /* Accumulated state */
42 uint32_t pdu_size;
43 bool section_types[SEC_C_MAX_INDEX];
44 uint16_t section_ids[MAX_SECTION_IDs+1];
45 uint8_t num_section_ids;
46 bool extensions[HIGHEST_EXTTYPE+1]; /* wasting first entry */
47
48 /* U-Plane stats */
49 uint32_t num_prbs;
50 uint32_t num_res;
51 bool non_zero_re_in_current_prb;
52 uint32_t num_prbs_zero;
53 uint32_t num_res_zero;
54
55
56 /* TODO: compression/bitwidth, mu/scs, slots, Section IDs, beams? */
57 /* N.B. bitwidth, method, but each section could potentially have different udcompHdr.. */
59
60/*
61 * Editor modelines - https://www.wireshark.org/tools/modelines.html
62 *
63 * Local variables:
64 * c-basic-offset: 4
65 * tab-width: 8
66 * indent-tabs-mode: nil
67 * End:
68 *
69 * vi: set shiftwidth=4 tabstop=8 expandtab:
70 * :indentSize=4:tabSize=8:noTabs=true:
71 */
Definition packet-oran.h:31