Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-oran.h
1/* packet-oran.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <[email protected]>
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_SRS_DESCRIPTION = 12,
25 SEC_C_RRM_MEAS_REPORTS_NON_TIMING = 13,
26 SEC_C_CO_SCHEDULING_INFO = 14,
27 SEC_C_MAX_INDEX /* used to size array below */
28};
29
30#define HIGHEST_EXTTYPE 35 /* Highest supported exttype */
31#define MAX_SECTION_IDs 32 /* i.e. how many may be reported from one frame */
32#define MAX_BEAMS_IN_FRAME 32
33
34/* 8.3.3.15 Compression schemes */
35#define COMP_NONE 0
36#define COMP_BLOCK_FP 1
37#define COMP_BLOCK_SCALE 2
38#define COMP_U_LAW 3
39#define COMP_MODULATION 4
40#define BFP_AND_SELECTIVE_RE 5
41#define MOD_COMPR_AND_SELECTIVE_RE 6
42#define BFP_AND_SELECTIVE_RE_WITH_MASKS 7
43#define MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS 8
44
45
46typedef struct oran_tap_info {
47 /* Key info */
48 bool userplane;
49
50 uint16_t eaxc;
51 /* Breakdown according to preference settings */
52 uint16_t eaxc_du_port_id;
53 uint16_t eaxc_bandsector_id;
54 uint16_t eaxc_cc_id;
55 uint16_t eaxc_ru_port_id;
56
57 bool uplink;
58 /* Timing info */
59 uint8_t frame;
60 uint8_t slot;
61 /* Missing SNs */
62 uint32_t missing_sns;
63 /* TODO: repeated SNs? */
64 /* Accumulated state */
65 uint32_t pdu_size;
66 bool section_types[SEC_C_MAX_INDEX];
67 uint16_t section_ids[MAX_SECTION_IDs+1];
68 uint8_t num_section_ids;
69 bool extensions[HIGHEST_EXTTYPE+1]; /* wasting first entry */
70
71 /* U-Plane stats */
72 uint32_t num_prbs;
73 uint32_t num_res;
74 bool non_zero_re_in_current_prb;
75 uint32_t num_prbs_zero;
76 uint32_t num_res_zero;
77
78 uint32_t ul_delay_in_us;
79 uint32_t ul_delay_configured_max;
80 /* TODO: compression/bitwidth, beams? */
81 /* N.B. bitwidth, method, but each section could potentially have different udcompHdr.. */
82
83 uint32_t compression_methods;
84 uint32_t compression_width; /* TODO: support multiple widths? */
85
86 /* BeamIds */
87 uint8_t num_beams;
88 uint16_t beams[MAX_BEAMS_IN_FRAME];
89
91
92/*
93 * Editor modelines - https://www.wireshark.org/tools/modelines.html
94 *
95 * Local variables:
96 * c-basic-offset: 4
97 * tab-width: 8
98 * indent-tabs-mode: nil
99 * End:
100 *
101 * vi: set shiftwidth=4 tabstop=8 expandtab:
102 * :indentSize=4:tabSize=8:noTabs=true:
103 */
Definition packet-oran.h:46