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