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