| File: | builds/wireshark/wireshark/epan/dissectors/packet-oran.c |
| Warning: | line 2849, column 5 Value stored to 'offset' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | /* packet-oran.c |
| 2 | * Routines for O-RAN fronthaul UC-plane dissection |
| 3 | * Copyright 2020, Jan Schiefer, Keysight Technologies, Inc. |
| 4 | * Copyright 2020- Martin Mathieson |
| 5 | * |
| 6 | * Wireshark - Network traffic analyzer |
| 7 | * By Gerald Combs <[email protected]> |
| 8 | * Copyright 1998 Gerald Combs |
| 9 | * |
| 10 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 11 | */ |
| 12 | |
| 13 | /* |
| 14 | * Dissector for the O-RAN Fronthaul CUS protocol specification. |
| 15 | * See https://specifications.o-ran.org/specifications, WG4, Fronthaul Interfaces Workgroup |
| 16 | * The current implementation is based on the ORAN-WG4.CUS.0-v21.00 specification. |
| 17 | * Note that other eCPRI message types are handled in packet-ecpri.c |
| 18 | */ |
| 19 | |
| 20 | #include <config.h> |
| 21 | #define _USE_MATH_DEFINES |
| 22 | #include <math.h> |
| 23 | |
| 24 | #include <epan/packet.h> |
| 25 | #include <epan/expert.h> |
| 26 | #include <epan/prefs.h> |
| 27 | #include <epan/tap.h> |
| 28 | #include <epan/tfs.h> |
| 29 | #include <epan/reassemble.h> |
| 30 | |
| 31 | #include <epan/unit_strings.h> |
| 32 | |
| 33 | #include <wsutil/ws_roundup.h> |
| 34 | #include <wsutil/ws_padding_to.h> |
| 35 | |
| 36 | #include "epan/dissectors/packet-oran.h" |
| 37 | |
| 38 | /* N.B. dissector preferences are taking the place of (some) M-plane parameters, |
| 39 | * so unfortunately it can be fiddly to get the preferences into a good state to |
| 40 | * decode a given capture.. |
| 41 | * TODO: |
| 42 | * - Detect/indicate signs of application layer fragmentation? |
| 43 | * same eAxC in same symbol (same/different section ID?) |
| 44 | * - Not handling M-plane setting for "little endian byte order" as applied to |
| 45 | * IQ samples and beam weights does anyone use this? |
| 46 | * - for section extensions, check more constraints (which other extension types |
| 47 | * appear with them, order, repeated) |
| 48 | * - re-order items (decl and hf definitions) to match spec order? |
| 49 | * - track energy-saving status, and identify TRX or ASM commands as 'Sleep extension' |
| 50 | * - when tracking between C-plane and U-plane, indicated in C-plane any missing sectionIds/PRBs/REs |
| 51 | */ |
| 52 | |
| 53 | /* Prototypes */ |
| 54 | void proto_register_oran(void); |
| 55 | |
| 56 | /* Initialize the protocol and registered fields */ |
| 57 | static int proto_oran; |
| 58 | |
| 59 | static int oran_tap = -1; |
| 60 | static int oran_bfws_tap = -1; |
| 61 | |
| 62 | static int hf_oran_du_port_id; |
| 63 | static int hf_oran_bandsector_id; |
| 64 | static int hf_oran_cc_id; |
| 65 | static int hf_oran_ru_port_id; |
| 66 | static int hf_oran_sequence_id; |
| 67 | static int hf_oran_e_bit; |
| 68 | static int hf_oran_subsequence_id; |
| 69 | static int hf_oran_previous_frame; |
| 70 | |
| 71 | static int hf_oran_data_direction; |
| 72 | static int hf_oran_payload_version; |
| 73 | static int hf_oran_filter_index; |
| 74 | static int hf_oran_frame_id; |
| 75 | static int hf_oran_subframe_id; |
| 76 | static int hf_oran_slot_id; |
| 77 | static int hf_oran_slot_within_frame; |
| 78 | static int hf_oran_start_symbol_id; |
| 79 | static int hf_oran_numberOfSections; |
| 80 | static int hf_oran_sectionType; |
| 81 | |
| 82 | static int hf_oran_udCompHdr; |
| 83 | static int hf_oran_udCompHdrIqWidth; |
| 84 | static int hf_oran_udCompHdrIqWidth_pref; |
| 85 | static int hf_oran_udCompHdrMeth; |
| 86 | static int hf_oran_udCompHdrMeth_pref; |
| 87 | static int hf_oran_udCompLen; |
| 88 | static int hf_oran_numberOfUEs; |
| 89 | static int hf_oran_timeOffset; |
| 90 | static int hf_oran_frameStructure_fft; |
| 91 | static int hf_oran_frameStructure_subcarrier_spacing; |
| 92 | static int hf_oran_cpLength; |
| 93 | static int hf_oran_timing_header; |
| 94 | static int hf_oran_section_id; |
| 95 | static int hf_oran_rb; |
| 96 | static int hf_oran_symInc; |
| 97 | static int hf_oran_startPrbc; |
| 98 | static int hf_oran_reMask_re1; |
| 99 | static int hf_oran_reMask_re2; |
| 100 | static int hf_oran_reMask_re3; |
| 101 | static int hf_oran_reMask_re4; |
| 102 | static int hf_oran_reMask_re5; |
| 103 | static int hf_oran_reMask_re6; |
| 104 | static int hf_oran_reMask_re7; |
| 105 | static int hf_oran_reMask_re8; |
| 106 | static int hf_oran_reMask_re9; |
| 107 | static int hf_oran_reMask_re10; |
| 108 | static int hf_oran_reMask_re11; |
| 109 | static int hf_oran_reMask_re12; |
| 110 | static int hf_oran_reMask; |
| 111 | static int hf_oran_numPrbc; |
| 112 | static int hf_oran_numSymbol; |
| 113 | static int hf_oran_ef; |
| 114 | static int hf_oran_beamId; |
| 115 | |
| 116 | static int hf_oran_sinrCompHdrIqWidth_pref; |
| 117 | static int hf_oran_sinrCompHdrMeth_pref; |
| 118 | |
| 119 | static int hf_oran_ciCompHdr; |
| 120 | static int hf_oran_ciCompHdrIqWidth; |
| 121 | static int hf_oran_ciCompHdrMeth; |
| 122 | static int hf_oran_ciCompOpt; |
| 123 | |
| 124 | static int hf_oran_extension; |
| 125 | static int hf_oran_exttype; |
| 126 | static int hf_oran_extlen; |
| 127 | |
| 128 | static int hf_oran_bfw_bundle; |
| 129 | static int hf_oran_bfw_bundle_id; |
| 130 | static int hf_oran_bfw; |
| 131 | static int hf_oran_bfw_i; |
| 132 | static int hf_oran_bfw_q; |
| 133 | |
| 134 | static int hf_oran_ueId; |
| 135 | static int hf_oran_freqOffset; |
| 136 | static int hf_oran_regularizationFactor; |
| 137 | static int hf_oran_laaMsgType; |
| 138 | static int hf_oran_laaMsgLen; |
| 139 | static int hf_oran_lbtHandle; |
| 140 | static int hf_oran_lbtDeferFactor; |
| 141 | static int hf_oran_lbtBackoffCounter; |
| 142 | static int hf_oran_lbtOffset; |
| 143 | static int hf_oran_MCOT; |
| 144 | static int hf_oran_lbtMode; |
| 145 | static int hf_oran_sfnSfEnd; |
| 146 | static int hf_oran_lbtPdschRes; |
| 147 | static int hf_oran_sfStatus; |
| 148 | static int hf_oran_initialPartialSF; |
| 149 | static int hf_oran_lbtDrsRes; |
| 150 | static int hf_oran_lbtBufErr; |
| 151 | static int hf_oran_lbtTrafficClass; |
| 152 | static int hf_oran_lbtCWConfig_H; |
| 153 | static int hf_oran_lbtCWConfig_T; |
| 154 | static int hf_oran_lbtCWR_Rst; |
| 155 | |
| 156 | static int hf_oran_reserved; |
| 157 | static int hf_oran_reserved_1bit; |
| 158 | static int hf_oran_reserved_2bits; |
| 159 | static int hf_oran_reserved_3bits; |
| 160 | static int hf_oran_reserved_4bits; |
| 161 | static int hf_oran_reserved_last_4bits; |
| 162 | static int hf_oran_reserved_last_5bits; |
| 163 | static int hf_oran_reserved_6bits; |
| 164 | static int hf_oran_reserved_last_6bits; |
| 165 | static int hf_oran_reserved_7bits; |
| 166 | static int hf_oran_reserved_last_7bits; |
| 167 | static int hf_oran_reserved_8bits; |
| 168 | static int hf_oran_reserved_16bits; |
| 169 | static int hf_oran_reserved_15bits; |
| 170 | static int hf_oran_reserved_bit1; |
| 171 | static int hf_oran_reserved_bit2; |
| 172 | static int hf_oran_reserved_bit3; |
| 173 | static int hf_oran_reserved_bit4; |
| 174 | static int hf_oran_reserved_bit5; |
| 175 | static int hf_oran_reserved_bits123; |
| 176 | static int hf_oran_reserved_bits1234; |
| 177 | static int hf_oran_reserved_bits456; |
| 178 | |
| 179 | static int hf_oran_bundle_offset; |
| 180 | static int hf_oran_cont_ind; |
| 181 | |
| 182 | static int hf_oran_bfwCompHdr; |
| 183 | static int hf_oran_bfwCompHdr_iqWidth; |
| 184 | static int hf_oran_bfwCompHdr_compMeth; |
| 185 | static int hf_oran_symbolId; |
| 186 | static int hf_oran_startPrbu; |
| 187 | static int hf_oran_numPrbu; |
| 188 | |
| 189 | static int hf_oran_udCompParam; |
| 190 | static int hf_oran_sReSMask; |
| 191 | static int hf_oran_sReSMask_re12; |
| 192 | static int hf_oran_sReSMask_re11; |
| 193 | static int hf_oran_sReSMask_re10; |
| 194 | static int hf_oran_sReSMask_re9; |
| 195 | static int hf_oran_sReSMask_re8; |
| 196 | static int hf_oran_sReSMask_re7; |
| 197 | static int hf_oran_sReSMask_re6; |
| 198 | static int hf_oran_sReSMask_re5; |
| 199 | static int hf_oran_sReSMask_re4; |
| 200 | static int hf_oran_sReSMask_re3; |
| 201 | static int hf_oran_sReSMask_re2; |
| 202 | static int hf_oran_sReSMask_re1; |
| 203 | |
| 204 | static int hf_oran_sReSMask1; |
| 205 | static int hf_oran_sReSMask2; |
| 206 | static int hf_oran_sReSMask1_2_re12; |
| 207 | static int hf_oran_sReSMask1_2_re11; |
| 208 | static int hf_oran_sReSMask1_2_re10; |
| 209 | static int hf_oran_sReSMask1_2_re9; |
| 210 | |
| 211 | static int hf_oran_bfwCompParam; |
| 212 | |
| 213 | static int hf_oran_iSample; |
| 214 | static int hf_oran_qSample; |
| 215 | |
| 216 | static int hf_oran_ciCompParam; |
| 217 | |
| 218 | static int hf_oran_blockScaler; |
| 219 | static int hf_oran_compBitWidth; |
| 220 | static int hf_oran_compShift; |
| 221 | |
| 222 | static int hf_oran_active_beamspace_coefficient_n1; |
| 223 | static int hf_oran_active_beamspace_coefficient_n2; |
| 224 | static int hf_oran_active_beamspace_coefficient_n3; |
| 225 | static int hf_oran_active_beamspace_coefficient_n4; |
| 226 | static int hf_oran_active_beamspace_coefficient_n5; |
| 227 | static int hf_oran_active_beamspace_coefficient_n6; |
| 228 | static int hf_oran_active_beamspace_coefficient_n7; |
| 229 | static int hf_oran_active_beamspace_coefficient_n8; |
| 230 | static int hf_oran_activeBeamspaceCoefficientMask; |
| 231 | static int hf_oran_activeBeamspaceCoefficientMask_bits_set; |
| 232 | |
| 233 | static int hf_oran_se6_repetition; |
| 234 | |
| 235 | static int hf_oran_rbgSize; |
| 236 | static int hf_oran_rbgMask; |
| 237 | static int hf_oran_noncontig_priority; |
| 238 | |
| 239 | static int hf_oran_symbol_mask; |
| 240 | static int hf_oran_symbol_mask_s13; |
| 241 | static int hf_oran_symbol_mask_s12; |
| 242 | static int hf_oran_symbol_mask_s11; |
| 243 | static int hf_oran_symbol_mask_s10; |
| 244 | static int hf_oran_symbol_mask_s9; |
| 245 | static int hf_oran_symbol_mask_s8; |
| 246 | static int hf_oran_symbol_mask_s7; |
| 247 | static int hf_oran_symbol_mask_s6; |
| 248 | static int hf_oran_symbol_mask_s5; |
| 249 | static int hf_oran_symbol_mask_s4; |
| 250 | static int hf_oran_symbol_mask_s3; |
| 251 | static int hf_oran_symbol_mask_s2; |
| 252 | static int hf_oran_symbol_mask_s1; |
| 253 | static int hf_oran_symbol_mask_s0; |
| 254 | |
| 255 | static int hf_oran_rbg_mask_27; |
| 256 | static int hf_oran_rbg_mask_26; |
| 257 | static int hf_oran_rbg_mask_25; |
| 258 | static int hf_oran_rbg_mask_24; |
| 259 | static int hf_oran_rbg_mask_23; |
| 260 | static int hf_oran_rbg_mask_22; |
| 261 | static int hf_oran_rbg_mask_21; |
| 262 | static int hf_oran_rbg_mask_20; |
| 263 | static int hf_oran_rbg_mask_19; |
| 264 | static int hf_oran_rbg_mask_18; |
| 265 | static int hf_oran_rbg_mask_17; |
| 266 | static int hf_oran_rbg_mask_16; |
| 267 | static int hf_oran_rbg_mask_15; |
| 268 | static int hf_oran_rbg_mask_14; |
| 269 | static int hf_oran_rbg_mask_13; |
| 270 | static int hf_oran_rbg_mask_12; |
| 271 | static int hf_oran_rbg_mask_11; |
| 272 | static int hf_oran_rbg_mask_10; |
| 273 | static int hf_oran_rbg_mask_9; |
| 274 | static int hf_oran_rbg_mask_8; |
| 275 | static int hf_oran_rbg_mask_7; |
| 276 | static int hf_oran_rbg_mask_6; |
| 277 | static int hf_oran_rbg_mask_5; |
| 278 | static int hf_oran_rbg_mask_4; |
| 279 | static int hf_oran_rbg_mask_3; |
| 280 | static int hf_oran_rbg_mask_2; |
| 281 | static int hf_oran_rbg_mask_1; |
| 282 | static int hf_oran_rbg_mask_0; |
| 283 | |
| 284 | static int hf_oran_exponent; |
| 285 | static int hf_oran_iq_user_data; |
| 286 | |
| 287 | static int hf_oran_disable_bfws; |
| 288 | static int hf_oran_rad; |
| 289 | static int hf_oran_num_bund_prbs; |
| 290 | static int hf_oran_beam_id; |
| 291 | static int hf_oran_num_weights_per_bundle; |
| 292 | |
| 293 | static int hf_oran_ack_nack_req_id; |
| 294 | |
| 295 | static int hf_oran_frequency_range; |
| 296 | static int hf_oran_off_start_prb; |
| 297 | static int hf_oran_num_prb; |
| 298 | |
| 299 | static int hf_oran_samples_prb; |
| 300 | static int hf_oran_ciSample; |
| 301 | static int hf_oran_ciIsample; |
| 302 | static int hf_oran_ciQsample; |
| 303 | |
| 304 | static int hf_oran_se10_port; |
| 305 | static int hf_oran_beamGroupType; |
| 306 | static int hf_oran_numPortc; |
| 307 | |
| 308 | static int hf_oran_csf; |
| 309 | static int hf_oran_modcompscaler; |
| 310 | |
| 311 | static int hf_oran_modcomp_param_set; |
| 312 | static int hf_oran_mc_scale_re_mask_re1; |
| 313 | static int hf_oran_mc_scale_re_mask_re2; |
| 314 | static int hf_oran_mc_scale_re_mask_re3; |
| 315 | static int hf_oran_mc_scale_re_mask_re4; |
| 316 | static int hf_oran_mc_scale_re_mask_re5; |
| 317 | static int hf_oran_mc_scale_re_mask_re6; |
| 318 | static int hf_oran_mc_scale_re_mask_re7; |
| 319 | static int hf_oran_mc_scale_re_mask_re8; |
| 320 | static int hf_oran_mc_scale_re_mask_re9; |
| 321 | static int hf_oran_mc_scale_re_mask_re10; |
| 322 | static int hf_oran_mc_scale_re_mask_re11; |
| 323 | static int hf_oran_mc_scale_re_mask_re12; |
| 324 | static int hf_oran_mc_scale_re_mask_re1_even; |
| 325 | static int hf_oran_mc_scale_re_mask_re2_even; |
| 326 | static int hf_oran_mc_scale_re_mask_re3_even; |
| 327 | static int hf_oran_mc_scale_re_mask_re4_even; |
| 328 | static int hf_oran_mc_scale_re_mask_re5_even; |
| 329 | static int hf_oran_mc_scale_re_mask_re6_even; |
| 330 | static int hf_oran_mc_scale_re_mask_re7_even; |
| 331 | static int hf_oran_mc_scale_re_mask_re8_even; |
| 332 | static int hf_oran_mc_scale_re_mask_re9_even; |
| 333 | static int hf_oran_mc_scale_re_mask_re10_even; |
| 334 | static int hf_oran_mc_scale_re_mask_re11_even; |
| 335 | static int hf_oran_mc_scale_re_mask_re12_even; |
| 336 | |
| 337 | static int hf_oran_mc_scale_re_mask; |
| 338 | static int hf_oran_mc_scale_re_mask_even; |
| 339 | |
| 340 | static int hf_oran_mc_scale_offset; |
| 341 | |
| 342 | static int hf_oran_eAxC_mask; |
| 343 | static int hf_oran_technology; |
| 344 | static int hf_oran_nullLayerInd; |
| 345 | |
| 346 | static int hf_oran_se19_repetition; |
| 347 | static int hf_oran_portReMask; |
| 348 | static int hf_oran_portSymbolMask; |
| 349 | |
| 350 | static int hf_oran_ext19_port; |
| 351 | |
| 352 | static int hf_oran_prb_allocation; |
| 353 | static int hf_oran_nextSymbolId; |
| 354 | static int hf_oran_nextStartPrbc; |
| 355 | |
| 356 | static int hf_oran_puncPattern; |
| 357 | static int hf_oran_numPuncPatterns; |
| 358 | static int hf_oran_symbolMask_ext20; |
| 359 | static int hf_oran_startPuncPrb; |
| 360 | static int hf_oran_numPuncPrb; |
| 361 | static int hf_oran_puncReMask; |
| 362 | static int hf_oran_multiSDScope; |
| 363 | static int hf_oran_RbgIncl; |
| 364 | |
| 365 | static int hf_oran_ci_prb_group_size; |
| 366 | static int hf_oran_prg_size_st5; |
| 367 | static int hf_oran_prg_size_st6; |
| 368 | |
| 369 | static int hf_oran_num_ueid; |
| 370 | |
| 371 | static int hf_oran_antMask; |
| 372 | |
| 373 | static int hf_oran_transmissionWindowOffset; |
| 374 | static int hf_oran_transmissionWindowSize; |
| 375 | static int hf_oran_toT; |
| 376 | |
| 377 | static int hf_oran_bfaCompHdr; |
| 378 | static int hf_oran_bfAzPtWidth; |
| 379 | static int hf_oran_bfZePtWidth; |
| 380 | static int hf_oran_bfAz3ddWidth; |
| 381 | static int hf_oran_bfZe3ddWidth; |
| 382 | static int hf_oran_bfAzPt; |
| 383 | static int hf_oran_bfZePt; |
| 384 | static int hf_oran_bfAz3dd; |
| 385 | static int hf_oran_bfZe3dd; |
| 386 | static int hf_oran_bfAzSl; |
| 387 | static int hf_oran_bfZeSl; |
| 388 | |
| 389 | static int hf_oran_cmd_scope; |
| 390 | static int hf_oran_number_of_st4_cmds; |
| 391 | |
| 392 | static int hf_oran_st4_cmd_header; |
| 393 | static int hf_oran_st4_cmd_type; |
| 394 | static int hf_oran_st4_cmd_len; |
| 395 | static int hf_oran_st4_cmd_num_slots; |
| 396 | static int hf_oran_st4_cmd_ack_nack_req_id; |
| 397 | |
| 398 | static int hf_oran_st4_cmd; |
| 399 | |
| 400 | static int hf_oran_sleepmode_trx; |
| 401 | static int hf_oran_sleepmode_asm; |
| 402 | static int hf_oran_log2maskbits; |
| 403 | static int hf_oran_num_slots_ext; |
| 404 | static int hf_oran_antMask_trx_control; |
| 405 | |
| 406 | static int hf_oran_max_pwr_lvl_ind; |
| 407 | static int hf_oran_array_carrier_max_pwr_reduction; |
| 408 | static int hf_oran_port_list_en; |
| 409 | static int hf_oran_tpmi_mode; |
| 410 | static int hf_oran_num_ueid_se34; |
| 411 | static int hf_oran_ueid_se34; |
| 412 | static int hf_oran_num_port_list_index; |
| 413 | static int hf_oran_chan_srs_port_mask; |
| 414 | static int hf_oran_tpmi_phase_7; |
| 415 | static int hf_oran_tpmi_phase_6; |
| 416 | static int hf_oran_tpmi_phase_5; |
| 417 | static int hf_oran_tpmi_phase_4; |
| 418 | static int hf_oran_tpmi_phase_3; |
| 419 | static int hf_oran_tpmi_phase_2; |
| 420 | static int hf_oran_tpmi_phase_1; |
| 421 | static int hf_oran_tpmi_phase_0; |
| 422 | |
| 423 | |
| 424 | static int hf_oran_ready; |
| 425 | static int hf_oran_number_of_acks; |
| 426 | static int hf_oran_number_of_nacks; |
| 427 | static int hf_oran_ackid; |
| 428 | static int hf_oran_nackid; |
| 429 | |
| 430 | static int hf_oran_acknack_request_frame; |
| 431 | static int hf_oran_acknack_request_time; |
| 432 | static int hf_oran_acknack_request_type; |
| 433 | static int hf_oran_acknack_response_frame; |
| 434 | static int hf_oran_acknack_response_time; |
| 435 | |
| 436 | static int hf_oran_disable_tdbfns; |
| 437 | static int hf_oran_td_beam_group; |
| 438 | static int hf_oran_disable_tdbfws; |
| 439 | static int hf_oran_td_beam_num; |
| 440 | |
| 441 | static int hf_oran_dir_pattern; |
| 442 | static int hf_oran_guard_pattern; |
| 443 | |
| 444 | static int hf_oran_ecpri_pcid; |
| 445 | static int hf_oran_ecpri_rtcid; |
| 446 | static int hf_oran_ecpri_seqid; |
| 447 | |
| 448 | static int hf_oran_num_sym_prb_pattern; |
| 449 | static int hf_oran_prb_mode; |
| 450 | static int hf_oran_sym_prb_pattern; |
| 451 | static int hf_oran_sym_mask; |
| 452 | static int hf_oran_num_mc_scale_offset; |
| 453 | static int hf_oran_prb_pattern; |
| 454 | static int hf_oran_prb_blk_offset; |
| 455 | static int hf_oran_prb_blk_size; |
| 456 | |
| 457 | static int hf_oran_codebook_index; |
| 458 | static int hf_oran_layerid; |
| 459 | static int hf_oran_numlayers; |
| 460 | static int hf_oran_txscheme; |
| 461 | static int hf_oran_crs_remask; |
| 462 | static int hf_oran_crs_shift; |
| 463 | static int hf_oran_crs_symnum; |
| 464 | static int hf_oran_beamid_ap1; |
| 465 | static int hf_oran_beamid_ap2; |
| 466 | static int hf_oran_beamid_ap3; |
| 467 | |
| 468 | static int hf_oran_port_list_index; |
| 469 | static int hf_oran_alpn_per_sym; |
| 470 | static int hf_oran_ant_dmrs_snr; |
| 471 | static int hf_oran_user_group_size; |
| 472 | static int hf_oran_user_group_id; |
| 473 | static int hf_oran_entry_type; |
| 474 | static int hf_oran_dmrs_port_number; |
| 475 | static int hf_oran_ueid_reset; |
| 476 | |
| 477 | static int hf_oran_dmrs_symbol_mask; |
| 478 | static int hf_oran_dmrs_symbol_mask_s13; |
| 479 | static int hf_oran_dmrs_symbol_mask_s12; |
| 480 | static int hf_oran_dmrs_symbol_mask_s11; |
| 481 | static int hf_oran_dmrs_symbol_mask_s10; |
| 482 | static int hf_oran_dmrs_symbol_mask_s9; |
| 483 | static int hf_oran_dmrs_symbol_mask_s8; |
| 484 | static int hf_oran_dmrs_symbol_mask_s7; |
| 485 | static int hf_oran_dmrs_symbol_mask_s6; |
| 486 | static int hf_oran_dmrs_symbol_mask_s5; |
| 487 | static int hf_oran_dmrs_symbol_mask_s4; |
| 488 | static int hf_oran_dmrs_symbol_mask_s3; |
| 489 | static int hf_oran_dmrs_symbol_mask_s2; |
| 490 | static int hf_oran_dmrs_symbol_mask_s1; |
| 491 | static int hf_oran_dmrs_symbol_mask_s0; |
| 492 | |
| 493 | static int hf_oran_scrambling; |
| 494 | static int hf_oran_nscid; |
| 495 | static int hf_oran_dtype; |
| 496 | static int hf_oran_cmd_without_data; |
| 497 | static int hf_oran_lambda; |
| 498 | static int hf_oran_first_prb; |
| 499 | static int hf_oran_last_prb; |
| 500 | static int hf_oran_low_papr_type; |
| 501 | static int hf_oran_hopping_mode; |
| 502 | |
| 503 | static int hf_oran_tx_win_for_on_air_symbol_l; |
| 504 | static int hf_oran_tx_win_for_on_air_symbol_r; |
| 505 | |
| 506 | static int hf_oran_num_fo_fb; |
| 507 | static int hf_oran_freq_offset_fb; |
| 508 | |
| 509 | static int hf_oran_num_ue_sinr_rpt; |
| 510 | static int hf_oran_num_sinr_per_prb; |
| 511 | static int hf_oran_num_sinr_per_prb_right; |
| 512 | static int hf_oran_num_sinr_per_prb_st9; |
| 513 | |
| 514 | static int hf_oran_sinr_value; |
| 515 | |
| 516 | static int hf_oran_measurement_report; |
| 517 | static int hf_oran_mf; |
| 518 | static int hf_oran_meas_data_size; |
| 519 | static int hf_oran_meas_type_id; |
| 520 | static int hf_oran_ipn_power; |
| 521 | static int hf_oran_ue_tae; |
| 522 | static int hf_oran_ue_layer_power; |
| 523 | static int hf_oran_num_elements; |
| 524 | static int hf_oran_ant_dmrs_snr_val; |
| 525 | static int hf_oran_ue_freq_offset; |
| 526 | static int hf_oran_curr_ue_freq_offset; |
| 527 | |
| 528 | static int hf_oran_measurement_command; |
| 529 | |
| 530 | static int hf_oran_beam_type; |
| 531 | static int hf_oran_meas_cmd_size; |
| 532 | |
| 533 | static int hf_oran_symbol_reordering_layer; |
| 534 | static int hf_oran_dmrs_entry; |
| 535 | |
| 536 | static int hf_oran_c_section_common; |
| 537 | static int hf_oran_c_section; |
| 538 | static int hf_oran_u_section; |
| 539 | |
| 540 | static const unit_name_string units_decibelfs = { " dBFS", NULL((void*)0) }; |
| 541 | static int hf_oran_u_prb_power; |
| 542 | static int hf_oran_u_total_power; |
| 543 | static int hf_oran_u_peak_power; |
| 544 | |
| 545 | static int hf_oran_u_section_ul_symbol_time; |
| 546 | static int hf_oran_u_section_ul_symbol_frames; |
| 547 | static int hf_oran_u_section_ul_symbol_first_frame; |
| 548 | static int hf_oran_u_section_ul_symbol_last_frame; |
| 549 | |
| 550 | static int hf_oran_cd_scg_size; |
| 551 | static int hf_oran_cd_scg_phase_step; |
| 552 | |
| 553 | static int hf_oran_sinr_prb; |
| 554 | static int hf_oran_oru_control_sinr_slot_mask_id; |
| 555 | static int hf_oran_pos_meas; |
| 556 | |
| 557 | static int hf_oran_ue_radial_speed; |
| 558 | static int hf_oran_ue_az_aoa; |
| 559 | static int hf_oran_ue_ze_aoa; |
| 560 | static int hf_oran_ue_pos_toa_offset; |
| 561 | |
| 562 | static int hf_oran_num_rep_ue; |
| 563 | static int hf_oran_rep_ueid; |
| 564 | static int hf_oran_is_last_rep; |
| 565 | static int hf_oran_rep_index; |
| 566 | static int hf_oran_num_reps; |
| 567 | |
| 568 | static int hf_oran_mcs_table; |
| 569 | static int hf_oran_mcs_index; |
| 570 | |
| 571 | static int hf_oran_num_meas_req; |
| 572 | static int hf_oran_num_of_ue_ant_ports; |
| 573 | static int hf_oran_ue_rank; |
| 574 | static int hf_oran_codebook_subset; |
| 575 | static int hf_oran_full_pwr_mode; |
| 576 | static int hf_oran_full_pwr_mode_2_tpmi_group; |
| 577 | |
| 578 | static int hf_oran_num_cand_ranks; |
| 579 | static int hf_oran_ue_pref_rank; |
| 580 | static int hf_oran_ue_tpmi_rank_y; |
| 581 | static int hf_oran_ue_tpmi_rank_y_sinr_lx; |
| 582 | static int hf_oran_ue_layer_pre_eq_sinr; |
| 583 | |
| 584 | static int hf_oran_chan_type_sel; |
| 585 | static int hf_oran_srs_meas_port_mask; |
| 586 | static int hf_oran_srs_ue_port_wb_power; |
| 587 | static int hf_oran_srs_ue_port_wb_sinr; |
| 588 | |
| 589 | static int hf_oran_srsRbgSize; |
| 590 | static int hf_oran_srsNumRbg; |
| 591 | static int hf_oran_srsTxComb; |
| 592 | static int hf_oran_srsSymId; |
| 593 | static int hf_oran_srsNumUe; |
| 594 | |
| 595 | /* Computed fields */ |
| 596 | static int hf_oran_c_eAxC_ID; |
| 597 | static int hf_oran_refa; |
| 598 | |
| 599 | static int hf_oran_bfws_frame_defined; |
| 600 | static int hf_oran_bfws_symbols_since_defined; |
| 601 | |
| 602 | static int hf_oran_corresponding_cplane_frame; |
| 603 | static int hf_oran_corresponding_cplane_frame_time_delta; |
| 604 | static int hf_oran_corresponding_uplane_frame; |
| 605 | static int hf_oran_corresponding_uplane_frames_total; |
| 606 | |
| 607 | |
| 608 | /* Convenient fields for filtering, mostly shown as hidden */ |
| 609 | static int hf_oran_cplane; |
| 610 | static int hf_oran_uplane; |
| 611 | static int hf_oran_bf; /* to match frames that configure beamforming in any way */ |
| 612 | static int hf_oran_zero_prb; |
| 613 | static int hf_oran_nonzero_prb; |
| 614 | static int hf_oran_bundle_weights_all_zero; |
| 615 | static int hf_oran_ul_cplane_ud_comp_hdr_frame; |
| 616 | static int hf_oran_delta_to_expected_ul_symbol_time; |
| 617 | static int hf_oran_delta_to_expected_dl_symbol_time; |
| 618 | |
| 619 | /* For reassembly */ |
| 620 | static int hf_oran_fragments; |
| 621 | static int hf_oran_fragment; |
| 622 | static int hf_oran_fragment_overlap; |
| 623 | static int hf_oran_fragment_overlap_conflict; |
| 624 | static int hf_oran_fragment_multiple_tails; |
| 625 | static int hf_oran_fragment_too_long_fragment; |
| 626 | static int hf_oran_fragment_error; |
| 627 | static int hf_oran_fragment_count; |
| 628 | static int hf_oran_reassembled_in; |
| 629 | static int hf_oran_reassembled_length; |
| 630 | static int hf_oran_reassembled_data; |
| 631 | |
| 632 | static int hf_oran_payload; |
| 633 | |
| 634 | /* Subtrees */ |
| 635 | static int ett_oran; |
| 636 | static int ett_oran_ecpri_rtcid; |
| 637 | static int ett_oran_ecpri_pcid; |
| 638 | static int ett_oran_ecpri_seqid; |
| 639 | static int ett_oran_section; |
| 640 | static int ett_oran_section_type; |
| 641 | static int ett_oran_u_timing; |
| 642 | static int ett_oran_u_section; |
| 643 | static int ett_oran_u_prb; |
| 644 | static int ett_oran_iq; |
| 645 | static int ett_oran_bfw_bundle; |
| 646 | static int ett_oran_bfw; |
| 647 | static int ett_oran_frequency_range; |
| 648 | static int ett_oran_prb_cisamples; |
| 649 | static int ett_oran_cisample; |
| 650 | static int ett_oran_udcomphdr; |
| 651 | static int ett_oran_udcompparam; |
| 652 | static int ett_oran_cicomphdr; |
| 653 | static int ett_oran_cicompparam; |
| 654 | static int ett_oran_bfwcomphdr; |
| 655 | static int ett_oran_bfwcompparam; |
| 656 | static int ett_oran_ext19_port; |
| 657 | static int ett_oran_prb_allocation; |
| 658 | static int ett_oran_punc_pattern; |
| 659 | static int ett_oran_bfacomphdr; |
| 660 | static int ett_oran_modcomp_param_set; |
| 661 | static int ett_oran_st4_cmd_header; |
| 662 | static int ett_oran_st4_cmd; |
| 663 | static int ett_oran_sym_prb_pattern; |
| 664 | static int ett_oran_measurement_report; |
| 665 | static int ett_oran_measurement_command; |
| 666 | static int ett_oran_sresmask; |
| 667 | static int ett_oran_c_section_common; |
| 668 | static int ett_oran_c_section; |
| 669 | static int ett_oran_remask; |
| 670 | static int ett_oran_mc_scale_remask; |
| 671 | static int ett_oran_symbol_reordering_layer; |
| 672 | static int ett_oran_dmrs_entry; |
| 673 | static int ett_oran_dmrs_symbol_mask; |
| 674 | static int ett_oran_symbol_mask; |
| 675 | static int ett_oran_active_beamspace_coefficient_mask; |
| 676 | static int ett_oran_sinr_prb; |
| 677 | static int ett_oran_rbgMask; |
| 678 | static int ett_oran_se10_port; |
| 679 | |
| 680 | static int ett_oran_fragment; |
| 681 | static int ett_oran_fragments; |
| 682 | |
| 683 | /* Dissector table for Section Extensions not in the standard, keyed by exttype. */ |
| 684 | static dissector_table_t oran_sectionextension_table; |
| 685 | |
| 686 | /* Reassembly table. */ |
| 687 | static reassembly_table oran_reassembly_table; |
| 688 | |
| 689 | static void *oran_key(const packet_info *pinfo _U___attribute__((unused)), const uint32_t id _U___attribute__((unused)), const void *data) |
| 690 | { |
| 691 | return (void *)data; |
| 692 | } |
| 693 | |
| 694 | static void oran_free_key(void *ptr _U___attribute__((unused))) |
| 695 | { |
| 696 | } |
| 697 | |
| 698 | static reassembly_table_functions oran_reassembly_table_functions = |
| 699 | { |
| 700 | g_direct_hash, |
| 701 | g_direct_equal, |
| 702 | oran_key, |
| 703 | oran_key, |
| 704 | oran_free_key, |
| 705 | oran_free_key |
| 706 | }; |
| 707 | |
| 708 | static const fragment_items oran_frag_items = { |
| 709 | &ett_oran_fragment, |
| 710 | &ett_oran_fragments, |
| 711 | &hf_oran_fragments, |
| 712 | &hf_oran_fragment, |
| 713 | &hf_oran_fragment_overlap, |
| 714 | &hf_oran_fragment_overlap_conflict, |
| 715 | &hf_oran_fragment_multiple_tails, |
| 716 | &hf_oran_fragment_too_long_fragment, |
| 717 | &hf_oran_fragment_error, |
| 718 | &hf_oran_fragment_count, |
| 719 | &hf_oran_reassembled_in, |
| 720 | &hf_oran_reassembled_length, |
| 721 | &hf_oran_reassembled_data, |
| 722 | "O-RAN FH CUS fragments" |
| 723 | }; |
| 724 | |
| 725 | |
| 726 | /* Don't want all extensions to open and close together. Use [extType-1] entry */ |
| 727 | static int ett_oran_c_section_extension[HIGHEST_EXTTYPE35]; |
| 728 | |
| 729 | /* Expert info */ |
| 730 | static expert_field ei_oran_unsupported_bfw_compression_method; |
| 731 | static expert_field ei_oran_invalid_sample_bit_width; |
| 732 | static expert_field ei_oran_reserved_numBundPrb; |
| 733 | static expert_field ei_oran_extlen_wrong; |
| 734 | static expert_field ei_oran_invalid_eaxc_bit_width; |
| 735 | static expert_field ei_oran_extlen_zero; |
| 736 | static expert_field ei_oran_rbg_size_reserved; |
| 737 | static expert_field ei_oran_frame_length; |
| 738 | static expert_field ei_oran_numprbc_ext21_zero; |
| 739 | static expert_field ei_oran_ci_prb_group_size_reserved; |
| 740 | static expert_field ei_oran_st8_nackid; |
| 741 | static expert_field ei_oran_st4_no_cmds; |
| 742 | static expert_field ei_oran_st4_zero_len_cmd; |
| 743 | static expert_field ei_oran_st4_wrong_len_cmd; |
| 744 | static expert_field ei_oran_st4_unknown_cmd; |
| 745 | static expert_field ei_oran_mcot_out_of_range; |
| 746 | static expert_field ei_oran_se10_unknown_beamgrouptype; |
| 747 | static expert_field ei_oran_se10_not_allowed; |
| 748 | static expert_field ei_oran_start_symbol_id_not_zero; |
| 749 | static expert_field ei_oran_trx_control_cmd_scope; |
| 750 | static expert_field ei_oran_unhandled_se; |
| 751 | static expert_field ei_oran_bad_symbolmask; |
| 752 | static expert_field ei_oran_numslots_not_zero; |
| 753 | static expert_field ei_oran_version_unsupported; |
| 754 | static expert_field ei_oran_laa_msg_type_unsupported; |
| 755 | static expert_field ei_oran_se_on_unsupported_st; |
| 756 | static expert_field ei_oran_cplane_unexpected_sequence_number_ul; |
| 757 | static expert_field ei_oran_cplane_unexpected_sequence_number_dl; |
| 758 | static expert_field ei_oran_uplane_unexpected_sequence_number_ul; |
| 759 | static expert_field ei_oran_uplane_unexpected_sequence_number_dl; |
| 760 | static expert_field ei_oran_acknack_no_request; |
| 761 | static expert_field ei_oran_udcomphdr_should_be_zero; |
| 762 | static expert_field ei_oran_radio_fragmentation_c_plane; |
| 763 | static expert_field ei_oran_lastRbdid_out_of_range; |
| 764 | static expert_field ei_oran_rbgMask_beyond_last_rbdid; |
| 765 | static expert_field ei_oran_unexpected_measTypeId; |
| 766 | static expert_field ei_oran_unsupported_compression_method; |
| 767 | static expert_field ei_oran_ud_comp_len_wrong_size; |
| 768 | static expert_field ei_oran_sresmask2_not_zero_with_rb; |
| 769 | static expert_field ei_oran_st6_rb_shall_be_0; |
| 770 | static expert_field ei_oran_st9_not_ul; |
| 771 | static expert_field ei_oran_st10_numsymbol_not_14; |
| 772 | static expert_field ei_oran_st10_startsymbolid_not_0; |
| 773 | static expert_field ei_oran_st10_not_ul; |
| 774 | static expert_field ei_oran_se24_nothing_to_inherit; |
| 775 | static expert_field ei_oran_num_sinr_per_prb_unknown; |
| 776 | static expert_field ei_oran_start_symbol_id_bits_ignored; |
| 777 | static expert_field ei_oran_user_group_id_reserved_value; |
| 778 | static expert_field ei_oran_port_list_index_zero; |
| 779 | static expert_field ei_oran_ul_uplane_symbol_too_long; |
| 780 | static expert_field ei_oran_reserved_not_zero; |
| 781 | static expert_field ei_oran_too_many_symbols; |
| 782 | static expert_field ei_oran_se30_not_ul; |
| 783 | static expert_field ei_oran_se30_unknown_ueid; |
| 784 | static expert_field ei_oran_beamid_bfws_not_found; |
| 785 | static expert_field ei_oran_syminc_set_for_uplane; |
| 786 | static expert_field ei_oran_cplane_entry_not_found; |
| 787 | static expert_field ei_oran_se12_rb_set; |
| 788 | static expert_field ei_oran_se5_re_mask_bits_not_covered; |
| 789 | static expert_field ei_oran_se5_re_mask_bit_repeated; |
| 790 | static expert_field ei_oran_se5_re_mask_bit_not_in_re_mask; |
| 791 | static expert_field ei_oran_se5_re_zero_re_mask; |
| 792 | |
| 793 | |
| 794 | /* These are the message types handled by this dissector. Others have handling in packet-ecpri.c */ |
| 795 | #define ECPRI_MT_IQ_DATA0 0 |
| 796 | #define ECPRI_MT_RT_CTRL_DATA2 2 |
| 797 | |
| 798 | |
| 799 | /* Preference settings - try to set reasonable defaults */ |
| 800 | static unsigned pref_du_port_id_bits = 4; |
| 801 | static unsigned pref_bandsector_id_bits = 4; |
| 802 | static unsigned pref_cc_id_bits = 4; |
| 803 | static unsigned pref_ru_port_id_bits = 4; |
| 804 | |
| 805 | /* TODO: ideally should be per-flow */ |
| 806 | static unsigned pref_sample_bit_width_uplink = 14; |
| 807 | static unsigned pref_sample_bit_width_downlink = 14; |
| 808 | static unsigned pref_sample_bit_width_sinr = 14; |
| 809 | |
| 810 | /* TODO: these ideally should be per-flow too */ |
| 811 | static int pref_iqCompressionUplink = COMP_BLOCK_FP1; |
| 812 | static int pref_iqCompressionDownlink = COMP_BLOCK_FP1; |
| 813 | |
| 814 | static int pref_iqCompressionSINR = COMP_BLOCK_FP1; |
| 815 | |
| 816 | |
| 817 | /* Is udCompHeader present (both directions) */ |
| 818 | static int pref_includeUdCompHeaderUplink = 2; /* start using heuristic */ |
| 819 | static int pref_includeUdCompHeaderDownlink = 2; /* start using heuristic */ |
| 820 | |
| 821 | /* Are we ignoring UL C-Plane udCompHdr? */ |
| 822 | static bool_Bool pref_override_ul_compression = false0; |
| 823 | |
| 824 | static unsigned pref_data_plane_section_total_rbs = 273; |
| 825 | static unsigned pref_num_bf_antennas = 32; |
| 826 | static bool_Bool pref_showIQSampleValues = true1; |
| 827 | |
| 828 | /* Based upon m-plane param, so will be system-wide */ |
| 829 | static int pref_support_udcompLen = 2; /* start heuristic, can force other settings if necessary */ |
| 830 | static bool_Bool udcomplen_heuristic_result_set = false0; |
| 831 | static bool_Bool udcomplen_heuristic_result = false0; |
| 832 | |
| 833 | /* st6-4byte-alignment-required */ |
| 834 | static bool_Bool st6_4byte_alignment = false0; |
| 835 | |
| 836 | /* Requested, allows I/Q to be stored as integers.. */ |
| 837 | static bool_Bool show_unscaled_values = false0; |
| 838 | |
| 839 | /* Initialized off. Timing is in microseconds. */ |
| 840 | static unsigned us_allowed_for_ul_in_symbol = 0; |
| 841 | |
| 842 | /* Reassemble U-Plane (at Radio Transport layer) */ |
| 843 | static bool_Bool do_radio_transport_layer_reassembly = true1; |
| 844 | |
| 845 | /* Expected symbol duration. Initialize to 100MHz case (Mu=1) */ |
| 846 | static unsigned pref_symbol_time = 36; |
| 847 | |
| 848 | /* Link U-plane back to C-plane using sectionIds */ |
| 849 | static bool_Bool link_planes_together = true1; |
| 850 | |
| 851 | static const enum_val_t dl_compression_options[] = { |
| 852 | { "COMP_NONE", "No Compression", COMP_NONE0 }, |
| 853 | { "COMP_BLOCK_FP", "Block Floating Point Compression", COMP_BLOCK_FP1 }, |
| 854 | { "COMP_BLOCK_SCALE", "Block Scaling Compression", COMP_BLOCK_SCALE2 }, |
| 855 | { "COMP_U_LAW", "u-Law Compression", COMP_U_LAW3 }, |
| 856 | { "COMP_MODULATION", "Modulation Compression", COMP_MODULATION4 }, |
| 857 | { "BFP_AND_SELECTIVE_RE", "Block Floating Point + selective RE sending", BFP_AND_SELECTIVE_RE5 }, |
| 858 | { "MOD_COMPR_AND_SELECTIVE_RE", "Modulation Compression + selective RE sending", MOD_COMPR_AND_SELECTIVE_RE6 }, |
| 859 | { "BFP_AND_SELECTIVE_RE_WITH_MASKS", "Block Floating Point + selective RE sending with masks in section header", BFP_AND_SELECTIVE_RE_WITH_MASKS7 }, |
| 860 | { "MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS", "Modulation Compression + selective RE sending with masks in section header", MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8 }, |
| 861 | { NULL((void*)0), NULL((void*)0), 0 } |
| 862 | }; |
| 863 | |
| 864 | /* No Modulation compression in UL.. */ |
| 865 | static const enum_val_t ul_compression_options[] = { |
| 866 | { "COMP_NONE", "No Compression", COMP_NONE0 }, |
| 867 | { "COMP_BLOCK_FP", "Block Floating Point Compression", COMP_BLOCK_FP1 }, |
| 868 | { "COMP_BLOCK_SCALE", "Block Scaling Compression", COMP_BLOCK_SCALE2 }, |
| 869 | { "COMP_U_LAW", "u-Law Compression", COMP_U_LAW3 }, |
| 870 | { "BFP_AND_SELECTIVE_RE", "Block Floating Point + selective RE sending", BFP_AND_SELECTIVE_RE5 }, |
| 871 | { "BFP_AND_SELECTIVE_RE_WITH_MASKS", "Block Floating Point + selective RE sending with masks in section header", BFP_AND_SELECTIVE_RE_WITH_MASKS7 }, |
| 872 | { NULL((void*)0), NULL((void*)0), 0 } |
| 873 | }; |
| 874 | |
| 875 | static const enum_val_t udcomplen_support_options[] = { |
| 876 | { "NOT_SUPPORTED", "Not Supported", 0 }, |
| 877 | { "SUPPORTED", "Supported", 1 }, |
| 878 | { "HEURISTIC", "Attempt Heuristic", 2 }, |
| 879 | { NULL((void*)0), NULL((void*)0), 0 } |
| 880 | }; |
| 881 | |
| 882 | static const enum_val_t udcomphdr_present_options[] = { |
| 883 | { "NOT_PRESENT", "Not Present", 0 }, |
| 884 | { "PRESENT", "Present", 1 }, |
| 885 | { "HEURISTIC", "Attempt Heuristic", 2 }, |
| 886 | { NULL((void*)0), NULL((void*)0), 0 } |
| 887 | }; |
| 888 | |
| 889 | |
| 890 | |
| 891 | static const value_string e_bit[] = { |
| 892 | { 0, "More fragments follow" }, |
| 893 | { 1, "Last fragment" }, |
| 894 | { 0, NULL((void*)0)} |
| 895 | }; |
| 896 | |
| 897 | #define DIR_UPLINK0 0 |
| 898 | #define DIR_DOWNLINK1 1 |
| 899 | |
| 900 | |
| 901 | static const value_string data_direction_vals[] = { |
| 902 | { DIR_UPLINK0, "Uplink" }, /* gNB Rx */ |
| 903 | { DIR_DOWNLINK1, "Downlink" }, /* gNB Tx */ |
| 904 | { 0, NULL((void*)0)} |
| 905 | }; |
| 906 | |
| 907 | static const value_string rb_vals[] = { |
| 908 | { 0, "Every RB used" }, |
| 909 | { 1, "Every other RB used" }, |
| 910 | { 0, NULL((void*)0)} |
| 911 | }; |
| 912 | |
| 913 | static const value_string sym_inc_vals[] = { |
| 914 | { 0, "Use the current symbol number" }, |
| 915 | { 1, "Increment the current symbol number" }, |
| 916 | { 0, NULL((void*)0)} |
| 917 | }; |
| 918 | |
| 919 | static const value_string lbtMode_vals[] = { |
| 920 | { 0, "Full LBT (regular LBT, sending reservation signal until the beginning of the SF/slot)" }, |
| 921 | { 1, "Partial LBT (looking back 25 usec prior to transmission" }, |
| 922 | { 2, "Partial LBT (looking back 34 usec prior to transmission" }, |
| 923 | { 3, "Full LBT and stop (regular LBT, without sending reservation signal" }, |
| 924 | { 0, NULL((void*)0)} |
| 925 | }; |
| 926 | |
| 927 | static const value_string ue_rank_vals[] = { |
| 928 | { 1, "1" }, |
| 929 | { 2, "2" }, |
| 930 | { 3, "3" }, |
| 931 | { 4, "4" }, |
| 932 | { 0, NULL((void*)0)} |
| 933 | }; |
| 934 | |
| 935 | static const value_string num_of_ue_ant_ports_vals[] = { |
| 936 | { 2, "2" }, |
| 937 | { 4, "4" }, |
| 938 | { 0, NULL((void*)0)} |
| 939 | }; |
| 940 | |
| 941 | static const value_string codebook_subset_vals[] = { |
| 942 | { 0, "nonCoherent" }, |
| 943 | { 1, "partialAndNonCoherent" }, |
| 944 | { 2, "fullyAndPartialAndNonCoherent" }, |
| 945 | { 3, "reserved" }, |
| 946 | { 0, NULL((void*)0)} |
| 947 | }; |
| 948 | |
| 949 | |
| 950 | static const range_string filter_indices[] = { |
| 951 | {0, 0, "standard channel filter"}, |
| 952 | {1, 1, "UL filter for PRACH preamble formats 0, 1, 2; min. passband 839 x 1.25kHz = 1048.75 kHz"}, |
| 953 | {2, 2, "UL filter for PRACH preamble format 3, min. passband 839 x 5 kHz = 4195 kHz"}, |
| 954 | {3, 3, "UL filter for PRACH preamble formats A1, A2, A3, B1, B2, B3, B4, C0, C2; min. passband 139 x \u0394fRA"}, |
| 955 | {4, 4, "UL filter for NPRACH 0, 1; min. passband 48 x 3.75KHz = 180 KHz"}, |
| 956 | {5, 5, "UL filter for PRACH preamble formats"}, |
| 957 | {8, 8, "UL filter NPUSCH"}, |
| 958 | {9, 9, "Mixed numerology and other channels except PRACH and NB-IoT"}, |
| 959 | {9, 15, "Reserved"}, |
| 960 | {0, 0, NULL((void*)0)} |
| 961 | }; |
| 962 | |
| 963 | /* 7.3.1-1 */ |
| 964 | static const range_string section_types[] = { |
| 965 | { SEC_C_UNUSED_RB, SEC_C_UNUSED_RB, "Unused Resource Blocks or symbols in Downlink or Uplink" }, |
| 966 | { SEC_C_NORMAL, SEC_C_NORMAL, "Most DL/UL radio channels" }, |
| 967 | { SEC_C_RSVD2, SEC_C_RSVD2, "Reserved for future use" }, |
| 968 | { SEC_C_PRACH, SEC_C_PRACH, "PRACH and mixed-numerology channels" }, |
| 969 | { SEC_C_SLOT_CONTROL, SEC_C_SLOT_CONTROL, "Slot Configuration Control" }, |
| 970 | { SEC_C_UE_SCHED, SEC_C_UE_SCHED, "UE scheduling information (UE-ID assignment to section)" }, |
| 971 | { SEC_C_CH_INFO, SEC_C_CH_INFO, "Channel information" }, |
| 972 | { SEC_C_LAA, SEC_C_LAA, "LAA (License Assisted Access)" }, |
| 973 | { SEC_C_ACK_NACK_FEEDBACK, SEC_C_ACK_NACK_FEEDBACK, "ACK/NACK Feedback" }, |
| 974 | { SEC_C_SINR_REPORTING, SEC_C_SINR_REPORTING, "SINR Reporting" }, |
| 975 | { SEC_C_RRM_MEAS_REPORTS, SEC_C_RRM_MEAS_REPORTS, "RRM Measurement Reports" }, |
| 976 | { SEC_C_REQUEST_RRM_MEAS, SEC_C_REQUEST_RRM_MEAS, "Request RRM Measurements" }, |
| 977 | { SEC_C_SRS_DESCRIPTION, SEC_C_SRS_DESCRIPTION, "SRS Description" }, |
| 978 | { SEC_C_RRM_MEAS_REPORTS_NON_TIMING, SEC_C_RRM_MEAS_REPORTS_NON_TIMING, "RRM Measurement reports - no-timing-controller" }, |
| 979 | { SEC_C_CO_SCHEDULING_INFO, SEC_C_CO_SCHEDULING_INFO, "Co-scheduling information" }, |
| 980 | { SEC_C_MAX_INDEX, 255, "Reserved for future use" }, |
| 981 | { 0, 0, NULL((void*)0)} }; |
| 982 | |
| 983 | static const range_string section_types_short[] = { |
| 984 | { SEC_C_UNUSED_RB, SEC_C_UNUSED_RB, "(Unused RBs)" }, |
| 985 | { SEC_C_NORMAL, SEC_C_NORMAL, "(Most channels)" }, |
| 986 | { SEC_C_RSVD2, SEC_C_RSVD2, "(reserved)" }, |
| 987 | { SEC_C_PRACH, SEC_C_PRACH, "(PRACH/mixed-\u03bc)" }, |
| 988 | { SEC_C_SLOT_CONTROL, SEC_C_SLOT_CONTROL, "(Slot info)" }, |
| 989 | { SEC_C_UE_SCHED, SEC_C_UE_SCHED, "(UE scheduling info)" }, |
| 990 | { SEC_C_CH_INFO, SEC_C_CH_INFO, "(Channel info)" }, |
| 991 | { SEC_C_LAA, SEC_C_LAA, "(LAA)" }, |
| 992 | { SEC_C_ACK_NACK_FEEDBACK, SEC_C_ACK_NACK_FEEDBACK, "(ACK/NACK)" }, |
| 993 | { SEC_C_SINR_REPORTING, SEC_C_SINR_REPORTING, "(SINR Reporting)" }, |
| 994 | { SEC_C_RRM_MEAS_REPORTS, SEC_C_RRM_MEAS_REPORTS, "(RRM Meas Reports)" }, |
| 995 | { SEC_C_REQUEST_RRM_MEAS, SEC_C_REQUEST_RRM_MEAS, "(Req RRM Meas)" }, |
| 996 | { SEC_C_SRS_DESCRIPTION, SEC_C_SRS_DESCRIPTION, "(SRS Description)" }, |
| 997 | { SEC_C_RRM_MEAS_REPORTS_NON_TIMING, SEC_C_RRM_MEAS_REPORTS_NON_TIMING, "(RRM Meas reports - NT)" }, |
| 998 | { SEC_C_CO_SCHEDULING_INFO, SEC_C_CO_SCHEDULING_INFO, "(Co-scheduling)" }, |
| 999 | { SEC_C_MAX_INDEX, 255, "Reserved for future use" }, |
| 1000 | { 0, 0, NULL((void*)0) } |
| 1001 | }; |
| 1002 | |
| 1003 | static const range_string ud_comp_header_width[] = { |
| 1004 | {0, 0, "I and Q are each 16 bits wide"}, |
| 1005 | {1, 15, "Bit width of I and Q"}, |
| 1006 | {0, 0, NULL((void*)0)} }; |
| 1007 | |
| 1008 | /* Table 8.3.3.13-3 */ |
| 1009 | static const range_string ud_comp_header_meth[] = { |
| 1010 | {COMP_NONE0, COMP_NONE0, "No compression" }, |
| 1011 | {COMP_BLOCK_FP1, COMP_BLOCK_FP1, "Block floating point compression" }, |
| 1012 | {COMP_BLOCK_SCALE2, COMP_BLOCK_SCALE2, "Block scaling" }, |
| 1013 | {COMP_U_LAW3, COMP_U_LAW3, "Mu - law" }, |
| 1014 | {COMP_MODULATION4, COMP_MODULATION4, "Modulation compression" }, |
| 1015 | {BFP_AND_SELECTIVE_RE5, BFP_AND_SELECTIVE_RE5, "BFP + selective RE sending" }, |
| 1016 | {MOD_COMPR_AND_SELECTIVE_RE6, MOD_COMPR_AND_SELECTIVE_RE6, "mod-compr + selective RE sending" }, |
| 1017 | {BFP_AND_SELECTIVE_RE_WITH_MASKS7, BFP_AND_SELECTIVE_RE_WITH_MASKS7, "BFP + selective RE sending with masks in section header" }, |
| 1018 | {MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8, MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8, "mod-compr + selective RE sending with masks in section header"}, |
| 1019 | {9, 15, "Reserved"}, |
| 1020 | {0, 0, NULL((void*)0)} |
| 1021 | }; |
| 1022 | |
| 1023 | /* Table 7.5.2.13-2 */ |
| 1024 | static const range_string frame_structure_fft[] = { |
| 1025 | {0, 0, "Reserved (no FFT/iFFT processing)"}, |
| 1026 | {1, 3, "Reserved"}, |
| 1027 | {4, 4, "FFT size 16"}, |
| 1028 | {5, 5, "FFT size 32"}, |
| 1029 | {6, 6, "FFT size 64"}, |
| 1030 | {7, 7, "FFT size 128"}, |
| 1031 | {8, 8, "FFT size 256"}, |
| 1032 | {9, 9, "FFT size 512"}, |
| 1033 | {10, 10, "FFT size 1024"}, |
| 1034 | {11, 11, "FFT size 2048"}, |
| 1035 | {12, 12, "FFT size 4096"}, |
| 1036 | {13, 13, "FFT size 1536"}, |
| 1037 | {14, 14, "FFT size 3072"}, |
| 1038 | {15, 15, "Reserved"}, |
| 1039 | {0, 0, NULL((void*)0)} |
| 1040 | }; |
| 1041 | |
| 1042 | /* Table 7.5.2.13-3 */ |
| 1043 | static const range_string subcarrier_spacings[] = { |
| 1044 | { 0, 0, "SCS 15 kHz, 1 slot/subframe, slot length 1 ms" }, |
| 1045 | { 1, 1, "SCS 30 kHz, 2 slots/subframe, slot length 500 \u03bcs" }, |
| 1046 | { 2, 2, "SCS 60 kHz, 4 slots/subframe, slot length 250 \u03bcs" }, |
| 1047 | { 3, 3, "SCS 120 kHz, 8 slots/subframe, slot length 125 \u03bcs" }, |
| 1048 | { 4, 4, "SCS 240 kHz, 16 slots/subframe, slot length 62.5 \u03bcs" }, |
| 1049 | { 5, 11, "Reserved" }, /* N.B., 5 was 480kHz in early spec versions */ |
| 1050 | { 12, 12, "SCS 1.25 kHz, 1 slot/subframe, slot length 1 ms" }, |
| 1051 | { 13, 13, "SCS 3.75 kHz(LTE - specific), 1 slot/subframe, slot length 1 ms" }, |
| 1052 | { 14, 14, "SCS 5 kHz, 1 slot/subframe, slot length 1 ms" }, |
| 1053 | { 15, 15, "SCS 7.5 kHz(LTE - specific), 1 slot/subframe, slot length 1 ms" }, |
| 1054 | { 0, 0, NULL((void*)0) } |
| 1055 | }; |
| 1056 | |
| 1057 | /* Table 7.5.3.14-1 laaMsgType definition */ |
| 1058 | static const range_string laaMsgTypes[] = { |
| 1059 | {0, 0, "LBT_PDSCH_REQ - lls - O-DU to O-RU request to obtain a PDSCH channel"}, |
| 1060 | {1, 1, "LBT_DRS_REQ - lls - O-DU to O-RU request to obtain the channel and send DRS"}, |
| 1061 | {2, 2, "LBT_PDSCH_RSP - O-RU to O-DU response, channel acq success or failure"}, |
| 1062 | {3, 3, "LBT_DRS_RSP - O-RU to O-DU response, DRS sending success or failure"}, |
| 1063 | {4, 4, "LBT_Buffer_Error - O-RU to O-DU response, reporting buffer overflow"}, |
| 1064 | {5, 5, "LBT_CWCONFIG_REQ - O-DU to O-RU request, congestion window configuration"}, |
| 1065 | {6, 6, "LBT_CWCONFIG_RST - O-RU to O-DU request, congestion window config, response"}, |
| 1066 | {7, 15, "reserved for future methods"}, |
| 1067 | {0, 0, NULL((void*)0)} |
| 1068 | }; |
| 1069 | |
| 1070 | /* 7.7.26.3 */ |
| 1071 | static const range_string freq_offset_fb_values[] = { |
| 1072 | {0, 0, "no frequency offset"}, |
| 1073 | {8000, 8000, "value not provided"}, |
| 1074 | {1, 30000, "positive frequency offset, (0, +0.5] subcarrier"}, |
| 1075 | {0x8ad0, 0xffff, "negative frequency offset, [-0.5, 0) subcarrier"}, |
| 1076 | {0x0, 0xffff, "reserved"}, |
| 1077 | {0, 0, NULL((void*)0)} |
| 1078 | }; |
| 1079 | |
| 1080 | /* 7.5.3.78 */ |
| 1081 | static const range_string ue_tmpi_rank_sinr_vals[] = { |
| 1082 | {0, 0, "0 dB SINR"}, |
| 1083 | {0x0001, 0x07ff, "positive SINR"}, |
| 1084 | {0xf800, 0xffff, "-ve SINR"}, |
| 1085 | {0x8000, 0x8000, "invalid measurement result"}, |
| 1086 | {0x0, 0xffff, "reserved"}, |
| 1087 | {0, 0, NULL((void*)0)} |
| 1088 | }; |
| 1089 | |
| 1090 | |
| 1091 | |
| 1092 | /* Table 7.5.2.19-1 */ |
| 1093 | static const value_string num_sinr_per_prb_vals[] = { |
| 1094 | { 0, "1" }, |
| 1095 | { 1, "2" }, |
| 1096 | { 2, "3" }, |
| 1097 | { 3, "4" }, |
| 1098 | { 4, "6" }, |
| 1099 | { 5, "12" }, |
| 1100 | { 6, "1 SINR value per section for DFT-s-OFDM" }, |
| 1101 | { 7, "reserved" }, |
| 1102 | { 0, NULL((void*)0)} |
| 1103 | }; |
| 1104 | |
| 1105 | static const value_string meas_type_id_vals[] = { |
| 1106 | { 1, "UE Timing Advance Error" }, |
| 1107 | { 2, "UE Layer power" }, |
| 1108 | { 3, "UE frequency offset" }, |
| 1109 | { 4, "Interference plus Noise for allocated PRBs" }, |
| 1110 | { 5, "Interference plus Noise for unallocated PRBs" }, |
| 1111 | { 6, "DMRS-SNR per antenna" }, |
| 1112 | { 7, "UE positioning measurement report" }, |
| 1113 | { 8, "UE radial speed measurement report" }, |
| 1114 | { 9, "UE post-equalization MU interference measurement" }, |
| 1115 | { 10, "UE TPMI and rank recommendation measurement" }, |
| 1116 | { 11, "UE layer pre-equalization SINR report" }, |
| 1117 | { 12, "SRS UE port wideband signal power measurement report" }, |
| 1118 | { 13, "SRS UE port wideband SINR measurement report" }, |
| 1119 | { 14, "SRS wideband T-Matrix measurement report" }, |
| 1120 | { 15, "SRS available port for beamforming measurement report" }, |
| 1121 | { 16, "SRS discontinuous transmission measurement report" }, |
| 1122 | { 17, "SRS UE port timing advance error measurement report" }, |
| 1123 | { 18, "SRS UE port subband signal power measurement report" }, |
| 1124 | { 19, "SRS UE port subband SINR measurement report" }, |
| 1125 | { 20, "SRS port ordering measurement report" }, |
| 1126 | { 21, "DMRS discontinuous transmission measurement report" }, |
| 1127 | { 22, "Downlink post-equalization SINR measurement report" }, |
| 1128 | { 23, "UE normalized beam power report" }, |
| 1129 | { 24, "SRS unallocated comb offset IpN" }, |
| 1130 | { 0, NULL((void*)0)} |
| 1131 | }; |
| 1132 | |
| 1133 | static const value_string beam_type_vals[] = { |
| 1134 | { 0, "List of beamId values" }, |
| 1135 | { 1, "Range of beamId values" }, |
| 1136 | { 0, NULL((void*)0)} |
| 1137 | }; |
| 1138 | |
| 1139 | /* 7.7.24.3 */ |
| 1140 | static const value_string entry_type_vals[] = { |
| 1141 | { 0, "inherit config from preceding entry (2 or 3) ueIdReset=0" }, |
| 1142 | { 1, "inherit config from preceding entry (2 or 3) ueIdReset=1" }, |
| 1143 | { 2, "related parameters if have transform precoding disabled " }, |
| 1144 | { 3, "related parameters if have transform precoding enabled " }, |
| 1145 | { 0, NULL((void*)0)} |
| 1146 | }; |
| 1147 | |
| 1148 | /* Table 7.7.29.3-1 */ |
| 1149 | static const range_string cd_scg_size_vals[] = { |
| 1150 | { 0, 0, "1 subcarrier" }, |
| 1151 | { 1, 1, "1 RB x N subcarriers" }, |
| 1152 | { 2, 2, "2 RB x N subcarriers" }, |
| 1153 | { 3, 3, "4 RB x N subcarriers" }, |
| 1154 | { 4, 4, "8 RB x N subcarriers" }, |
| 1155 | { 5, 5, "16 RB x N subcarriers" }, |
| 1156 | { 6, 6, "32 RB x N subcarriers" }, |
| 1157 | { 7, 15, "reserved"}, |
| 1158 | { 0, 0, NULL((void*)0)} |
| 1159 | }; |
| 1160 | |
| 1161 | /* 7.7.33.3 */ |
| 1162 | static const value_string chan_type_sel_vals[] = { |
| 1163 | { 0, "port channel index" }, |
| 1164 | { 1, "layer channel index" }, |
| 1165 | { 2, "reserved" }, |
| 1166 | { 3, "reserved" }, |
| 1167 | { 0, NULL((void*)0)} |
| 1168 | }; |
| 1169 | |
| 1170 | /* 7.7.34.4 */ |
| 1171 | static const value_string tpmi_mode_vals[] = { |
| 1172 | { 0, "Port selection mode" }, |
| 1173 | { 1, "Explicit codebook mode" }, |
| 1174 | { 0, NULL((void*)0)} |
| 1175 | }; |
| 1176 | |
| 1177 | /* 7.7.34.7.3 */ |
| 1178 | static const value_string tpmi_phase_vals[] = { |
| 1179 | { 0, "no rotation applied" }, |
| 1180 | { 1, "rotation by pi/2 radians" }, |
| 1181 | { 2, "rotation by pi radians" }, |
| 1182 | { 3, "rotation by 3pi/2 radians" }, |
| 1183 | { 0, NULL((void*)0)} |
| 1184 | }; |
| 1185 | |
| 1186 | /* Table 7.6.1-1 */ |
| 1187 | static const value_string exttype_vals[] = { |
| 1188 | {0, "Reserved"}, |
| 1189 | {1, "Beamforming weights"}, |
| 1190 | {2, "Beamforming attributes"}, |
| 1191 | {3, "DL Precoding configuration parameters and indications"}, |
| 1192 | {4, "Modulation compr. params"}, |
| 1193 | {5, "Modulation compression additional scaling parameters"}, |
| 1194 | {6, "Non-contiguous PRB allocation"}, |
| 1195 | {7, "Multiple-eAxC designation"}, |
| 1196 | {8, "Regularization factor"}, |
| 1197 | {9, "Dynamic Spectrum Sharing parameters"}, |
| 1198 | {10, "Multiple ports grouping"}, |
| 1199 | {11, "Flexible BF weights"}, |
| 1200 | {12, "Non-Contiguous PRB Allocation with Frequency Ranges"}, |
| 1201 | {13, "PRB Allocation with Frequency Hopping"}, |
| 1202 | {14, "Nulling-layer Info. for ueId-based beamforming"}, |
| 1203 | {15, "Mixed-numerology Info. for ueId-based beamforming"}, |
| 1204 | {16, "Section description for antenna mapping in UE channel information based UL beamforming"}, |
| 1205 | {17, "Section description for indication of user port group"}, |
| 1206 | {18, "Section description for Uplink Transmission Management"}, |
| 1207 | {19, "Compact beamforming information for multiple port"}, |
| 1208 | {20, "Puncturing extension"}, |
| 1209 | {21, "Variable PRB group size for channel information"}, |
| 1210 | {22, "ACK/NACK request"}, |
| 1211 | {23, "Multiple symbol modulation compression parameters"}, |
| 1212 | {24, "PUSCH DMRS configuration"}, |
| 1213 | {25, "Symbol reordering for DMRS-BF"}, |
| 1214 | {26, "Frequency offset feedback"}, |
| 1215 | {27, "O-DU controlled dimensionality reduction"}, |
| 1216 | {28, "O-DU controlled frequency resolution for SINR reporting"}, |
| 1217 | {29, "Cyclic delay adjustment"}, |
| 1218 | {30, "PUSCH repetition indication"}, |
| 1219 | {31, "MCS Information"}, |
| 1220 | {32, "Rank and TPMI measurement request"}, |
| 1221 | {33, "Dynamic channel type selection for SRS-BF-DL"}, |
| 1222 | {34, "SRS-BF-UL Control"}, |
| 1223 | {35, "Codebook-based beamforming parameters"}, |
| 1224 | {0, NULL((void*)0)} |
| 1225 | }; |
| 1226 | static value_string_ext exttype_vals_ext = VALUE_STRING_EXT_INIT(exttype_vals){ _try_val_to_str_ext_init, 0, (sizeof (exttype_vals) / sizeof ((exttype_vals)[0]))-1, exttype_vals, "exttype_vals", ((void *)0) }; |
| 1227 | |
| 1228 | |
| 1229 | /**************************************************************************************/ |
| 1230 | /* Keep track for each Section Extension, which section types are allowed to carry it */ |
| 1231 | typedef struct { |
| 1232 | bool_Bool ST0; |
| 1233 | bool_Bool ST1; |
| 1234 | bool_Bool ST3; |
| 1235 | bool_Bool ST5; |
| 1236 | bool_Bool ST6; |
| 1237 | bool_Bool ST10; |
| 1238 | bool_Bool ST11; |
| 1239 | bool_Bool ST12; |
| 1240 | bool_Bool ST13; |
| 1241 | bool_Bool ST14; |
| 1242 | } AllowedCTs_t; |
| 1243 | |
| 1244 | |
| 1245 | static const AllowedCTs_t ext_cts[HIGHEST_EXTTYPE35] = { |
| 1246 | /* ST0 ST1 ST3 ST5 ST6 ST10 ST11 ST12 ST13 ST14 */ |
| 1247 | { false0, true1, true1, false0, false0, false0, false0, false0, false0, false0 }, // SE 1 (1,3) |
| 1248 | { false0, true1, true1, false0, false0, false0, false0, false0, false0, false0 }, // SE 2 (1,3) |
| 1249 | { false0, true1, true1, false0, false0, false0, false0, false0, false0, false0 }, // SE 3 (1,3) |
| 1250 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 4 (1,3,5) |
| 1251 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 5 (1,3,5) |
| 1252 | { false0, true1, true1, true1, false0, true1, true1, false0, true1, false0 }, // SE 6 (1,3,5,10,11) |
| 1253 | { true1, false0, false0, false0, false0, false0, false0, false0, false0, false0 }, // SE 7 (0) |
| 1254 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 8 (5) |
| 1255 | { true1, true1, true1, true1, true1, true1, true1, false0, true1, false0 }, // SE 9 (all) |
| 1256 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 10 (1,3,5) |
| 1257 | { false0, true1, true1, false0, false0, false0, false0, false0, false0, false0 }, // SE 11 (1,3) |
| 1258 | { false0, true1, true1, true1, false0, true1, true1, false0, true1, false0 }, // SE 12 (1,3,5,10,11) |
| 1259 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 13 (1,3,5) |
| 1260 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 14 (5) |
| 1261 | { false0, false0, false0, true1, true1, false0, false0, false0, false0, false0 }, // SE 15 (5,6) |
| 1262 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 16 (5) |
| 1263 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 17 (5) |
| 1264 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 18 (1,3,5) |
| 1265 | { false0, true1, true1, false0, false0, false0, false0, false0, false0, false0 }, // SE 19 (1,3) |
| 1266 | { true1, true1, true1, true1, true1, true1, true1, false0, true1, false0 }, // SE 20 (0,1,3,5,10,11) |
| 1267 | { false0, false0, false0, true1, true1, false0, false0, false0, false0, false0 }, // SE 21 (5,6) |
| 1268 | { true1, true1, true1, true1, true1, true1, true1, false0, true1, false0 }, // SE 22 (all) |
| 1269 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 23 (1,3,5) |
| 1270 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 24 (5) |
| 1271 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 25 (5) |
| 1272 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 26 (5) |
| 1273 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 27 (5) |
| 1274 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 28 (5) |
| 1275 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 29 (1,3,5) |
| 1276 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 30 (5) |
| 1277 | { false0, true1, true1, true1, false0, false0, false0, false0, false0, false0 }, // SE 31 (1,3,5) |
| 1278 | { false0, false0, false0, true1, false0, false0, false0, true1 , false0, false0 }, // SE 32 (5, 14) |
| 1279 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, true1 }, // SE 33 (5,14) |
| 1280 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 34 (5) |
| 1281 | { false0, false0, false0, true1, false0, false0, false0, false0, false0, false0 }, // SE 35 (5) |
| 1282 | }; |
| 1283 | |
| 1284 | static bool_Bool se_allowed_in_st(unsigned se, unsigned st) |
| 1285 | { |
| 1286 | if (se==0 || se>HIGHEST_EXTTYPE35) { |
| 1287 | /* Don't know about new SE, so don't complain.. */ |
| 1288 | return true1; |
| 1289 | } |
| 1290 | |
| 1291 | switch (st) { |
| 1292 | case 0: |
| 1293 | return ext_cts[se-1].ST0; |
| 1294 | case 1: |
| 1295 | return ext_cts[se-1].ST1; |
| 1296 | case 3: |
| 1297 | return ext_cts[se-1].ST3; |
| 1298 | case 5: |
| 1299 | return ext_cts[se-1].ST5; |
| 1300 | case 6: |
| 1301 | return ext_cts[se-1].ST6; |
| 1302 | case 10: |
| 1303 | return ext_cts[se-1].ST10; |
| 1304 | case 11: |
| 1305 | return ext_cts[se-1].ST11; |
| 1306 | case 12: |
| 1307 | return ext_cts[se-1].ST12; |
| 1308 | case 13: |
| 1309 | return ext_cts[se-1].ST13; |
| 1310 | case 14: |
| 1311 | return ext_cts[se-1].ST14; |
| 1312 | |
| 1313 | default: |
| 1314 | /* New/unknown section type that includes 'ef'.. assume ok */ |
| 1315 | return true1; |
| 1316 | } |
| 1317 | } |
| 1318 | |
| 1319 | /************************************************************************************/ |
| 1320 | |
| 1321 | /* Table 7.7.1.2-2 */ |
| 1322 | static const value_string bfw_comp_headers_iq_width[] = { |
| 1323 | {0, "I and Q are 16 bits wide"}, |
| 1324 | {1, "I and Q are 1 bit wide"}, |
| 1325 | {2, "I and Q are 2 bits wide"}, |
| 1326 | {3, "I and Q are 3 bits wide"}, |
| 1327 | {4, "I and Q are 4 bits wide"}, |
| 1328 | {5, "I and Q are 5 bits wide"}, |
| 1329 | {6, "I and Q are 6 bits wide"}, |
| 1330 | {7, "I and Q are 7 bits wide"}, |
| 1331 | {8, "I and Q are 8 bits wide"}, |
| 1332 | {9, "I and Q are 9 bits wide"}, |
| 1333 | {10, "I and Q are 10 bits wide"}, |
| 1334 | {11, "I and Q are 11 bits wide"}, |
| 1335 | {12, "I and Q are 12 bits wide"}, |
| 1336 | {13, "I and Q are 13 bits wide"}, |
| 1337 | {14, "I and Q are 14 bits wide"}, |
| 1338 | {15, "I and Q are 15 bits wide"}, |
| 1339 | {0, NULL((void*)0)} |
| 1340 | }; |
| 1341 | |
| 1342 | /* Table 7.7.1.2-3 */ |
| 1343 | static const value_string bfw_comp_headers_comp_meth[] = { |
| 1344 | {COMP_NONE0, "no compression"}, |
| 1345 | {COMP_BLOCK_FP1, "block floating point"}, |
| 1346 | {COMP_BLOCK_SCALE2, "block scaling"}, |
| 1347 | {COMP_U_LAW3, "u-law"}, |
| 1348 | {4, "beamspace compression type I"}, |
| 1349 | {5, "beamspace compression type II"}, |
| 1350 | {0, NULL((void*)0)} |
| 1351 | }; |
| 1352 | |
| 1353 | /* 7.7.6.2 rbgSize (resource block group size) */ |
| 1354 | static const value_string rbg_size_vals[] = { |
| 1355 | {0, "reserved"}, |
| 1356 | {1, "1"}, |
| 1357 | {2, "2"}, |
| 1358 | {3, "3"}, |
| 1359 | {4, "4"}, |
| 1360 | {5, "6"}, |
| 1361 | {6, "8"}, |
| 1362 | {7, "16"}, |
| 1363 | {0, NULL((void*)0)} |
| 1364 | }; |
| 1365 | |
| 1366 | /* 7.7.6.5 */ |
| 1367 | static const value_string priority_vals[] = { |
| 1368 | {0, "0"}, |
| 1369 | {1, "+1"}, |
| 1370 | {2, "-2 (reserved, should not be used)"}, |
| 1371 | {3, "-1"}, |
| 1372 | {0, NULL((void*)0)} |
| 1373 | }; |
| 1374 | |
| 1375 | /* 7.7.10.2 beamGroupType */ |
| 1376 | static const value_string beam_group_type_vals[] = { |
| 1377 | {0x0, "common beam"}, |
| 1378 | {0x1, "beam matrix indication"}, |
| 1379 | {0x2, "beam vector listing"}, |
| 1380 | {0x3, "beamId/ueId listing with associated port-list index"}, |
| 1381 | {0, NULL((void*)0)} |
| 1382 | }; |
| 1383 | |
| 1384 | /* 7.7.9.2 technology (interface name) */ |
| 1385 | static const value_string interface_name_vals[] = { |
| 1386 | {0x0, "LTE"}, |
| 1387 | {0x1, "NR"}, |
| 1388 | {0, NULL((void*)0)} |
| 1389 | }; |
| 1390 | |
| 1391 | /* 7.7.18.4 toT (type of transmission) */ |
| 1392 | static const value_string type_of_transmission_vals[] = { |
| 1393 | {0x0, "normal transmission mode, data can be distributed in any way the O-RU is implemented to transmit data"}, |
| 1394 | {0x1, "uniformly distributed over the transmission window"}, |
| 1395 | {0x2, "Reserved"}, |
| 1396 | {0x3, "Reserved"}, |
| 1397 | {0, NULL((void*)0)} |
| 1398 | }; |
| 1399 | |
| 1400 | /* 7.7.2.2 (width of bfa parameters) */ |
| 1401 | static const value_string bfa_bw_vals[] = { |
| 1402 | {0, "no bits, the field is not applicable (e.g., O-RU does not support it) or the default value shall be used"}, |
| 1403 | {1, "2-bit bitwidth"}, |
| 1404 | {2, "3-bit bitwidth"}, |
| 1405 | {3, "4-bit bitwidth"}, |
| 1406 | {4, "5-bit bitwidth"}, |
| 1407 | {5, "6-bit bitwidth"}, |
| 1408 | {6, "7-bit bitwidth"}, |
| 1409 | {7, "8-bit bitwidth"}, |
| 1410 | {0, NULL((void*)0)} |
| 1411 | }; |
| 1412 | |
| 1413 | /* 7.7.2.7 & 7.7.2.8 */ |
| 1414 | static const value_string sidelobe_suppression_vals[] = { |
| 1415 | {0, "10 dB"}, |
| 1416 | {1, "15 dB"}, |
| 1417 | {2, "20 dB"}, |
| 1418 | {3, "25 dB"}, |
| 1419 | {4, "30 dB"}, |
| 1420 | {5, "35 dB"}, |
| 1421 | {6, "40 dB"}, |
| 1422 | {7, ">= 45 dB"}, |
| 1423 | {0, NULL((void*)0)} |
| 1424 | }; |
| 1425 | |
| 1426 | static const value_string lbtTrafficClass_vals[] = { |
| 1427 | {1, "Priority 1"}, |
| 1428 | {2, "Priority 2"}, |
| 1429 | {3, "Priority 3"}, |
| 1430 | {4, "Priority 4"}, |
| 1431 | {0, NULL((void*)0)} |
| 1432 | }; |
| 1433 | |
| 1434 | /* 7.5.3.22 */ |
| 1435 | static const value_string lbtPdschRes_vals[] = { |
| 1436 | {0, "not sensing – indicates that the O-RU is transmitting data"}, |
| 1437 | {1, "currently sensing – indicates the O-RU has not yet acquired the channel"}, |
| 1438 | {2, "success – indicates that the channel was successfully acquired"}, |
| 1439 | {3, "Failure – indicates expiration of the LBT timer. The LBT process should be reset"}, |
| 1440 | {0, NULL((void*)0)} |
| 1441 | }; |
| 1442 | |
| 1443 | /* Table 7.5.2.15-3 */ |
| 1444 | static const value_string ci_comp_opt_vals[] = { |
| 1445 | {0, "compression per UE, one ciCompParam exists before the I/Q value of each UE"}, |
| 1446 | {1, "compression per PRB, one ciCompParam exists before the I/Q value of each PRB"}, |
| 1447 | {0, NULL((void*)0)} |
| 1448 | }; |
| 1449 | |
| 1450 | /* 7.5.2.17 */ |
| 1451 | static const range_string cmd_scope_vals[] = { |
| 1452 | {0, 0, "ARRAY-COMMAND"}, |
| 1453 | {1, 1, "CARRIER-COMMAND"}, |
| 1454 | {2, 2, "O-RU-COMMAND"}, |
| 1455 | {3, 15, "reserved"}, |
| 1456 | {0, 0, NULL((void*)0)} |
| 1457 | }; |
| 1458 | |
| 1459 | /* N.B., table in 7.5.3.38 is truncated.. */ |
| 1460 | static const range_string st4_cmd_type_vals[] = { |
| 1461 | {0, 0, "reserved for future command types"}, |
| 1462 | {1, 1, "TIME_DOMAIN_BEAM_CONFIG"}, |
| 1463 | {2, 2, "TDD_CONFIG_PATTERN"}, |
| 1464 | {3, 3, "TRX_CONTROL"}, |
| 1465 | {4, 4, "ASM"}, |
| 1466 | {5, 5, "TRX_CONTROL_BIDIR"}, |
| 1467 | {6, 6, "MAX_POWER_CONTROL"}, |
| 1468 | {7, 255, "reserved for future command types"}, |
| 1469 | {0, 0, NULL((void*)0)} |
| 1470 | }; |
| 1471 | |
| 1472 | /* Table 7.5.3.51-1 */ |
| 1473 | static const value_string log2maskbits_vals[] = { |
| 1474 | {0, "reserved"}, |
| 1475 | {1, "min antMask size is 16 bits.."}, |
| 1476 | {2, "min antMask size is 16 bits.."}, |
| 1477 | {3, "min antMask size is 16 bits.."}, |
| 1478 | {4, "16 bits"}, |
| 1479 | {5, "32 bits"}, |
| 1480 | {6, "64 bits"}, |
| 1481 | {7, "128 bits"}, |
| 1482 | {8, "256 bits"}, |
| 1483 | {9, "512 bits"}, |
| 1484 | {10, "1024 bits"}, |
| 1485 | {11, "2048 bits"}, |
| 1486 | {12, "4096 bits"}, |
| 1487 | {13, "8192 bits"}, |
| 1488 | {14, "16384 bits"}, |
| 1489 | {15, "reserved"}, |
| 1490 | {0, NULL((void*)0)} |
| 1491 | }; |
| 1492 | |
| 1493 | /* Table 16.1-1 Sleep modes */ |
| 1494 | static const value_string sleep_mode_trx_vals[] = { |
| 1495 | { 0, "TRXC-mode0-wake-up-duration (symbol)"}, |
| 1496 | { 1, "TRXC-mode1-wake-up-duration (L)"}, |
| 1497 | { 2, "TRXC-mode2-wake-up-duration (M)"}, |
| 1498 | { 3, "TRXC-mode3-wake-up-duration (N)"}, |
| 1499 | { 0, NULL((void*)0)} |
| 1500 | }; |
| 1501 | |
| 1502 | static const value_string sleep_mode_asm_vals[] = { |
| 1503 | { 0, "ASM-mode0-wake-up-duration (symbol)"}, |
| 1504 | { 1, "ASM-mode1-wake-up-duration (L)"}, |
| 1505 | { 2, "ASM-mode2-wake-up-duration (M)"}, |
| 1506 | { 3, "ASM-mode3-wake-up-duration (N)"}, |
| 1507 | { 0, NULL((void*)0)} |
| 1508 | }; |
| 1509 | |
| 1510 | /* 7.7.21.3.1 */ |
| 1511 | static const value_string prg_size_st5_vals[] = { |
| 1512 | { 0, "reserved"}, |
| 1513 | { 1, "Precoding resource block group size as WIDEBAND"}, |
| 1514 | { 2, "Precoding resource block group size 2"}, |
| 1515 | { 3, "Precoding resource block group size 4"}, |
| 1516 | { 0, NULL((void*)0)} |
| 1517 | }; |
| 1518 | |
| 1519 | /* 7.7.21.3.2 */ |
| 1520 | static const value_string prg_size_st6_vals[] = { |
| 1521 | { 0, "if ciPrbGroupSize is 2 or 4, then ciPrbGroupSize, else WIDEBAND"}, |
| 1522 | { 1, "Precoding resource block group size as WIDEBAND"}, |
| 1523 | { 2, "Precoding resource block group size 2"}, |
| 1524 | { 3, "Precoding resource block group size 4"}, |
| 1525 | { 0, NULL((void*)0)} |
| 1526 | }; |
| 1527 | |
| 1528 | /* 7.7.24.4 */ |
| 1529 | static const value_string alpn_per_sym_vals[] = { |
| 1530 | { 0, "report one allocated IPN value per all allocated symbols with DMRS"}, |
| 1531 | { 1, "report one allocated IPN value per group of consecutive DMRS symbols"}, |
| 1532 | { 0, NULL((void*)0)} |
| 1533 | }; |
| 1534 | |
| 1535 | /* 7.7.24.5 */ |
| 1536 | static const value_string ant_dmrs_snr_vals[] = { |
| 1537 | { 0, "O-RU shall not report the MEAS_ANT_DMRS_SNR"}, |
| 1538 | { 1, "O-RU shall report the MEAS_ANT_DMRS_SNR"}, |
| 1539 | { 0, NULL((void*)0)} |
| 1540 | }; |
| 1541 | |
| 1542 | /* 7.7.24.14 */ |
| 1543 | static const value_string dtype_vals[] = { |
| 1544 | { 0, "assume DMRS configuration type 1"}, |
| 1545 | { 1, "assume DMRS configuration type 2"}, |
| 1546 | { 0, NULL((void*)0)} |
| 1547 | }; |
| 1548 | |
| 1549 | /* 7.7.24.17 */ |
| 1550 | static const value_string papr_type_vals[] = { |
| 1551 | { 0, "sequence generator type 1 for short sequence lengths"}, |
| 1552 | { 1, "sequence generator type 1 for long sequence lengths"}, |
| 1553 | { 2, "sequence generator type 2 for short sequence lengths"}, |
| 1554 | { 3, "sequence generator type 2 for long sequence lengths"}, |
| 1555 | { 0, NULL((void*)0)} |
| 1556 | }; |
| 1557 | |
| 1558 | /* 7.7.24.18 */ |
| 1559 | static const value_string hopping_mode_vals[] = { |
| 1560 | { 0, "neither group, nor sequence hopping is enabled"}, |
| 1561 | { 1, "group hopping is enabled and sequence hopping is disabled"}, |
| 1562 | { 2, "sequence hopping is enabled and group hopping is disabled"}, |
| 1563 | { 3, "reserved"}, |
| 1564 | { 0, NULL((void*)0)} |
| 1565 | }; |
| 1566 | |
| 1567 | /* Table 7.7.31.2-1 */ |
| 1568 | static const value_string mcs_table_vals[] = { |
| 1569 | { 0, "MCS index table 1 for PDSCH and PUSCH without transform precoding" }, |
| 1570 | { 1, "MCS index table 2 for PDSCH and PUSCH without transform precoding" }, |
| 1571 | { 2, "MCS index table 3 for PDSCH and PUSCH without transform precoding" }, |
| 1572 | { 3, "MCS index table 4 for PDSCH" }, |
| 1573 | { 4, "MCS index table for PUSCH with transform precoding and 64QAM" }, |
| 1574 | { 5, "MCS index table 2 for PUSCH with transform precoding and 64QAM" }, |
| 1575 | { 0, NULL((void*)0)} |
| 1576 | }; |
| 1577 | |
| 1578 | /* 7.7.32.9 */ |
| 1579 | static const value_string full_pwr_mode_vals[] = { |
| 1580 | { 0, "not configured"}, |
| 1581 | { 1, "full power mode 0"}, |
| 1582 | { 2, "full power mode 1"}, |
| 1583 | { 3, "full power mode 2"}, |
| 1584 | { 0, NULL((void*)0)} |
| 1585 | }; |
| 1586 | |
| 1587 | static const value_string srs_rbg_size_vals[] = { |
| 1588 | { 0, "4 PRBs"}, |
| 1589 | { 1, "1 PRB"}, |
| 1590 | { 2, "2 PRBs"}, |
| 1591 | { 3, "reserved"}, |
| 1592 | { 0, NULL((void*)0)} |
| 1593 | }; |
| 1594 | |
| 1595 | static const value_string srs_tx_comb_vals[] = { |
| 1596 | { 0, "2 REs"}, |
| 1597 | { 1, "4 REs"}, |
| 1598 | { 2, "reserved"}, |
| 1599 | { 3, "reserved"}, |
| 1600 | { 0, NULL((void*)0)} |
| 1601 | }; |
| 1602 | |
| 1603 | |
| 1604 | static const true_false_string tfs_sfStatus = |
| 1605 | { |
| 1606 | "subframe was transmitted", |
| 1607 | "subframe was dropped" |
| 1608 | }; |
| 1609 | |
| 1610 | static const true_false_string tfs_lbtBufErr = |
| 1611 | { |
| 1612 | "buffer overflow – data received at O-RU is larger than the available buffer size", |
| 1613 | "reserved" |
| 1614 | }; |
| 1615 | |
| 1616 | static const true_false_string tfs_partial_full_sf = { |
| 1617 | "partial SF", |
| 1618 | "full SF" |
| 1619 | }; |
| 1620 | |
| 1621 | static const true_false_string disable_tdbfns_tfs = { |
| 1622 | "beam numbers excluded", |
| 1623 | "beam numbers included" |
| 1624 | }; |
| 1625 | |
| 1626 | static const true_false_string continuity_indication_tfs = { |
| 1627 | "continuity between current and next bundle", |
| 1628 | "discontinuity between current and next bundle" |
| 1629 | }; |
| 1630 | |
| 1631 | static const true_false_string prb_mode_tfs = { |
| 1632 | "PRB-BLOCK mode", |
| 1633 | "PRB-MASK mode" |
| 1634 | }; |
| 1635 | |
| 1636 | static const true_false_string symbol_direction_tfs = { |
| 1637 | "DL symbol", |
| 1638 | "UL symbol" |
| 1639 | }; |
| 1640 | |
| 1641 | static const true_false_string symbol_guard_tfs = { |
| 1642 | "guard symbol", |
| 1643 | "non-guard symbol" |
| 1644 | }; |
| 1645 | |
| 1646 | static const true_false_string beam_numbers_included_tfs = { |
| 1647 | "time-domain beam numbers excluded in this command", |
| 1648 | "time-domain beam numbers included in this command" |
| 1649 | }; |
| 1650 | |
| 1651 | static const true_false_string measurement_flag_tfs = { |
| 1652 | "at least one additional measurement report or command after the current one", |
| 1653 | "no additional measurement report or command" |
| 1654 | }; |
| 1655 | |
| 1656 | static const true_false_string repetition_se6_tfs = { |
| 1657 | "repeated highest priority data section in the C-Plane message", |
| 1658 | "no repetition" |
| 1659 | }; |
| 1660 | |
| 1661 | static const true_false_string repetition_se19_tfs = { |
| 1662 | "per port information not present in the extension", |
| 1663 | "per port info present in the extension" |
| 1664 | }; |
| 1665 | |
| 1666 | static const true_false_string tfs_report_no_report_pos_meas = |
| 1667 | { |
| 1668 | "Report MEAS_UE_POS for UE", |
| 1669 | "Do not report UE_POS for UE" |
| 1670 | }; |
| 1671 | |
| 1672 | static const true_false_string tfs_allocated_not_allocated = |
| 1673 | { |
| 1674 | "allocated", |
| 1675 | "not allocated" |
| 1676 | }; |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | /* Forward declaration */ |
| 1681 | static int dissect_udcompparam(tvbuff_t *tvb, packet_info *pinfo _U___attribute__((unused)), proto_tree *tree, unsigned offset, |
| 1682 | unsigned comp_meth, |
| 1683 | uint32_t *exponent, uint16_t *sReSMask, bool_Bool for_sinr); |
| 1684 | |
| 1685 | |
| 1686 | static const true_false_string ready_tfs = { |
| 1687 | "message is a \"ready\" message", |
| 1688 | "message is a ACK message" |
| 1689 | }; |
| 1690 | |
| 1691 | static const true_false_string multi_sd_scope_tfs = { |
| 1692 | "Puncturing pattern applies to current and following sections", |
| 1693 | "Puncturing pattern applies to current section" |
| 1694 | }; |
| 1695 | |
| 1696 | static const true_false_string tfs_ueid_reset = { |
| 1697 | "cannot assume same UE as in preceding slot", |
| 1698 | "can assume same UE as in preceding slot" |
| 1699 | }; |
| 1700 | |
| 1701 | |
| 1702 | typedef struct { |
| 1703 | uint32_t start; /* first prb of bundle */ |
| 1704 | uint32_t end; /* last prb of bundle*/ |
| 1705 | bool_Bool is_orphan; /* true if not complete (i.e., end-start < numBundPrb) */ |
| 1706 | uint8_t bit_from_rbg_mask; /* 0 means not set, other bits offset by 1 */ |
| 1707 | } bundle_t; |
| 1708 | |
| 1709 | |
| 1710 | /* Config for (and later, worked-out allocations) bundles for ext11 (dynamic BFW) */ |
| 1711 | typedef struct { |
| 1712 | /* Ext 6 config */ |
| 1713 | bool_Bool ext6_set; |
| 1714 | uint8_t ext6_rbg_size; /* number of PRBs in resource block group (i.e., one bit in bitmask) */ |
| 1715 | |
| 1716 | uint8_t ext6_num_bits_set; /* Total number of rbgMask bits set */ |
| 1717 | uint8_t ext6_bits_set[28]; /* Which bit position this entry has */ |
| 1718 | /* TODO: store an f value for each bit position? */ |
| 1719 | |
| 1720 | /* Ext 12 config */ |
| 1721 | bool_Bool ext12_set; |
| 1722 | unsigned ext12_num_pairs; |
| 1723 | #define MAX_BFW_EXT12_PAIRS128 128 |
| 1724 | struct { |
| 1725 | uint8_t off_start_prb; |
| 1726 | uint8_t num_prb; |
| 1727 | } ext12_pairs[MAX_BFW_EXT12_PAIRS128]; |
| 1728 | |
| 1729 | /* Ext 13 config */ |
| 1730 | bool_Bool ext13_set; |
| 1731 | unsigned ext13_num_start_prbs; |
| 1732 | #define MAX_BFW_EXT13_ALLOCATIONS128 128 |
| 1733 | unsigned ext13_start_prbs[MAX_BFW_EXT13_ALLOCATIONS128]; |
| 1734 | /* TODO: store nextSymbolId here too? */ |
| 1735 | |
| 1736 | /* Ext 21 config */ |
| 1737 | bool_Bool ext21_set; |
| 1738 | uint8_t ext21_ci_prb_group_size; |
| 1739 | |
| 1740 | /* Results/settings (after calling ext11_work_out_bundles()) */ |
| 1741 | uint32_t num_bundles; |
| 1742 | #define MAX_BFW_BUNDLES512 512 |
| 1743 | bundle_t bundles[MAX_BFW_BUNDLES512]; |
| 1744 | } ext11_settings_t; |
| 1745 | |
| 1746 | |
| 1747 | /* Work out bundle allocation for ext 11. Take into account ext6/ext21, ext12 or ext13 in this section before ext 11. */ |
| 1748 | /* Won't be called with numBundPrb=0 */ |
| 1749 | static void ext11_work_out_bundles(unsigned startPrbc, |
| 1750 | unsigned numPrbc, |
| 1751 | unsigned numBundPrb, /* number of PRBs per (full) bundle */ |
| 1752 | ext11_settings_t *settings) |
| 1753 | { |
| 1754 | /* Allocation configured by ext 6 */ |
| 1755 | if (settings->ext6_set) { |
| 1756 | unsigned bundles_per_mask_bit = (settings->ext6_rbg_size / numBundPrb); |
| 1757 | |
| 1758 | /* Need to cope with these not dividing exactly, or even having more PRbs in a bundle that |
| 1759 | rbg size. i.e. each bundle gets the correct number of PRBs until |
| 1760 | all rbg entries are consumed... */ |
| 1761 | |
| 1762 | /* TODO: need to check 7.9.4.2. Different cases depending upon value of RAD */ |
| 1763 | |
| 1764 | if (bundles_per_mask_bit == 0) { |
| 1765 | bundles_per_mask_bit = 1; |
| 1766 | } |
| 1767 | |
| 1768 | /* Ext6 behaviour may also be affected by ext 21 */ |
| 1769 | if (settings->ext21_set) { |
| 1770 | /* N.B., have already checked that numPrbc is not 0 */ |
| 1771 | |
| 1772 | /* ciPrbGroupSize overrides number of contiguous PRBs in group */ |
| 1773 | bundles_per_mask_bit = (settings->ext6_rbg_size / settings->ext21_ci_prb_group_size); |
| 1774 | |
| 1775 | /* numPrbc is the number of PRB groups per antenna - handled in call to dissect_bfw_bundle() */ |
| 1776 | } |
| 1777 | |
| 1778 | unsigned bundles_set = 0; |
| 1779 | bool_Bool reached_orphan = false0; |
| 1780 | |
| 1781 | /* For each bit set in ext6 rbg mask.. */ |
| 1782 | for (unsigned n=0; |
| 1783 | !reached_orphan && n < 28 && n < settings->ext6_num_bits_set; |
| 1784 | n++) { |
| 1785 | |
| 1786 | /* For each bundle... */ |
| 1787 | |
| 1788 | /* TODO: Work out where first PRB is */ |
| 1789 | /* May not be the start of an rbg block... */ |
| 1790 | uint32_t prb_start = (settings->ext6_bits_set[n] * settings->ext6_rbg_size); |
| 1791 | |
| 1792 | /* For each bundle within identified rbgSize block */ |
| 1793 | for (unsigned m=0; !reached_orphan && m < bundles_per_mask_bit; m++) { |
| 1794 | |
| 1795 | settings->bundles[bundles_set].start = startPrbc+prb_start+(m*numBundPrb); |
| 1796 | |
| 1797 | /* Start already beyond end, so doesn't count. */ |
| 1798 | if (settings->bundles[bundles_set].start > (startPrbc+numPrbc-1)) { |
| 1799 | settings->num_bundles = bundles_set; |
| 1800 | return; |
| 1801 | } |
| 1802 | |
| 1803 | /* Bundle consists of numBundPrb bundles */ |
| 1804 | /* TODO: may involve PRBs from >1 rbg blocks.. */ |
| 1805 | settings->bundles[bundles_set].end = startPrbc+prb_start+((m+1)*numBundPrb)-1; |
| 1806 | if (settings->bundles[bundles_set].end > (startPrbc+numPrbc-1)) { |
| 1807 | /* Extends beyond end, so counts but is an orphan bundle */ |
| 1808 | settings->bundles[bundles_set].end = startPrbc+numPrbc-1; |
| 1809 | settings->bundles[bundles_set].is_orphan = true1; |
| 1810 | reached_orphan = true1; |
| 1811 | } |
| 1812 | |
| 1813 | /* Record which rbg this bundle comes from (+1) */ |
| 1814 | settings->bundles[bundles_set].bit_from_rbg_mask = settings->ext6_bits_set[n]+1; |
| 1815 | |
| 1816 | /* Get out if have reached array bound */ |
| 1817 | if (++bundles_set == MAX_BFW_BUNDLES512) { |
| 1818 | return; |
| 1819 | } |
| 1820 | } |
| 1821 | } |
| 1822 | settings->num_bundles = bundles_set; |
| 1823 | } |
| 1824 | |
| 1825 | /* Allocation configured by ext 12 */ |
| 1826 | else if (settings->ext12_set) { |
| 1827 | /* First, allocate normally from startPrbc, numPrbc */ |
| 1828 | settings->num_bundles = (numPrbc+numBundPrb-1) / numBundPrb; |
| 1829 | |
| 1830 | /* Don't overflow settings->bundles[] ! */ |
| 1831 | settings->num_bundles = MIN(MAX_BFW_BUNDLES, settings->num_bundles)(((512) < (settings->num_bundles)) ? (512) : (settings-> num_bundles)); |
| 1832 | |
| 1833 | for (uint32_t n=0; n < settings->num_bundles; n++) { |
| 1834 | settings->bundles[n].start = startPrbc + n*numBundPrb; |
| 1835 | settings->bundles[n].end = settings->bundles[n].start + numBundPrb-1; |
| 1836 | /* Does it go beyond the end? */ |
| 1837 | if (settings->bundles[n].end > startPrbc+numPrbc-1) { |
| 1838 | settings->bundles[n].end = startPrbc+numPrbc-1; |
| 1839 | settings->bundles[n].is_orphan = true1; |
| 1840 | } |
| 1841 | } |
| 1842 | if (settings->num_bundles == MAX_BFW_BUNDLES512) { |
| 1843 | return; |
| 1844 | } |
| 1845 | |
| 1846 | unsigned prb_offset = startPrbc + numPrbc; |
| 1847 | |
| 1848 | /* Loop over pairs, adding bundles for each */ |
| 1849 | for (unsigned p=0; p < settings->ext12_num_pairs; p++) { |
| 1850 | prb_offset += settings->ext12_pairs[p].off_start_prb; |
| 1851 | unsigned pair_bundles = (settings->ext12_pairs[p].num_prb+numBundPrb-1) / numBundPrb; |
| 1852 | |
| 1853 | for (uint32_t n=0; n < pair_bundles; n++) { |
| 1854 | unsigned idx = settings->num_bundles; |
| 1855 | |
| 1856 | settings->bundles[idx].start = prb_offset + n*numBundPrb; |
| 1857 | settings->bundles[idx].end = settings->bundles[idx].start + numBundPrb-1; |
| 1858 | /* Does it go beyond the end? */ |
| 1859 | if (settings->bundles[idx].end > prb_offset + settings->ext12_pairs[p].num_prb - 1) { |
| 1860 | settings->bundles[idx].end = prb_offset + settings->ext12_pairs[p].num_prb - 1; |
| 1861 | settings->bundles[idx].is_orphan = true1; |
| 1862 | } |
| 1863 | /* Range check / return */ |
| 1864 | settings->num_bundles++; |
| 1865 | if (settings->num_bundles == MAX_BFW_BUNDLES512) { |
| 1866 | return; |
| 1867 | } |
| 1868 | } |
| 1869 | |
| 1870 | prb_offset += settings->ext12_pairs[p].num_prb; |
| 1871 | } |
| 1872 | } |
| 1873 | |
| 1874 | /* Allocation configured by ext 13 */ |
| 1875 | else if (settings->ext13_set) { |
| 1876 | unsigned alloc_size = (numPrbc+numBundPrb-1) / numBundPrb; |
| 1877 | settings->num_bundles = alloc_size * settings->ext13_num_start_prbs; |
| 1878 | |
| 1879 | /* Don't overflow settings->bundles[] ! */ |
| 1880 | settings->num_bundles = MIN(MAX_BFW_BUNDLES, settings->num_bundles)(((512) < (settings->num_bundles)) ? (512) : (settings-> num_bundles)); |
| 1881 | |
| 1882 | for (unsigned alloc=0; alloc < settings->ext13_num_start_prbs; alloc++) { |
| 1883 | unsigned alloc_start = alloc * alloc_size; |
| 1884 | for (uint32_t n=0; n < alloc_size; n++) { |
| 1885 | if ((alloc_start+n) >= MAX_BFW_BUNDLES512) { |
| 1886 | /* ERROR */ |
| 1887 | return; |
| 1888 | } |
| 1889 | settings->bundles[alloc_start+n].start = settings->ext13_start_prbs[alloc] + startPrbc + n*numBundPrb; |
| 1890 | settings->bundles[alloc_start+n].end = settings->bundles[alloc_start+n].start + numBundPrb-1; |
| 1891 | if (settings->bundles[alloc_start+n].end > settings->ext13_start_prbs[alloc] + startPrbc + numPrbc - 1) { |
| 1892 | settings->bundles[alloc_start+n].end = settings->ext13_start_prbs[alloc] + startPrbc + numPrbc - 1; |
| 1893 | settings->bundles[alloc_start+n].is_orphan = true1; |
| 1894 | } |
| 1895 | } |
| 1896 | } |
| 1897 | } |
| 1898 | |
| 1899 | /* Case where bundles are not controlled by other extensions - just divide up range into bundles we have */ |
| 1900 | else { |
| 1901 | settings->num_bundles = (numPrbc+numBundPrb-1) / numBundPrb; /* rounded up */ |
| 1902 | |
| 1903 | /* Don't overflow settings->bundles[] */ |
| 1904 | settings->num_bundles = MIN(MAX_BFW_BUNDLES, settings->num_bundles)(((512) < (settings->num_bundles)) ? (512) : (settings-> num_bundles)); |
| 1905 | |
| 1906 | /* For each bundle.. */ |
| 1907 | for (uint32_t n=0; n < settings->num_bundles; n++) { |
| 1908 | /* Allocate start and end */ |
| 1909 | settings->bundles[n].start = startPrbc + n*numBundPrb; |
| 1910 | settings->bundles[n].end = settings->bundles[n].start + numBundPrb - 1; |
| 1911 | /* If would go beyond end of PRBs, limit and identify as orphan */ |
| 1912 | if (settings->bundles[n].end > startPrbc+numPrbc-1) { |
| 1913 | settings->bundles[n].end = startPrbc+numPrbc-1; |
| 1914 | settings->bundles[n].is_orphan = true1; |
| 1915 | } |
| 1916 | } |
| 1917 | } |
| 1918 | } |
| 1919 | |
| 1920 | |
| 1921 | /* Modulation Compression configuration */ |
| 1922 | typedef struct { |
| 1923 | /* Application of each entry is filtered by RE. |
| 1924 | * TODO: should also be filtered by PRB + symbol... */ |
| 1925 | uint16_t mod_compr_re_mask; |
| 1926 | |
| 1927 | /* Settings to apply */ |
| 1928 | bool_Bool mod_compr_csf; |
| 1929 | float mod_compr_scaler; |
| 1930 | } mod_compr_config_t; |
| 1931 | |
| 1932 | /* Multiple configs with a section */ |
| 1933 | typedef struct { |
| 1934 | uint16_t section_id; |
| 1935 | uint32_t num_configs; |
| 1936 | |
| 1937 | #define MAX_MOD_COMPR_CONFIGS12 12 |
| 1938 | mod_compr_config_t configs[MAX_MOD_COMPR_CONFIGS12]; |
| 1939 | } section_mod_compr_config_t; |
| 1940 | |
| 1941 | /* Flow has separate configs for each section */ |
| 1942 | typedef struct { |
| 1943 | uint16_t num_sections; |
| 1944 | |
| 1945 | /* Separate config for each section */ |
| 1946 | section_mod_compr_config_t sections[MAX_SECTION_IDs32]; |
| 1947 | } mod_compr_params_t; |
| 1948 | |
| 1949 | |
| 1950 | typedef struct { |
| 1951 | uint32_t frame_number; |
| 1952 | nstime_t frame_time; |
| 1953 | |
| 1954 | /* Timing to match */ |
| 1955 | uint8_t frame; |
| 1956 | uint8_t subframe; |
| 1957 | uint8_t slot; |
| 1958 | uint8_t startSymbol; |
| 1959 | |
| 1960 | bool_Bool in_use; |
| 1961 | uint16_t startPrb; |
| 1962 | uint16_t numPrb; |
| 1963 | uint16_t numSymbols; |
| 1964 | /* beamId of the section, covering startPrb..startPrb+numPrb (and 0 elsewhere) */ |
| 1965 | uint16_t beamId; |
| 1966 | /* Per-PRB beamIds, only allocated (file scope) when an extension sets |
| 1967 | * different beamIds for ranges of PRBs. Never modified once a U-plane |
| 1968 | * frame may have copied this struct (a new array is allocated for each |
| 1969 | * C-plane definition), so the copy can be shallow. */ |
| 1970 | uint16_t *beamIds; |
| 1971 | } section_details_t; |
| 1972 | |
| 1973 | #define ORAN_MAX_PRBS273 273 |
| 1974 | |
| 1975 | /* BeamId to use for the given PRB of this section */ |
| 1976 | static uint16_t |
| 1977 | section_details_get_beam_id(const section_details_t *details, unsigned prb) |
| 1978 | { |
| 1979 | if (details->beamIds) { |
| 1980 | return details->beamIds[prb]; |
| 1981 | } |
| 1982 | if (prb >= details->startPrb && prb <= (unsigned)details->startPrb + details->numPrb) { |
| 1983 | return details->beamId; |
| 1984 | } |
| 1985 | return 0; |
| 1986 | } |
| 1987 | |
| 1988 | /* Set beamId of one PRB (C-plane only, on first pass) */ |
| 1989 | static void |
| 1990 | section_details_set_beam_id(section_details_t *details, unsigned prb, uint16_t beam_id) |
| 1991 | { |
| 1992 | if (prb >= ORAN_MAX_PRBS273) { |
| 1993 | return; |
| 1994 | } |
| 1995 | if (!details->beamIds) { |
| 1996 | uint16_t *beam_ids = wmem_alloc_array(wmem_file_scope(), uint16_t, ORAN_MAX_PRBS)((uint16_t*)wmem_alloc((wmem_file_scope()), (((((273)) <= 0 ) || ((size_t)sizeof(uint16_t) > (9223372036854775807L / ( size_t)((273))))) ? 0 : (sizeof(uint16_t) * ((273)))))); |
| 1997 | /* Keep the scalar fallback active until every entry is initialized. */ |
| 1998 | for (unsigned n = 0; n < ORAN_MAX_PRBS273; n++) { |
| 1999 | beam_ids[n] = section_details_get_beam_id(details, n); |
| 2000 | } |
| 2001 | details->beamIds = beam_ids; |
| 2002 | } |
| 2003 | details->beamIds[prb] = beam_id; |
| 2004 | } |
| 2005 | |
| 2006 | typedef struct { |
| 2007 | uint16_t sectionId; |
| 2008 | /* For the same sectionId, can have 2 currently active entries.. */ |
| 2009 | section_details_t details[2]; |
| 2010 | } expected_section_data_t; |
| 2011 | |
| 2012 | |
| 2013 | /*******************************************************/ |
| 2014 | /* Overall state of a flow (eAxC/plane) */ |
| 2015 | typedef struct { |
| 2016 | /* State for sequence analysis [each direction] */ |
| 2017 | bool_Bool last_frame_seen[2]; |
| 2018 | uint32_t last_frame[2]; |
| 2019 | uint8_t next_expected_sequence_number[2]; |
| 2020 | |
| 2021 | /* expected frames. sectionId -> expected_section_data_t* */ |
| 2022 | wmem_tree_t *expected_sections[2]; /* [direction] */ |
| 2023 | |
| 2024 | /* Table recording ackNack requests (ackNackId -> ack_nack_request_t*) |
| 2025 | Note that this assumes that the same ackNackId will not be reused within a state, |
| 2026 | which may well not be valid */ |
| 2027 | wmem_tree_t *ack_nack_requests; |
| 2028 | |
| 2029 | /* Store udCompHdr seen in C-Plane for UL - can be looked up and used by U-PLane. |
| 2030 | Note that this appears in the common section header parts of ST1, ST3, ST5, |
| 2031 | so can still be over-written per sectionId in the U-Plane */ |
| 2032 | unsigned ul_ud_comp_hdr_frame; |
| 2033 | bool_Bool ul_ud_comp_hdr_set; |
| 2034 | unsigned ul_ud_comp_hdr_bit_width; |
| 2035 | int ul_ud_comp_hdr_compression; |
| 2036 | |
| 2037 | bool_Bool udcomphdrDownlink_heuristic_result_set; |
| 2038 | bool_Bool udcomphdrDownlink_heuristic_result; |
| 2039 | bool_Bool udcomphdrUplink_heuristic_result_set; |
| 2040 | bool_Bool udcomphdrUplink_heuristic_result; |
| 2041 | |
| 2042 | /* Modulation compression params */ |
| 2043 | mod_compr_params_t mod_comp_params; |
| 2044 | } flow_state_t; |
| 2045 | |
| 2046 | static section_mod_compr_config_t* get_mod_compr_section_to_write(packet_info *pinfo, flow_state_t *flow, |
| 2047 | unsigned sectionId) |
| 2048 | { |
| 2049 | /* Only record configs on the first pass */ |
| 2050 | if (flow == NULL((void*)0) || PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 2051 | return NULL((void*)0); |
| 2052 | } |
| 2053 | |
| 2054 | /* Look for this section among existing entries */ |
| 2055 | for (unsigned s=0; s < flow->mod_comp_params.num_sections; s++) { |
| 2056 | if (flow->mod_comp_params.sections[s].section_id == sectionId) { |
| 2057 | return &flow->mod_comp_params.sections[s]; |
| 2058 | } |
| 2059 | } |
| 2060 | |
| 2061 | /* Not found, so try to add a new one */ |
| 2062 | if (flow->mod_comp_params.num_sections >= MAX_SECTION_IDs32) { |
| 2063 | /* Can't allocate one! */ |
| 2064 | return NULL((void*)0); |
| 2065 | } |
| 2066 | else { |
| 2067 | flow->mod_comp_params.sections[flow->mod_comp_params.num_sections].section_id = sectionId; |
| 2068 | return &flow->mod_comp_params.sections[flow->mod_comp_params.num_sections++]; |
| 2069 | } |
| 2070 | } |
| 2071 | |
| 2072 | static section_mod_compr_config_t* get_mod_compr_section_to_read(flow_state_t *flow, |
| 2073 | unsigned sectionId) |
| 2074 | { |
| 2075 | if (flow == NULL((void*)0)) { |
| 2076 | return NULL((void*)0); |
| 2077 | } |
| 2078 | |
| 2079 | /* Look for this section among existing entries */ |
| 2080 | for (unsigned s=0; s < flow->mod_comp_params.num_sections; s++) { |
| 2081 | if (flow->mod_comp_params.sections[s].section_id == sectionId) { |
| 2082 | return &flow->mod_comp_params.sections[s]; |
| 2083 | } |
| 2084 | } |
| 2085 | |
| 2086 | /* Not found */ |
| 2087 | return NULL((void*)0); |
| 2088 | } |
| 2089 | |
| 2090 | |
| 2091 | |
| 2092 | typedef struct { |
| 2093 | uint32_t request_frame_number; |
| 2094 | nstime_t request_frame_time; |
| 2095 | enum { |
| 2096 | SE22, |
| 2097 | ST4Cmd1, |
| 2098 | ST4Cmd2, |
| 2099 | ST4Cmd3, |
| 2100 | ST4Cmd4, |
| 2101 | ST4Cmd5, |
| 2102 | ST4Cmd6 |
| 2103 | } requestType; |
| 2104 | |
| 2105 | uint32_t response_frame_number; |
| 2106 | nstime_t response_frame_time; |
| 2107 | } ack_nack_request_t; |
| 2108 | |
| 2109 | static const value_string acknack_type_vals[] = { |
| 2110 | { SE22, "SE 22" }, |
| 2111 | { ST4Cmd1, "ST4 (TIME_DOMAIN_BEAM_CONFIG)" }, |
| 2112 | { ST4Cmd2, "ST4 (TDD_CONFIG_PATTERN)" }, |
| 2113 | { ST4Cmd3, "ST4 (TRX_CONTROL)" }, |
| 2114 | { ST4Cmd4, "ST4 (ASM)" }, |
| 2115 | { ST4Cmd5, "ST4 (TRX_CONTROL_BIDIR)" }, |
| 2116 | { ST4Cmd6, "ST4 (MAX_POWER_CONTROL)" }, |
| 2117 | { 0, NULL((void*)0)} |
| 2118 | }; |
| 2119 | |
| 2120 | #define ORAN_C_PLANE0 0 |
| 2121 | #define ORAN_U_PLANE1 1 |
| 2122 | |
| 2123 | |
| 2124 | |
| 2125 | /* Table maintained on first pass from flow_key(uint32_t) -> flow_state_t* */ |
| 2126 | static wmem_tree_t *flow_states_table; |
| 2127 | |
| 2128 | |
| 2129 | /* Includes transport details (eth addresses + vlan) */ |
| 2130 | /* First and last bytes of the Ethernet source and destination, in the order of the flow */ |
| 2131 | static uint32_t flow_key_addresses(packet_info *pinfo, bool_Bool opposite_dir) |
| 2132 | { |
| 2133 | uint32_t word = 0; |
| 2134 | const uint8_t *src_eth = (pinfo->dl_src.type == AT_ETHER) ? (const uint8_t*)pinfo->dl_src.data : NULL((void*)0); |
| 2135 | const uint8_t *dst_eth = (pinfo->dl_dst.type == AT_ETHER) ? (const uint8_t*)pinfo->dl_dst.data : NULL((void*)0); |
| 2136 | |
| 2137 | if (!opposite_dir) { |
| 2138 | if (src_eth) { |
| 2139 | word |= src_eth[5] | (src_eth[0] << 8); |
| 2140 | } |
| 2141 | if (dst_eth) { |
| 2142 | word |= (dst_eth[5] << 16) | (dst_eth[0] << 24); |
| 2143 | } |
| 2144 | } |
| 2145 | else { |
| 2146 | if (src_eth) { |
| 2147 | word |= (src_eth[5] << 16) | (src_eth[0] << 24); |
| 2148 | } |
| 2149 | if (dst_eth) { |
| 2150 | word |= dst_eth[5] | (dst_eth[0] << 8); |
| 2151 | } |
| 2152 | } |
| 2153 | return word; |
| 2154 | } |
| 2155 | |
| 2156 | static flow_state_t* lookup_flow(packet_info *pinfo, uint16_t eaxc_id, uint8_t plane, bool_Bool opposite_dir) |
| 2157 | { |
| 2158 | wmem_tree_key_t key[3]; |
| 2159 | uint32_t word1, word2; |
| 2160 | |
| 2161 | /* 1st value is vlan_id(15) | plane(1) | eaxc_id(16) */ |
| 2162 | word1 = eaxc_id | (plane << 16) | (pinfo->vlan_id << 17); |
| 2163 | key[0].length = 1; |
| 2164 | key[0].key = &word1; |
| 2165 | |
| 2166 | /* 2nd word is first/last bytes of eth src/dst */ |
| 2167 | word2 = flow_key_addresses(pinfo, opposite_dir); |
| 2168 | key[1].length = 1; |
| 2169 | key[1].key = &word2; |
| 2170 | key[2].length = 0; |
| 2171 | key[2].key = NULL((void*)0); |
| 2172 | |
| 2173 | return (flow_state_t*)wmem_tree_lookup32_array(flow_states_table, key); |
| 2174 | } |
| 2175 | |
| 2176 | static void store_flow(packet_info *pinfo, uint16_t eaxc_id, uint8_t plane, bool_Bool opposite_dir, flow_state_t *state) |
| 2177 | { |
| 2178 | wmem_tree_key_t key[3]; |
| 2179 | uint32_t word1, word2; |
| 2180 | |
| 2181 | /* 1st value is vlan_id(15) | plane(1) | eaxc_id(16) */ |
| 2182 | word1 = eaxc_id | (plane << 16) | (pinfo->vlan_id << 17); |
| 2183 | key[0].length = 1; |
| 2184 | key[0].key = &word1; |
| 2185 | |
| 2186 | /* 2nd word is first/last bytes of eth src/dst */ |
| 2187 | word2 = flow_key_addresses(pinfo, opposite_dir); |
| 2188 | key[1].length = 1; |
| 2189 | key[1].key = &word2; |
| 2190 | key[2].length = 0; |
| 2191 | key[2].key = NULL((void*)0); |
| 2192 | |
| 2193 | wmem_tree_insert32_array(flow_states_table, key, state); |
| 2194 | } |
| 2195 | |
| 2196 | |
| 2197 | |
| 2198 | |
| 2199 | typedef struct { |
| 2200 | uint32_t frame_number; |
| 2201 | uint16_t sectionId; |
| 2202 | uint32_t gap_in_usecs; |
| 2203 | uint8_t symbol; |
| 2204 | uint16_t startPrbu; |
| 2205 | uint16_t numPrbu; |
| 2206 | } corresponding_uplane_frame; |
| 2207 | |
| 2208 | /* Table consulted on subsequent passes: frame_num -> flow_result_t* */ |
| 2209 | static wmem_tree_t *flow_results_table; |
| 2210 | |
| 2211 | typedef struct { |
| 2212 | /* Sequence analysis */ |
| 2213 | bool_Bool unexpected_seq_number; |
| 2214 | uint8_t expected_sequence_number; |
| 2215 | uint32_t previous_frame; |
| 2216 | |
| 2217 | /* sectionId -> expected_section_data_t* */ |
| 2218 | /* Frame only covers one downlink (no modulation compression in UL) */ |
| 2219 | wmem_tree_t *expected_sections; |
| 2220 | |
| 2221 | /* List of u-plane frames (corresponding_uplane_frame*) corresponding to a c-plane frame */ |
| 2222 | wmem_list_t *u_plane_frames; |
| 2223 | |
| 2224 | /* Whether a C-plane flow had been seen when a u-plane frame was first seen */ |
| 2225 | bool_Bool cplane_seen; |
| 2226 | |
| 2227 | /* UL udCompHdr settings from the C-plane when a UL u-plane frame was first seen */ |
| 2228 | bool_Bool ul_ud_comp_hdr_set; |
| 2229 | unsigned ul_ud_comp_hdr_bit_width; |
| 2230 | int ul_ud_comp_hdr_compression; |
| 2231 | unsigned ul_ud_comp_hdr_frame; |
| 2232 | } flow_result_t; |
| 2233 | |
| 2234 | |
| 2235 | /* Uplink timing */ |
| 2236 | /* For a given symbol, track first to last UL frame to find out first-last time */ |
| 2237 | /* frameId (8) + subframeId (4) + slotId (6) + symbolId (6) = 24 bits */ |
| 2238 | /* N.B. if a capture lasts > 2.5s, may see same timing come around again... */ |
| 2239 | static uint32_t get_timing_key(uint8_t frameId, uint8_t subframeId, uint8_t slotId, uint8_t symbolId) |
| 2240 | { |
| 2241 | return symbolId + (slotId<<8) + (subframeId<<14) + (frameId<<18); |
| 2242 | } |
| 2243 | |
| 2244 | typedef struct { |
| 2245 | uint32_t first_frame; |
| 2246 | nstime_t first_frame_time; |
| 2247 | uint32_t frames_seen_in_symbol; |
| 2248 | uint32_t last_frame_in_symbol; |
| 2249 | } ul_timing_for_slot; |
| 2250 | |
| 2251 | /* Set during first pass. timing_key -> ul_timing_for_slot* */ |
| 2252 | static wmem_tree_t *ul_symbol_timing; |
| 2253 | |
| 2254 | |
| 2255 | /* Tracking lifetimes of DL beamIds */ |
| 2256 | typedef struct { |
| 2257 | uint32_t frame_defined; |
| 2258 | uint32_t symbol_when_defined; |
| 2259 | } bfw_definition; |
| 2260 | |
| 2261 | /* Maintained during first pass: beamId (from ext11) -> bfw_definition */ |
| 2262 | static wmem_tree_t *dl_beam_ids_defined; |
| 2263 | /* Lookup where/when beamIds were defined (frameid:beamid) -> bfw_definition */ |
| 2264 | static wmem_tree_t *dl_beam_ids_results; |
| 2265 | |
| 2266 | |
| 2267 | static void show_link_to_acknack_response(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, |
| 2268 | ack_nack_request_t *response); |
| 2269 | |
| 2270 | |
| 2271 | |
| 2272 | |
| 2273 | static void write_pdu_label_and_info(proto_item *ti1, proto_item *ti2, |
| 2274 | packet_info *pinfo, const char *format, ...) G_GNUC_PRINTF(4, 5)__attribute__((__format__ (__printf__, 4, 5))); |
| 2275 | |
| 2276 | /* Write the given formatted text to: |
| 2277 | - the info column (if pinfo != NULL) |
| 2278 | - 1 or 2 other labels (optional) |
| 2279 | */ |
| 2280 | static void write_pdu_label_and_info(proto_item *ti1, proto_item *ti2, |
| 2281 | packet_info *pinfo, const char *format, ...) |
| 2282 | { |
| 2283 | #define MAX_INFO_BUFFER256 256 |
| 2284 | char info_buffer[MAX_INFO_BUFFER256]; |
| 2285 | va_list ap; |
| 2286 | |
| 2287 | if ((ti1 == NULL((void*)0)) && (ti2 == NULL((void*)0)) && (pinfo == NULL((void*)0))) { |
| 2288 | return; |
| 2289 | } |
| 2290 | |
| 2291 | va_start(ap, format)__builtin_va_start(ap, format); |
| 2292 | vsnprintf(info_buffer, MAX_INFO_BUFFER256, format, ap); |
| 2293 | va_end(ap)__builtin_va_end(ap); |
| 2294 | |
| 2295 | /* Add to indicated places */ |
| 2296 | if (pinfo != NULL((void*)0)) { |
| 2297 | col_append_str(pinfo->cinfo, COL_INFO, info_buffer); |
| 2298 | } |
| 2299 | if (ti1 != NULL((void*)0)) { |
| 2300 | proto_item_append_text(ti1, "%s", info_buffer); |
| 2301 | } |
| 2302 | if (ti2 != NULL((void*)0)) { |
| 2303 | proto_item_append_text(ti2, "%s", info_buffer); |
| 2304 | } |
| 2305 | } |
| 2306 | |
| 2307 | /* Add section labels (type + PRB range) for C-Plane, U-Plane */ |
| 2308 | static void |
| 2309 | write_section_info(proto_item *section_heading, packet_info *pinfo, proto_item *protocol_item, |
| 2310 | uint32_t section_id, uint32_t start_prbx, uint32_t num_prbx, uint32_t rb) |
| 2311 | { |
| 2312 | switch (num_prbx) { |
| 2313 | case 0: |
| 2314 | /* None -> all */ |
| 2315 | write_pdu_label_and_info(section_heading, protocol_item, pinfo, ", Id: %4d (all PRBs)", section_id); |
| 2316 | break; |
| 2317 | case 1: |
| 2318 | /* Single PRB */ |
| 2319 | write_pdu_label_and_info(section_heading, protocol_item, pinfo, ", Id: %4d (PRB: %7u)", section_id, start_prbx); |
| 2320 | break; |
| 2321 | default: |
| 2322 | /* Range */ |
| 2323 | write_pdu_label_and_info(section_heading, protocol_item, pinfo, ", Id: %4d (PRB: %3u-%3u%s)", section_id, start_prbx, |
| 2324 | start_prbx + (num_prbx-1)*(1+rb), rb ? " (every-other)" : ""); |
| 2325 | } |
| 2326 | } |
| 2327 | |
| 2328 | static void |
| 2329 | write_channel_section_info(proto_item *section_heading, packet_info *pinfo, |
| 2330 | uint32_t section_id, uint32_t ueId, uint32_t start_prbx, uint32_t num_prbx, |
| 2331 | uint32_t num_trx) |
| 2332 | { |
| 2333 | switch (num_prbx) { |
| 2334 | case 0: |
| 2335 | /* TODO: ?? */ |
| 2336 | break; |
| 2337 | case 1: |
| 2338 | /* Single PRB */ |
| 2339 | write_pdu_label_and_info(section_heading, NULL((void*)0), pinfo, |
| 2340 | ", Id: %4d (UEId=%5u PRB %7u, %2u antennas)", |
| 2341 | section_id, ueId, start_prbx, num_trx); |
| 2342 | break; |
| 2343 | default: |
| 2344 | /* Range */ |
| 2345 | write_pdu_label_and_info(section_heading, NULL((void*)0), pinfo, |
| 2346 | ", Id: %4d (UEId=%5u PRBs %3u-%3u, %2u antennas)", |
| 2347 | section_id, ueId, start_prbx, start_prbx+num_prbx-1, num_trx); |
| 2348 | } |
| 2349 | } |
| 2350 | |
| 2351 | /* Add a reserved field, and warn if value isn't 0 */ |
| 2352 | /* TODO: maybe add a pref not to output expert warning if becomes too annoying? */ |
| 2353 | static void add_reserved_field(proto_tree *tree, int hf, tvbuff_t *tvb, int offset, int len) |
| 2354 | { |
| 2355 | uint32_t reserved; |
| 2356 | proto_item *res_ti = proto_tree_add_item_ret_uint(tree, hf, tvb, offset, len, ENC_NA0x00000000, &reserved); |
| 2357 | if (reserved != 0) { |
| 2358 | expert_add_info_format(NULL((void*)0), res_ti, &ei_oran_reserved_not_zero, |
| 2359 | "reserved field saw value of 0x%x", reserved); |
| 2360 | } |
| 2361 | } |
| 2362 | |
| 2363 | /* 5.1.3.2.7 (real time control data / IQ data transfer message series identifier) */ |
| 2364 | static void |
| 2365 | addPcOrRtcid(tvbuff_t *tvb, proto_tree *tree, unsigned *offset, int hf, uint16_t *eAxC, oran_tap_info *tap_info) |
| 2366 | { |
| 2367 | /* Subtree */ |
| 2368 | proto_item *oran_pcid_ti = proto_tree_add_item(tree, hf, |
| 2369 | tvb, *offset, 2, ENC_NA0x00000000); |
| 2370 | proto_tree *oran_pcid_tree = proto_item_add_subtree(oran_pcid_ti, ett_oran_ecpri_pcid); |
| 2371 | |
| 2372 | uint64_t duPortId, bandSectorId, ccId, ruPortId = 0; |
| 2373 | int id_offset = *offset; |
| 2374 | |
| 2375 | /* All parts of eAxC should be above 0, and should total 16 bits (breakdown controlled by preferences) */ |
| 2376 | if (!((pref_du_port_id_bits > 0) && (pref_bandsector_id_bits > 0) && (pref_cc_id_bits > 0) && (pref_ru_port_id_bits > 0) && |
| 2377 | ((pref_du_port_id_bits + pref_bandsector_id_bits + pref_cc_id_bits + pref_ru_port_id_bits) == 16))) { |
| 2378 | expert_add_info(NULL((void*)0), tree, &ei_oran_invalid_eaxc_bit_width); |
| 2379 | *eAxC = 0; |
| 2380 | *offset += 2; |
| 2381 | return; |
| 2382 | } |
| 2383 | |
| 2384 | unsigned bit_offset = *offset * 8; |
| 2385 | |
| 2386 | /* N.B. For sequence analysis / tapping, just interpret these 2 bytes as eAxC ID... */ |
| 2387 | *eAxC = tvb_get_uint16(tvb, *offset, ENC_BIG_ENDIAN0x00000000); |
| 2388 | |
| 2389 | /* DU Port ID */ |
| 2390 | proto_tree_add_bits_ret_val(oran_pcid_tree, hf_oran_du_port_id, tvb, bit_offset, pref_du_port_id_bits, &duPortId, ENC_BIG_ENDIAN0x00000000); |
| 2391 | bit_offset += pref_du_port_id_bits; |
| 2392 | /* BandSector ID */ |
| 2393 | proto_tree_add_bits_ret_val(oran_pcid_tree, hf_oran_bandsector_id, tvb, bit_offset, pref_bandsector_id_bits, &bandSectorId, ENC_BIG_ENDIAN0x00000000); |
| 2394 | bit_offset += pref_bandsector_id_bits; |
| 2395 | /* CC ID */ |
| 2396 | proto_tree_add_bits_ret_val(oran_pcid_tree, hf_oran_cc_id, tvb, bit_offset, pref_cc_id_bits, &ccId, ENC_BIG_ENDIAN0x00000000); |
| 2397 | bit_offset += pref_cc_id_bits; |
| 2398 | /* RU Port ID */ |
| 2399 | proto_tree_add_bits_ret_val(oran_pcid_tree, hf_oran_ru_port_id, tvb, bit_offset, pref_ru_port_id_bits, &ruPortId, ENC_BIG_ENDIAN0x00000000); |
| 2400 | *offset += 2; |
| 2401 | |
| 2402 | proto_item_append_text(oran_pcid_ti, " (DU_Port_ID: %d, BandSector_ID: %d, CC_ID: %d, RU_Port_ID: %d)", |
| 2403 | (int)duPortId, (int)bandSectorId, (int)ccId, (int)ruPortId); |
| 2404 | char id[16]; |
| 2405 | snprintf(id, 16, "%x:%x:%x:%x", (int)duPortId, (int)bandSectorId, (int)ccId, (int)ruPortId); |
| 2406 | proto_item *pi = proto_tree_add_string(oran_pcid_tree, hf_oran_c_eAxC_ID, tvb, id_offset, 2, id); |
| 2407 | proto_item_set_generated(pi); |
| 2408 | |
| 2409 | tap_info->eaxc = *eAxC; |
| 2410 | tap_info->eaxc_du_port_id = (uint16_t)duPortId; |
| 2411 | tap_info->eaxc_bandsector_id = (uint16_t)bandSectorId; |
| 2412 | tap_info->eaxc_cc_id = (uint16_t)ccId; |
| 2413 | tap_info->eaxc_ru_port_id = (uint16_t)ruPortId; |
| 2414 | } |
| 2415 | |
| 2416 | /* Uniquely identify the U-plane stream that may need to be reassembled */ |
| 2417 | static uint32_t make_reassembly_id(uint32_t seqid, uint16_t eAxC, int direction) |
| 2418 | { |
| 2419 | return ((seqid & 0xff) << 24) | ((direction&1)<<16) | (eAxC & 0xffff); |
| 2420 | } |
| 2421 | |
| 2422 | /* 5.1.3.2.8 ecpriSeqid (message identifier) */ |
| 2423 | /* Return out info that may be used for sequence number analysis and reassembly */ |
| 2424 | static int |
| 2425 | addSeqid(tvbuff_t *tvb, proto_tree *oran_tree, int offset, int plane, uint32_t *seq_id, proto_item **seq_id_ti, |
| 2426 | uint32_t *subseqid, uint32_t *e) |
| 2427 | { |
| 2428 | /* Subtree */ |
| 2429 | proto_item *seqIdItem = proto_tree_add_item(oran_tree, hf_oran_ecpri_seqid, tvb, offset, 2, ENC_NA0x00000000); |
| 2430 | proto_tree *oran_seqid_tree = proto_item_add_subtree(seqIdItem, ett_oran_ecpri_seqid); |
| 2431 | |
| 2432 | /* Sequence ID (8 bits) */ |
| 2433 | *seq_id_ti = proto_tree_add_item_ret_uint(oran_seqid_tree, hf_oran_sequence_id, tvb, offset, 1, ENC_NA0x00000000, seq_id); |
| 2434 | offset += 1; |
| 2435 | |
| 2436 | /* E bit */ |
| 2437 | proto_tree_add_item_ret_uint(oran_seqid_tree, hf_oran_e_bit, tvb, offset, 1, ENC_NA0x00000000, e); |
| 2438 | /* Subsequence ID (7 bits) */ |
| 2439 | proto_tree_add_item_ret_uint(oran_seqid_tree, hf_oran_subsequence_id, tvb, offset, 1, ENC_NA0x00000000, subseqid); |
| 2440 | offset += 1; |
| 2441 | |
| 2442 | /* radio-transport fragmentation not allowed for C-Plane messages */ |
| 2443 | if (plane == ORAN_C_PLANE0) { |
| 2444 | if (*e !=1 || *subseqid != 0) { |
| 2445 | expert_add_info(NULL((void*)0), seqIdItem, &ei_oran_radio_fragmentation_c_plane); |
| 2446 | } |
| 2447 | } |
| 2448 | |
| 2449 | /* Summary */ |
| 2450 | proto_item_append_text(seqIdItem, " (SeqId: %3d, E: %d, SubSeqId: %d)", *seq_id, *e, *subseqid); |
| 2451 | return offset; |
| 2452 | } |
| 2453 | |
| 2454 | static int dissect_symbolmask(tvbuff_t *tvb, proto_tree *tree, int offset, uint32_t *symbol_mask, proto_item **ti) |
| 2455 | { |
| 2456 | uint64_t temp_val; |
| 2457 | |
| 2458 | static int * const symbol_mask_flags[] = { |
| 2459 | &hf_oran_symbol_mask_s13, |
| 2460 | &hf_oran_symbol_mask_s12, |
| 2461 | &hf_oran_symbol_mask_s11, |
| 2462 | &hf_oran_symbol_mask_s10, |
| 2463 | &hf_oran_symbol_mask_s9, |
| 2464 | &hf_oran_symbol_mask_s8, |
| 2465 | &hf_oran_symbol_mask_s7, |
| 2466 | &hf_oran_symbol_mask_s6, |
| 2467 | &hf_oran_symbol_mask_s5, |
| 2468 | &hf_oran_symbol_mask_s4, |
| 2469 | &hf_oran_symbol_mask_s3, |
| 2470 | &hf_oran_symbol_mask_s2, |
| 2471 | &hf_oran_symbol_mask_s1, |
| 2472 | &hf_oran_symbol_mask_s0, |
| 2473 | NULL((void*)0) |
| 2474 | }; |
| 2475 | |
| 2476 | proto_item *temp_ti = proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, |
| 2477 | hf_oran_symbol_mask, |
| 2478 | ett_oran_symbol_mask, symbol_mask_flags, |
| 2479 | ENC_BIG_ENDIAN0x00000000, &temp_val); |
| 2480 | /* Set out parameters */ |
| 2481 | if (symbol_mask) { |
| 2482 | *symbol_mask = (uint32_t)temp_val; |
| 2483 | } |
| 2484 | if (ti) { |
| 2485 | *ti = temp_ti; |
| 2486 | } |
| 2487 | return offset+2; |
| 2488 | } |
| 2489 | |
| 2490 | /* 7.7.1.2 bfwCompHdr (beamforming weight compression header) */ |
| 2491 | static int dissect_bfwCompHdr(tvbuff_t *tvb, proto_tree *tree, int offset, |
| 2492 | uint32_t *iq_width, uint32_t *comp_meth, proto_item **comp_meth_ti) |
| 2493 | { |
| 2494 | /* Subtree */ |
| 2495 | proto_item *bfwcomphdr_ti = proto_tree_add_string_format(tree, hf_oran_bfwCompHdr, |
| 2496 | tvb, offset, 1, "", |
| 2497 | "bfwCompHdr"); |
| 2498 | proto_tree *bfwcomphdr_tree = proto_item_add_subtree(bfwcomphdr_ti, ett_oran_bfwcomphdr); |
| 2499 | |
| 2500 | /* Width and method */ |
| 2501 | proto_tree_add_item_ret_uint(bfwcomphdr_tree, hf_oran_bfwCompHdr_iqWidth, |
| 2502 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, iq_width); |
| 2503 | /* Special case: 0 -> 16 */ |
| 2504 | *iq_width = (*iq_width==0) ? 16 : *iq_width; |
| 2505 | *comp_meth_ti = proto_tree_add_item_ret_uint(bfwcomphdr_tree, hf_oran_bfwCompHdr_compMeth, |
| 2506 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, comp_meth); |
| 2507 | offset++; |
| 2508 | |
| 2509 | /* Summary */ |
| 2510 | proto_item_append_text(bfwcomphdr_ti, " (IqWidth=%u, compMeth=%s)", |
| 2511 | *iq_width, |
| 2512 | val_to_str_const(*comp_meth, bfw_comp_headers_comp_meth, "reserved")); |
| 2513 | |
| 2514 | return offset; |
| 2515 | } |
| 2516 | |
| 2517 | /* Return offset */ |
| 2518 | /* Returning number of entries set - would be good to also return an array of set TRX# so could show which array element |
| 2519 | each BFW is actually for.. */ |
| 2520 | static int dissect_active_beamspace_coefficient_mask(tvbuff_t *tvb, proto_tree *tree, int offset, unsigned *num_trx_entries, uint16_t **trx_entries) |
| 2521 | { |
| 2522 | /* activeBeamspaceCoefficientMask - ceil(K/8) octets */ |
| 2523 | /* K is the number of elements in uncompressed beamforming weight vector. |
| 2524 | * Calculated from parameters describing tx-array or tx-array */ |
| 2525 | unsigned k_octets = (pref_num_bf_antennas + 7) / 8; |
| 2526 | |
| 2527 | static uint16_t trx_enabled[1024]; |
| 2528 | |
| 2529 | /* TODO: could use a bigger bitmask array, but for now just uses this bytes-worth for each byte */ |
| 2530 | static int * const mask_bits[] = { |
| 2531 | &hf_oran_active_beamspace_coefficient_n1, |
| 2532 | &hf_oran_active_beamspace_coefficient_n2, |
| 2533 | &hf_oran_active_beamspace_coefficient_n3, |
| 2534 | &hf_oran_active_beamspace_coefficient_n4, |
| 2535 | &hf_oran_active_beamspace_coefficient_n5, |
| 2536 | &hf_oran_active_beamspace_coefficient_n6, |
| 2537 | &hf_oran_active_beamspace_coefficient_n7, |
| 2538 | &hf_oran_active_beamspace_coefficient_n8, |
| 2539 | NULL((void*)0) |
| 2540 | }; |
| 2541 | |
| 2542 | *num_trx_entries = 0; |
| 2543 | uint64_t val; |
| 2544 | for (unsigned n=0; n < k_octets; n++) { |
| 2545 | proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, |
| 2546 | hf_oran_activeBeamspaceCoefficientMask, |
| 2547 | ett_oran_active_beamspace_coefficient_mask, mask_bits, |
| 2548 | ENC_BIG_ENDIAN0x00000000, &val); |
| 2549 | offset++; |
| 2550 | /* Add up the set bits for this byte (but be careful not to count beyond last real K bit..) */ |
| 2551 | /* N1 is the most significant bit */ |
| 2552 | for (unsigned b=0; b < 8; b++) { |
| 2553 | if ((0x80 >> b) & (unsigned)val) { |
| 2554 | if (((n*8)+b) < pref_num_bf_antennas) { |
| 2555 | if (*num_trx_entries < 1024-1) { /* Don't write beyond array (which should be plenty big) */ |
| 2556 | trx_enabled[(*num_trx_entries)++] = (n*8) + b + 1; |
| 2557 | } |
| 2558 | } |
| 2559 | } |
| 2560 | } |
| 2561 | } |
| 2562 | /* Set pointer to static array */ |
| 2563 | *trx_entries = trx_enabled; |
| 2564 | |
| 2565 | /* Show how many bits set */ |
| 2566 | proto_item *ti = proto_tree_add_uint(tree, hf_oran_activeBeamspaceCoefficientMask_bits_set, tvb, |
| 2567 | offset-k_octets, k_octets, *num_trx_entries); |
| 2568 | proto_item_set_generated(ti); |
| 2569 | |
| 2570 | return offset; |
| 2571 | } |
| 2572 | |
| 2573 | static void add_beam_id_to_tap(oran_tap_info *tap_info, uint16_t beam_id) |
| 2574 | { |
| 2575 | if (tap_info->num_beams < MAX_BEAMS_IN_FRAME32) { |
| 2576 | tap_info->beams[tap_info->num_beams++] = beam_id; |
| 2577 | } |
| 2578 | } |
| 2579 | |
| 2580 | |
| 2581 | /* 7.7.1.3 bfwCompParam (beamforming weight compression parameter). |
| 2582 | * Depends upon passed-in bfwCompMeth (field may be empty) */ |
| 2583 | static int dissect_bfwCompParam(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, int offset, |
| 2584 | proto_item *meth_ti, uint32_t *bfw_comp_method, |
| 2585 | uint32_t *exponent, bool_Bool *supported, unsigned *num_trx_entries, uint16_t **trx_entries) |
| 2586 | { |
| 2587 | if (*bfw_comp_method == COMP_NONE0) { |
| 2588 | /* Header is absent */ |
| 2589 | *supported = true1; |
| 2590 | return offset; |
| 2591 | } |
| 2592 | |
| 2593 | /* Subtree */ |
| 2594 | proto_item *bfwcompparam_ti = proto_tree_add_string_format(tree, hf_oran_bfwCompParam, |
| 2595 | tvb, offset, 1, "", |
| 2596 | "bfwCompParam"); |
| 2597 | proto_tree *bfwcompparam_tree = proto_item_add_subtree(bfwcompparam_ti, ett_oran_bfwcompparam); |
| 2598 | |
| 2599 | proto_item_append_text(bfwcompparam_ti, |
| 2600 | " (meth=%s)", val_to_str_const(*bfw_comp_method, bfw_comp_headers_comp_meth, "reserved")); |
| 2601 | |
| 2602 | *num_trx_entries = 0; |
| 2603 | *supported = false0; |
| 2604 | switch (*bfw_comp_method) { |
| 2605 | case COMP_BLOCK_FP1: /* block floating point */ |
| 2606 | /* 4 reserved bits + exponent */ |
| 2607 | add_reserved_field(bfwcompparam_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 2608 | proto_tree_add_item_ret_uint(bfwcompparam_tree, hf_oran_exponent, |
| 2609 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, exponent); |
| 2610 | proto_item_append_text(bfwcompparam_ti, " exponent=%u", *exponent); |
| 2611 | *supported = true1; |
| 2612 | offset++; |
| 2613 | break; |
| 2614 | case COMP_BLOCK_SCALE2: /* block scaling */ |
| 2615 | /* Separate into integer and fractional bits? */ |
| 2616 | proto_tree_add_item(bfwcompparam_tree, hf_oran_blockScaler, |
| 2617 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 2618 | offset++; |
| 2619 | break; |
| 2620 | case COMP_U_LAW3: /* u-law */ |
| 2621 | /* compBitWidth, compShift */ |
| 2622 | proto_tree_add_item(bfwcompparam_tree, hf_oran_compBitWidth, |
| 2623 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 2624 | proto_tree_add_item(bfwcompparam_tree, hf_oran_compShift, |
| 2625 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 2626 | offset++; |
| 2627 | break; |
| 2628 | case 4: /* beamspace I (BLOCK SCALING) */ |
| 2629 | /* activeBeamspaceCoefficientMask */ |
| 2630 | offset = dissect_active_beamspace_coefficient_mask(tvb, bfwcompparam_tree, offset, num_trx_entries, trx_entries); |
| 2631 | *bfw_comp_method = COMP_BLOCK_SCALE2; |
| 2632 | *supported = false0; /* TODO: true once BLOCK SCALE is supported */ |
| 2633 | proto_tree_add_item(bfwcompparam_tree, hf_oran_blockScaler, |
| 2634 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 2635 | offset++; |
| 2636 | break; |
| 2637 | case 5: /* beamspace II (BLOCK FLOATING POINT) */ |
| 2638 | /* activeBeamspaceCoefficientMask */ |
| 2639 | offset = dissect_active_beamspace_coefficient_mask(tvb, bfwcompparam_tree, offset, num_trx_entries, trx_entries); |
| 2640 | /* reserved (4 bits) + exponent (4 bits) */ |
| 2641 | add_reserved_field(bfwcompparam_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 2642 | proto_tree_add_item_ret_uint(bfwcompparam_tree, hf_oran_exponent, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, exponent); |
| 2643 | offset += 1; |
| 2644 | *bfw_comp_method = COMP_BLOCK_FP1; |
| 2645 | *supported = true1; |
| 2646 | break; |
| 2647 | |
| 2648 | default: |
| 2649 | /* Not handled */ |
| 2650 | break; |
| 2651 | } |
| 2652 | |
| 2653 | proto_item_set_end(bfwcompparam_ti, tvb, offset); |
| 2654 | |
| 2655 | /* Can't go on if compression scheme not supported */ |
| 2656 | if (!(*supported) && meth_ti) { |
| 2657 | expert_add_info_format(pinfo, meth_ti, &ei_oran_unsupported_bfw_compression_method, |
| 2658 | "BFW Compression method %u (%s) not decompressed by dissector", |
| 2659 | *bfw_comp_method, |
| 2660 | val_to_str_const(*bfw_comp_method, bfw_comp_headers_comp_meth, "reserved")); |
| 2661 | } |
| 2662 | return offset; |
| 2663 | } |
| 2664 | |
| 2665 | |
| 2666 | /* Special case for uncompressed value with given iq_width */ |
| 2667 | static float uncompressed_to_float(uint32_t bits, uint32_t iq_width) |
| 2668 | { |
| 2669 | if (iq_width == 0 || iq_width > 16) { |
| 2670 | /* Not valid */ |
| 2671 | return 0.0; |
| 2672 | } |
| 2673 | |
| 2674 | uint32_t mask = (1U << (iq_width-1)) - 1; |
| 2675 | int32_t i32 = (bits & (1U << (iq_width-1))) ? (int32_t)bits - (int32_t)(1U << iq_width) : (int32_t)bits; |
| 2676 | |
| 2677 | if (show_unscaled_values || mask == 0) { |
| 2678 | return (float)i32; |
| 2679 | } |
| 2680 | return ((float)i32) / (mask); |
| 2681 | } |
| 2682 | |
| 2683 | /* Decompress I/Q value, taking into account method, width, exponent, other input-specific methods */ |
| 2684 | static float decompress_value(uint32_t bits, uint32_t comp_method, uint8_t iq_width, |
| 2685 | uint32_t exponent, |
| 2686 | /* Modulation compression settings. N.B. should also pass in PRB + symbol? */ |
| 2687 | section_mod_compr_config_t *m_c_p, uint8_t re) |
| 2688 | { |
| 2689 | switch (comp_method) { |
| 2690 | case COMP_NONE0: /* no compression */ |
| 2691 | return uncompressed_to_float(bits, iq_width); |
| 2692 | |
| 2693 | case COMP_BLOCK_FP1: /* block floating point */ |
| 2694 | case BFP_AND_SELECTIVE_RE5: |
| 2695 | case BFP_AND_SELECTIVE_RE_WITH_MASKS7: |
| 2696 | { |
| 2697 | /* A.1.3 Block Floating Point Decompression Algorithm */ |
| 2698 | int32_t cPRB = bits; |
| 2699 | uint32_t scaler = 1 << exponent; /* i.e. 2^exponent */ |
| 2700 | |
| 2701 | /* Check last bit, in case we need to flip to -ve */ |
| 2702 | if (cPRB >= (1<<(iq_width-1))) { |
| 2703 | cPRB -= (1<<iq_width); |
| 2704 | } |
| 2705 | |
| 2706 | /* Unscale (8.1.3.1) */ |
| 2707 | cPRB *= scaler; |
| 2708 | if (show_unscaled_values) { |
| 2709 | return (float)cPRB; |
| 2710 | } |
| 2711 | |
| 2712 | uint32_t mantissa_scale_factor = 1 << (iq_width-1); /* 2^(mantissabits-1) */ |
| 2713 | uint32_t exp_scale_factor = 1 << 15; /* 2^(2^exponentbits - 1 ) The exponent bit width is fixed to 4, so the maximum exponent is 15 */ |
| 2714 | |
| 2715 | float ret = cPRB / ((float)(mantissa_scale_factor*exp_scale_factor)); |
| 2716 | return ret; |
| 2717 | } |
| 2718 | |
| 2719 | case COMP_BLOCK_SCALE2: |
| 2720 | case COMP_U_LAW3: |
| 2721 | /* Not supported! But will be reported as expert info outside of this function! */ |
| 2722 | return 0.0; |
| 2723 | |
| 2724 | case COMP_MODULATION4: |
| 2725 | case MOD_COMPR_AND_SELECTIVE_RE6: |
| 2726 | case MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8: |
| 2727 | { |
| 2728 | /* Described in A.5 (with pseudo code) */ |
| 2729 | /* N.B., Applies to downlink data only - is not used for BFW */ |
| 2730 | |
| 2731 | /* Defaults if not overridden. TODO: what should these be? */ |
| 2732 | bool_Bool csf = false0; |
| 2733 | float mcScaler = (float)(1 << 11); |
| 2734 | |
| 2735 | /* Find csf + mcScaler to use. Non-default configs gleaned from SE 4,5,23 */ |
| 2736 | /* TODO: should ideally be filtering by symbol and PRB too (as configured from SE23) */ |
| 2737 | if (re > 0 && m_c_p && m_c_p->num_configs > 0) { |
| 2738 | for (unsigned c=0; c<m_c_p->num_configs; c++) { |
| 2739 | if (m_c_p->configs[c].mod_compr_re_mask & (1 << (12-re))) { |
| 2740 | /* Return first (should be only) found */ |
| 2741 | csf = m_c_p->configs[c].mod_compr_csf; |
| 2742 | mcScaler = m_c_p->configs[c].mod_compr_scaler; |
| 2743 | break; |
| 2744 | } |
| 2745 | } |
| 2746 | } |
| 2747 | |
| 2748 | int32_t cPRB = bits; |
| 2749 | |
| 2750 | /* 2) Map iqSample to iqSampleFx */ |
| 2751 | /* Check last bit, in case we need to flip to -ve */ |
| 2752 | if (cPRB >= (1<<(iq_width-1))) { |
| 2753 | cPRB -= (1<<iq_width); |
| 2754 | } |
| 2755 | float iqSampleFx = (float)cPRB / (1 << (iq_width-1)); |
| 2756 | |
| 2757 | |
| 2758 | /* 3) or 4) (b) - add unshifted value if csf set */ |
| 2759 | float csf_to_add = 0.0; |
| 2760 | if (csf) { |
| 2761 | /* Unshift the constellation point */ |
| 2762 | csf_to_add = (float)1.0 / (1 << (iq_width)); |
| 2763 | } |
| 2764 | iqSampleFx += csf_to_add; |
| 2765 | |
| 2766 | /* 3) or 4) (c) - unscaling */ |
| 2767 | float iqSampleScaled = mcScaler * iqSampleFx * (float)sqrt(2); |
| 2768 | return iqSampleScaled; |
| 2769 | } |
| 2770 | |
| 2771 | default: |
| 2772 | /* Not supported! But will be reported as expert info outside of this function! */ |
| 2773 | return 0.0; |
| 2774 | } |
| 2775 | } |
| 2776 | |
| 2777 | /* Out-of-range value used for special case */ |
| 2778 | #define ORPHAN_BUNDLE_NUMBER999 999 |
| 2779 | |
| 2780 | /* Bundle of PRBs/TRX I/Q samples (ext 11) */ |
| 2781 | static uint32_t dissect_bfw_bundle(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, unsigned offset, |
| 2782 | proto_item *comp_meth_ti, uint32_t bfwcomphdr_comp_meth, |
| 2783 | section_mod_compr_config_t *mod_compr_params, |
| 2784 | uint32_t num_weights_per_bundle, |
| 2785 | uint8_t iq_width, |
| 2786 | unsigned bundle_number, |
| 2787 | bundle_t *bundle, |
| 2788 | uint32_t symbol_count, |
| 2789 | section_details_t *section_details, |
| 2790 | oran_tap_info *tap_info) |
| 2791 | { |
| 2792 | oran_bfws_t *tap_bfws_info = wmem_new0(pinfo->pool, oran_bfws_t)((oran_bfws_t*)wmem_alloc0((pinfo->pool), sizeof(oran_bfws_t ))); |
| 2793 | tap_bfws_info->method = se11; |
| 2794 | |
| 2795 | /* Set bundle name */ |
| 2796 | char bundle_name[32]; |
| 2797 | if (!bundle->is_orphan) { |
| 2798 | snprintf(bundle_name, 32, "Bundle %3u", bundle_number); |
| 2799 | } |
| 2800 | else { |
| 2801 | (void) g_strlcpy(bundle_name, "Orphaned ", 32); |
| 2802 | } |
| 2803 | |
| 2804 | /* Create Bundle root */ |
| 2805 | proto_item *bundle_ti; |
| 2806 | if (bundle->start != bundle->end) { |
| 2807 | bundle_ti = proto_tree_add_string_format(tree, hf_oran_bfw_bundle, |
| 2808 | tvb, offset, 0, "", |
| 2809 | "%s: (PRBs %3u-%3u)", |
| 2810 | bundle_name, |
| 2811 | bundle->start, bundle->end); |
| 2812 | } |
| 2813 | else { |
| 2814 | bundle_ti = proto_tree_add_string_format(tree, hf_oran_bfw_bundle, |
| 2815 | tvb, offset, 0, "", |
| 2816 | "%s: (PRB %3u)", |
| 2817 | bundle_name, |
| 2818 | bundle->start); |
| 2819 | } |
| 2820 | proto_tree *bundle_tree = proto_item_add_subtree(bundle_ti, ett_oran_bfw_bundle); |
| 2821 | |
| 2822 | /* Generated bundle id */ |
| 2823 | proto_item *bundleid_ti = proto_tree_add_uint(bundle_tree, hf_oran_bfw_bundle_id, tvb, 0, 0, |
| 2824 | bundle_number); |
| 2825 | proto_item_set_generated(bundleid_ti); |
| 2826 | proto_item_set_hidden(bundleid_ti); |
| 2827 | |
| 2828 | /* bfwCompParam */ |
| 2829 | bool_Bool compression_method_supported = false0; |
| 2830 | unsigned exponent = 0; |
| 2831 | unsigned num_trx_entries = 0; |
| 2832 | uint16_t *trx_entries; |
| 2833 | offset = dissect_bfwCompParam(tvb, bundle_tree, pinfo, offset, comp_meth_ti, |
| 2834 | &bfwcomphdr_comp_meth, &exponent, &compression_method_supported, |
| 2835 | &num_trx_entries, &trx_entries); |
| 2836 | |
| 2837 | /* Create Bundle subtree */ |
| 2838 | int bit_offset = offset*8; |
| 2839 | int bfw_offset; |
| 2840 | |
| 2841 | /* contInd */ |
| 2842 | proto_tree_add_item(bundle_tree, hf_oran_cont_ind, |
| 2843 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 2844 | /* beamId */ |
| 2845 | uint32_t beam_id; |
| 2846 | proto_tree_add_item_ret_uint(bundle_tree, hf_oran_beam_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &beam_id); |
| 2847 | proto_item_append_text(bundle_ti, " (beamId:%5u) ", beam_id); |
| 2848 | bit_offset += 16; |
| 2849 | offset += 2; |
Value stored to 'offset' is never read | |
| 2850 | add_beam_id_to_tap(tap_info, beam_id); |
| 2851 | |
| 2852 | tap_bfws_info->beam_id = beam_id; |
| 2853 | tap_bfws_info->start_prb = bundle->start; |
| 2854 | tap_bfws_info->end_prb = bundle->end; |
| 2855 | |
| 2856 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 2857 | if (section_details) { |
| 2858 | for (unsigned prb = bundle->start; prb <= bundle->end && prb < ORAN_MAX_PRBS273; prb++) { |
| 2859 | section_details_set_beam_id(section_details, prb, (uint16_t)beam_id); |
| 2860 | } |
| 2861 | } |
| 2862 | } |
| 2863 | |
| 2864 | /* On first pass, record that beamId was defined here */ |
| 2865 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 2866 | bfw_definition *definition = wmem_new0(wmem_file_scope(), bfw_definition)((bfw_definition*)wmem_alloc0((wmem_file_scope()), sizeof(bfw_definition ))); |
| 2867 | definition->frame_defined = pinfo->num; |
| 2868 | definition->symbol_when_defined = symbol_count; |
| 2869 | wmem_tree_insert32(dl_beam_ids_defined, beam_id, definition); |
| 2870 | } |
| 2871 | |
| 2872 | |
| 2873 | /* Number of weights per bundle (from preference) */ |
| 2874 | proto_item *wpb_ti = proto_tree_add_uint(bundle_tree, hf_oran_num_weights_per_bundle, tvb, 0, 0, |
| 2875 | num_weights_per_bundle); |
| 2876 | proto_item_set_generated(wpb_ti); |
| 2877 | |
| 2878 | /* Add the weights for this bundle. Overwrite with what was seen in bfwCompParam if beamspace */ |
| 2879 | if (num_trx_entries != 0) { |
| 2880 | num_weights_per_bundle = num_trx_entries; |
| 2881 | } |
| 2882 | |
| 2883 | bool_Bool non_zero_weights_seen = false0; |
| 2884 | int bit_offset_before_weights = bit_offset; |
| 2885 | for (unsigned w=0; w < num_weights_per_bundle; w++) { |
| 2886 | |
| 2887 | uint16_t trx_index = (num_trx_entries) ? trx_entries[w] : w+1; |
| 2888 | |
| 2889 | /* Create subtree */ |
| 2890 | bfw_offset = bit_offset / 8; |
| 2891 | uint8_t bfw_extent = ((bit_offset + (iq_width*2)) / 8) - bfw_offset; |
| 2892 | proto_item *bfw_ti = proto_tree_add_string_format(bundle_tree, hf_oran_bfw, |
| 2893 | tvb, bfw_offset, bfw_extent, |
| 2894 | "", "TRX %3u: (", trx_index); |
| 2895 | proto_tree *bfw_tree = proto_item_add_subtree(bfw_ti, ett_oran_bfw); |
| 2896 | |
| 2897 | /* I */ |
| 2898 | /* Get bits, and convert to float. */ |
| 2899 | uint32_t bits = tvb_get_bits32(tvb, bit_offset, iq_width, ENC_BIG_ENDIAN0x00000000); |
| 2900 | if (bits) { |
| 2901 | non_zero_weights_seen = true1; |
| 2902 | } |
| 2903 | float value = decompress_value(bits, bfwcomphdr_comp_meth, iq_width, |
| 2904 | exponent, mod_compr_params, 0 /* RE */); |
| 2905 | /* Add to tree. */ |
| 2906 | proto_tree_add_float_format_value(bfw_tree, hf_oran_bfw_i, tvb, bit_offset/8, (iq_width+7)/8, value, "#%u=%f", w, value); |
| 2907 | bit_offset += iq_width; |
| 2908 | proto_item_append_text(bfw_ti, "I%u=%f ", w, value); |
| 2909 | |
| 2910 | tap_bfws_info->i[tap_bfws_info->i_count++] = value; |
| 2911 | |
| 2912 | /* Q */ |
| 2913 | /* Get bits, and convert to float. */ |
| 2914 | bits = tvb_get_bits32(tvb, bit_offset, iq_width, ENC_BIG_ENDIAN0x00000000); |
| 2915 | if (bits) { |
| 2916 | non_zero_weights_seen = true1; |
| 2917 | } |
| 2918 | |
| 2919 | value = decompress_value(bits, bfwcomphdr_comp_meth, iq_width, |
| 2920 | exponent, mod_compr_params, 0 /* RE */); |
| 2921 | /* Add to tree. */ |
| 2922 | proto_tree_add_float_format_value(bfw_tree, hf_oran_bfw_q, tvb, bit_offset/8, (iq_width+7)/8, value, "#%u=%f", w, value); |
| 2923 | bit_offset += iq_width; |
| 2924 | proto_item_append_text(bfw_ti, "Q%u=%f)", w, value); |
| 2925 | |
| 2926 | tap_bfws_info->q[tap_bfws_info->q_count++] = value; |
| 2927 | } |
| 2928 | |
| 2929 | if (!non_zero_weights_seen) { |
| 2930 | proto_tree_add_item(bundle_tree, hf_oran_bundle_weights_all_zero, tvb, |
| 2931 | bit_offset_before_weights/8, (bit_offset+7)/8 - (bit_offset_before_weights/8), ENC_NA0x00000000); |
| 2932 | } |
| 2933 | |
| 2934 | if (bundle->bit_from_rbg_mask) { |
| 2935 | proto_item_append_text(bundle_ti, " (rbg %u)", bundle->bit_from_rbg_mask-1); |
| 2936 | } |
| 2937 | |
| 2938 | /* Set extent of bundle */ |
| 2939 | proto_item_set_end(bundle_ti, tvb, (bit_offset+7)/8); |
| 2940 | |
| 2941 | tap_queue_packet(oran_bfws_tap, pinfo, tap_bfws_info); |
| 2942 | |
| 2943 | return (bit_offset+7)/8; |
| 2944 | } |
| 2945 | |
| 2946 | /* Return new bit offset. in/out will always be byte-aligned.. */ |
| 2947 | static int dissect_ciCompParam(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U___attribute__((unused)), unsigned bit_offset, |
| 2948 | unsigned comp_meth, uint8_t *exponent) |
| 2949 | { |
| 2950 | if (comp_meth == COMP_NONE0) { |
| 2951 | /* Nothing in frame so don't even create subtree */ |
| 2952 | return bit_offset; |
| 2953 | } |
| 2954 | |
| 2955 | /* Subtree */ |
| 2956 | proto_item *cicompparam_ti = proto_tree_add_string_format(tree, hf_oran_ciCompParam, |
| 2957 | tvb, bit_offset/8, 1, "", |
| 2958 | "ciCompParam"); |
| 2959 | proto_tree *cicompparam_tree = proto_item_add_subtree(cicompparam_ti, ett_oran_cicompparam); |
| 2960 | uint32_t ci_exponent; |
| 2961 | |
| 2962 | /* Contents differ by compression method */ |
| 2963 | switch (comp_meth) { |
| 2964 | case COMP_BLOCK_FP1: |
| 2965 | add_reserved_field(cicompparam_tree, hf_oran_reserved_4bits, tvb, bit_offset/8, 1); |
| 2966 | proto_tree_add_item_ret_uint(cicompparam_tree, hf_oran_exponent, |
| 2967 | tvb, bit_offset/8, 1, ENC_BIG_ENDIAN0x00000000, &ci_exponent); |
| 2968 | *exponent = ci_exponent; |
| 2969 | proto_item_append_text(cicompparam_ti, " (Exponent=%u)", ci_exponent); |
| 2970 | bit_offset += 8; /* one byte */ |
| 2971 | break; |
| 2972 | case COMP_BLOCK_SCALE2: |
| 2973 | /* Separate into integer (1) and fractional (7) bits? */ |
| 2974 | proto_tree_add_item(cicompparam_tree, hf_oran_blockScaler, |
| 2975 | tvb, bit_offset/8, 1, ENC_BIG_ENDIAN0x00000000); |
| 2976 | bit_offset += 8; |
| 2977 | break; |
| 2978 | case COMP_U_LAW3: |
| 2979 | /* compBitWidth, compShift (4 bits each) */ |
| 2980 | proto_tree_add_item(cicompparam_tree, hf_oran_compBitWidth, |
| 2981 | tvb, bit_offset/8, 1, ENC_BIG_ENDIAN0x00000000); |
| 2982 | proto_tree_add_item(cicompparam_tree, hf_oran_compShift, |
| 2983 | tvb, bit_offset/8, 1, ENC_BIG_ENDIAN0x00000000); |
| 2984 | bit_offset += 8; |
| 2985 | break; |
| 2986 | |
| 2987 | default: |
| 2988 | /* reserved, ? bytes of zeros.. */ |
| 2989 | break; |
| 2990 | } |
| 2991 | |
| 2992 | return bit_offset; |
| 2993 | } |
| 2994 | |
| 2995 | /* frameStructure (7.5.2.13) */ |
| 2996 | static unsigned dissect_frame_structure(proto_item *tree, tvbuff_t *tvb, unsigned offset, |
| 2997 | uint32_t subframeId, uint32_t slotId) |
| 2998 | { |
| 2999 | uint32_t scs; |
| 3000 | /* FFT Size (4 bits) */ |
| 3001 | proto_tree_add_item(tree, hf_oran_frameStructure_fft, tvb, offset, 1, ENC_NA0x00000000); |
| 3002 | /* Subcarrier spacing (SCS) */ |
| 3003 | proto_tree_add_item_ret_uint(tree, hf_oran_frameStructure_subcarrier_spacing, tvb, offset, 1, ENC_NA0x00000000, &scs); |
| 3004 | |
| 3005 | /* Show slot within frame as a generated field. See table 7.5.13-3 */ |
| 3006 | uint32_t slots_per_subframe = 1; |
| 3007 | if (scs <= 4) { |
| 3008 | slots_per_subframe = 1 << scs; |
| 3009 | } |
| 3010 | if (scs <= 4 || scs >= 12) { |
| 3011 | proto_item *ti = proto_tree_add_uint(tree, hf_oran_slot_within_frame, tvb, 0, 0, |
| 3012 | (slots_per_subframe*subframeId) + slotId); |
| 3013 | proto_item_set_generated(ti); |
| 3014 | } |
| 3015 | return offset + 1; |
| 3016 | } |
| 3017 | |
| 3018 | static unsigned dissect_csf(proto_item *tree, tvbuff_t *tvb, unsigned bit_offset, |
| 3019 | unsigned iq_width, bool_Bool *p_csf) |
| 3020 | { |
| 3021 | proto_item *csf_ti; |
| 3022 | uint64_t csf; |
| 3023 | csf_ti = proto_tree_add_bits_ret_val(tree, hf_oran_csf, tvb, bit_offset, 1, &csf, ENC_BIG_ENDIAN0x00000000); |
| 3024 | if (csf) { |
| 3025 | /* Table 7.7.4.2-1 Constellation shift definition (index is udIqWidth) */ |
| 3026 | const char* shift_value[] = { "n/a", "1/2", "1/4", "1/8", "1/16", "1/32" }; |
| 3027 | if (iq_width >=1 && iq_width <= 5) { |
| 3028 | proto_item_append_text(csf_ti, " (Shift Value is %s)", shift_value[iq_width]); |
| 3029 | } |
| 3030 | } |
| 3031 | |
| 3032 | /* Set out parameter */ |
| 3033 | if (p_csf != NULL((void*)0)) { |
| 3034 | *p_csf = (csf!=0); |
| 3035 | } |
| 3036 | return bit_offset+1; |
| 3037 | } |
| 3038 | |
| 3039 | static unsigned dissect_rbg_mask(proto_item *tree, tvbuff_t *tvb, unsigned offset, uint32_t *rbgMask, proto_item **item) |
| 3040 | { |
| 3041 | uint64_t rbgMask64; |
| 3042 | |
| 3043 | static int * const rbg_mask_bits[] = { |
| 3044 | &hf_oran_rbg_mask_27, |
| 3045 | &hf_oran_rbg_mask_26, |
| 3046 | &hf_oran_rbg_mask_25, |
| 3047 | &hf_oran_rbg_mask_24, |
| 3048 | &hf_oran_rbg_mask_23, |
| 3049 | &hf_oran_rbg_mask_22, |
| 3050 | &hf_oran_rbg_mask_21, |
| 3051 | &hf_oran_rbg_mask_20, |
| 3052 | &hf_oran_rbg_mask_19, |
| 3053 | &hf_oran_rbg_mask_18, |
| 3054 | &hf_oran_rbg_mask_17, |
| 3055 | &hf_oran_rbg_mask_16, |
| 3056 | &hf_oran_rbg_mask_15, |
| 3057 | &hf_oran_rbg_mask_14, |
| 3058 | &hf_oran_rbg_mask_13, |
| 3059 | &hf_oran_rbg_mask_12, |
| 3060 | &hf_oran_rbg_mask_11, |
| 3061 | &hf_oran_rbg_mask_10, |
| 3062 | &hf_oran_rbg_mask_9, |
| 3063 | &hf_oran_rbg_mask_8, |
| 3064 | &hf_oran_rbg_mask_7, |
| 3065 | &hf_oran_rbg_mask_6, |
| 3066 | &hf_oran_rbg_mask_5, |
| 3067 | &hf_oran_rbg_mask_4, |
| 3068 | &hf_oran_rbg_mask_3, |
| 3069 | &hf_oran_rbg_mask_2, |
| 3070 | &hf_oran_rbg_mask_1, |
| 3071 | &hf_oran_rbg_mask_0, |
| 3072 | NULL((void*)0) |
| 3073 | }; |
| 3074 | |
| 3075 | *item = proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, |
| 3076 | hf_oran_rbgMask, ett_oran_rbgMask, |
| 3077 | rbg_mask_bits, |
| 3078 | ENC_BIG_ENDIAN0x00000000, &rbgMask64); |
| 3079 | *rbgMask = (uint32_t)rbgMask64; |
| 3080 | return offset+4; |
| 3081 | } |
| 3082 | |
| 3083 | |
| 3084 | /* Section 7. |
| 3085 | * N.B. these are the green parts of the tables showing Section Types, differing by section Type */ |
| 3086 | static int dissect_oran_c_section(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, |
| 3087 | flow_state_t* state, |
| 3088 | uint32_t sectionType, oran_tap_info *tap_info, proto_item *protocol_item, |
| 3089 | uint32_t subframeId, uint32_t frameId, uint32_t slotId, uint32_t startSymbolId, |
| 3090 | uint8_t ci_iq_width, uint8_t ci_comp_meth, unsigned ci_comp_opt, |
| 3091 | unsigned num_sinr_per_prb) |
| 3092 | { |
| 3093 | unsigned offset = 0; |
| 3094 | proto_tree *c_section_tree = NULL((void*)0); |
| 3095 | proto_item *sectionHeading = NULL((void*)0); |
| 3096 | |
| 3097 | /* Section subtree */ |
| 3098 | sectionHeading = proto_tree_add_string_format(tree, hf_oran_c_section, |
| 3099 | tvb, offset, 0, "", "Section"); |
| 3100 | c_section_tree = proto_item_add_subtree(sectionHeading, ett_oran_c_section); |
| 3101 | |
| 3102 | uint32_t sectionId = 0; |
| 3103 | |
| 3104 | uint32_t startPrbc=0, startPrbu=0; |
| 3105 | uint32_t numPrbc=0, numPrbu=0; |
| 3106 | uint32_t ueId = 0; |
| 3107 | proto_item *ueId_ti = NULL((void*)0); |
| 3108 | uint32_t section_beamId = 0; |
| 3109 | proto_item *section_beamId_ti = NULL((void*)0); |
| 3110 | bool_Bool section_beamId_ignored = false0; |
| 3111 | |
| 3112 | proto_item *numsymbol_ti = NULL((void*)0); |
| 3113 | bool_Bool numsymbol_ignored = false0; |
| 3114 | |
| 3115 | proto_item *numprbc_ti = NULL((void*)0); |
| 3116 | |
| 3117 | proto_item *rb_ti = NULL((void*)0); |
| 3118 | uint32_t rb; |
| 3119 | |
| 3120 | uint64_t re_mask = 0; |
| 3121 | proto_item *re_mask_ti = NULL((void*)0); |
| 3122 | |
| 3123 | /* Config affecting ext11 bundles (initially unset) */ |
| 3124 | ext11_settings_t ext11_settings; |
| 3125 | memset(&ext11_settings, 0, sizeof(ext11_settings)); |
| 3126 | |
| 3127 | /* Section Type 10 needs to keep track of PRB range that should be reported |
| 3128 | for msgTypeId=5 (Interference plus Noise for unallocated PRBs) */ |
| 3129 | /* All PRBs start as false */ |
| 3130 | #define MAX_PRBS273 273 |
| 3131 | bool_Bool prbs_for_st10_type5[MAX_PRBS273]; |
| 3132 | memset(&prbs_for_st10_type5, 0, sizeof(prbs_for_st10_type5)); |
| 3133 | |
| 3134 | /* These UEIds are set by ST5, ST10 (single value), and extended by SE10 */ |
| 3135 | #define MAX_UEIDS16 16 |
| 3136 | uint32_t ueids[MAX_UEIDS16]; |
| 3137 | uint32_t number_of_ueids = 0; |
| 3138 | |
| 3139 | bool_Bool extension_flag = false0; |
| 3140 | |
| 3141 | /* All remaining symbols for section types without numSymbol */ |
| 3142 | uint32_t numSymbol = 14; |
| 3143 | |
| 3144 | /* These sections (ST0, ST1, ST2, ST3, ST5, ST9, ST10, ST11) are similar, so handle as common with per-type differences */ |
| 3145 | if (((sectionType <= SEC_C_UE_SCHED) || (sectionType >= SEC_C_SINR_REPORTING)) && |
| 3146 | (sectionType != SEC_C_SLOT_CONTROL) && (sectionType != SEC_C_SRS_DESCRIPTION)) { |
| 3147 | |
| 3148 | /* sectionID (12 bits) */ |
| 3149 | proto_item *ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_section_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, §ionId); |
| 3150 | if (sectionId == 4095) { |
| 3151 | proto_item_append_text(ti, " (not default coupling C/U planes using sectionId)"); |
| 3152 | } |
| 3153 | offset++; |
| 3154 | |
| 3155 | if (tap_info->num_section_ids < MAX_SECTION_IDs32) { |
| 3156 | tap_info->section_ids[tap_info->num_section_ids++] = sectionId; |
| 3157 | } |
| 3158 | |
| 3159 | /* rb */ |
| 3160 | rb_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_rb, tvb, offset, 1, ENC_NA0x00000000, &rb); |
| 3161 | |
| 3162 | /* symInc (1 bit) */ |
| 3163 | /* TODO: mark as ignored if SE6, SE12 or SE19 present */ |
| 3164 | if (sectionType != SEC_C_RRM_MEAS_REPORTS && /* Section Type 10 */ |
| 3165 | sectionType != SEC_C_RRM_MEAS_REPORTS_NON_TIMING && /* Section Type 13 */ |
| 3166 | sectionType != SEC_C_REQUEST_RRM_MEAS) { /* Section Type 11 */ |
| 3167 | |
| 3168 | unsigned int sym_inc; |
| 3169 | proto_item *sym_inc_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_symInc, tvb, offset, 1, ENC_NA0x00000000, &sym_inc); |
| 3170 | if (sym_inc !=0 && (sectionType == SEC_C_SINR_REPORTING)) { /* Section Type 9 */ |
| 3171 | /* "0 shall be used" */ |
| 3172 | proto_item_append_text(sym_inc_ti, " (should be 0)"); |
| 3173 | } |
| 3174 | } |
| 3175 | else { |
| 3176 | /* reserved (1 bit) */ |
| 3177 | add_reserved_field(c_section_tree, hf_oran_reserved_bit5, tvb, offset, 1); |
| 3178 | } |
| 3179 | |
| 3180 | /* startPrbx and numPrbx */ |
| 3181 | if (sectionType == SEC_C_SINR_REPORTING) { |
| 3182 | /* startPrbu (10 bits) */ |
| 3183 | proto_tree_add_item_ret_uint(c_section_tree, hf_oran_startPrbu, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &startPrbu); |
| 3184 | offset += 2; |
| 3185 | |
| 3186 | /* numPrbu */ |
| 3187 | numprbc_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_numPrbu, tvb, offset, 1, ENC_NA0x00000000, &numPrbu); |
| 3188 | if (numPrbu == 0) { |
| 3189 | proto_item_append_text(numprbc_ti, " (all PRBs - configured as %u)", pref_data_plane_section_total_rbs); |
| 3190 | numPrbu = pref_data_plane_section_total_rbs; |
| 3191 | } |
| 3192 | offset += 1; |
| 3193 | } |
| 3194 | else { |
| 3195 | /* startPrbc (10 bits) */ |
| 3196 | proto_tree_add_item_ret_uint(c_section_tree, hf_oran_startPrbc, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &startPrbc); |
| 3197 | offset += 2; |
| 3198 | |
| 3199 | /* numPrbc */ |
| 3200 | numprbc_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_numPrbc, tvb, offset, 1, ENC_NA0x00000000, &numPrbc); |
| 3201 | if (numPrbc == 0) { |
| 3202 | proto_item_append_text(numprbc_ti, " (all PRBs - configured as %u)", pref_data_plane_section_total_rbs); |
| 3203 | /* TODO: should probably set to pref_data_plane_section_total_rbs, and define MAX_PRBS to > 273 ? */ |
| 3204 | numPrbc = MAX_PRBS273; |
| 3205 | } |
| 3206 | offset += 1; |
| 3207 | } |
| 3208 | |
| 3209 | /* Start with range from section. May get changed by SE6, SE12, SE20 */ |
| 3210 | for (unsigned n=startPrbc; n < startPrbc+numPrbc; n++) { |
| 3211 | if (n < MAX_PRBS273) { |
| 3212 | prbs_for_st10_type5[n] = true1; |
| 3213 | } |
| 3214 | } |
| 3215 | |
| 3216 | if (sectionType != SEC_C_SINR_REPORTING) { /* *NOT* Section Type 9 */ |
| 3217 | static int * const remask_flags[] = { |
| 3218 | &hf_oran_reMask_re1, |
| 3219 | &hf_oran_reMask_re2, |
| 3220 | &hf_oran_reMask_re3, |
| 3221 | &hf_oran_reMask_re4, |
| 3222 | &hf_oran_reMask_re5, |
| 3223 | &hf_oran_reMask_re6, |
| 3224 | &hf_oran_reMask_re7, |
| 3225 | &hf_oran_reMask_re8, |
| 3226 | &hf_oran_reMask_re9, |
| 3227 | &hf_oran_reMask_re10, |
| 3228 | &hf_oran_reMask_re11, |
| 3229 | &hf_oran_reMask_re12, |
| 3230 | NULL((void*)0) |
| 3231 | }; |
| 3232 | |
| 3233 | /* reMask */ |
| 3234 | re_mask_ti = proto_tree_add_bitmask_ret_uint64(c_section_tree, tvb, offset, |
| 3235 | hf_oran_reMask, ett_oran_remask, remask_flags, ENC_BIG_ENDIAN0x00000000, &re_mask); |
| 3236 | offset++; |
| 3237 | /* numSymbol */ |
| 3238 | numsymbol_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_numSymbol, tvb, offset, 1, ENC_NA0x00000000, &numSymbol); |
| 3239 | if (((sectionType == SEC_C_RRM_MEAS_REPORTS) || (sectionType == SEC_C_RRM_MEAS_REPORTS_NON_TIMING)) && (numSymbol != 14)) { /* Section type 10/13 must have 14 symbols */ |
| 3240 | proto_item_append_text(numsymbol_ti, " (for ST10, should be 14!)"); |
| 3241 | expert_add_info_format(pinfo, numsymbol_ti, &ei_oran_st10_numsymbol_not_14, |
| 3242 | "numSymbol should be 14 for ST10 - found %u", numSymbol); |
| 3243 | } |
| 3244 | if ((startSymbolId + numSymbol) > 14) { |
| 3245 | /* Warn if startSymbol + numSymbol would be > 14 */ |
| 3246 | expert_add_info_format(pinfo, numsymbol_ti, &ei_oran_too_many_symbols, |
| 3247 | "startSymbolId (%u) + numSymbol (%u) exceeds max of 14", |
| 3248 | startSymbolId, numSymbol); |
| 3249 | } |
| 3250 | offset++; |
| 3251 | |
| 3252 | /* [ef] (extension flag) */ |
| 3253 | switch (sectionType) { |
| 3254 | case SEC_C_UNUSED_RB: /* Section Type 0 */ |
| 3255 | case SEC_C_NORMAL: /* Section Type 1 */ |
| 3256 | case SEC_C_PRACH: /* Section Type 3 */ |
| 3257 | case SEC_C_UE_SCHED: /* Section Type 5 */ |
| 3258 | case SEC_C_RRM_MEAS_REPORTS: /* Section Type 10 */ |
| 3259 | case SEC_C_RRM_MEAS_REPORTS_NON_TIMING: /* Section Type 13 */ |
| 3260 | |
| 3261 | case SEC_C_REQUEST_RRM_MEAS: /* Section Type 11 */ |
| 3262 | proto_tree_add_item_ret_boolean(c_section_tree, hf_oran_ef, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &extension_flag); |
| 3263 | break; |
| 3264 | default: |
| 3265 | /* Other section types don't support extensions */ |
| 3266 | break; |
| 3267 | } |
| 3268 | |
| 3269 | write_section_info(sectionHeading, pinfo, protocol_item, sectionId, startPrbc, numPrbc, rb); |
| 3270 | proto_item_append_text(sectionHeading, ", Symbols: %2u", numSymbol); |
| 3271 | |
| 3272 | if (numPrbc == 0) { |
| 3273 | /* Special case for all PRBs */ |
| 3274 | numPrbc = pref_data_plane_section_total_rbs; |
| 3275 | startPrbc = 0; /* may already be 0... */ |
| 3276 | } |
| 3277 | } |
| 3278 | else { |
| 3279 | /* Section Type 9 */ |
| 3280 | write_section_info(sectionHeading, pinfo, protocol_item, sectionId, startPrbu, numPrbu, rb); |
| 3281 | proto_item_append_text(sectionHeading, ", numSinrPerPrb: %2u", num_sinr_per_prb); |
| 3282 | } |
| 3283 | |
| 3284 | /* Section type specific fields (after 'numSymbol') */ |
| 3285 | switch (sectionType) { |
| 3286 | case SEC_C_UNUSED_RB: /* Section Type 0 - Table 7.4.2-1 */ |
| 3287 | /* reserved (15 bits) */ |
| 3288 | add_reserved_field(c_section_tree, hf_oran_reserved_15bits, tvb, offset, 2); |
| 3289 | offset += 2; |
| 3290 | break; |
| 3291 | |
| 3292 | case SEC_C_NORMAL: /* Section Type 1 - Table 7.4.3-1 */ |
| 3293 | /* beamId */ |
| 3294 | section_beamId_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_beamId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, §ion_beamId); |
| 3295 | offset += 2; |
| 3296 | |
| 3297 | /* beamId might get invalidated by e.g., ext-6, ext-11, so unused value will still be shown here.. */ |
| 3298 | proto_item_append_text(sectionHeading, ", BeamId: %d", section_beamId); |
| 3299 | break; |
| 3300 | |
| 3301 | case SEC_C_PRACH: /* Section Type 3 - Table 7.4.5-1 */ |
| 3302 | { |
| 3303 | /* beamId */ |
| 3304 | section_beamId_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_beamId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, §ion_beamId); |
| 3305 | offset += 2; |
| 3306 | |
| 3307 | /* freqOffset */ |
| 3308 | int32_t freqOffset; /* Yes, this is signed, so the cast is intentional. */ |
| 3309 | proto_item *freq_offset_item = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_freqOffset, tvb, offset, 3, ENC_BIG_ENDIAN0x00000000, (uint32_t*)&freqOffset); |
| 3310 | freqOffset |= 0xff000000; /* Must sign-extend */ |
| 3311 | proto_item_set_text(freq_offset_item, "Frequency offset: %d \u0394f", freqOffset); |
| 3312 | offset += 3; |
| 3313 | |
| 3314 | /* reserved (8 bits) */ |
| 3315 | add_reserved_field(c_section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 3316 | offset += 1; |
| 3317 | |
| 3318 | /* beamId might get invalidated by e.g., ext-6, ext-11, so unused value will still be shown here.. */ |
| 3319 | proto_item_append_text(sectionHeading, ", BeamId: %d, FreqOffset: %d \u0394f", section_beamId, freqOffset); |
| 3320 | break; |
| 3321 | } |
| 3322 | |
| 3323 | case SEC_C_UE_SCHED: /* Section Type 5 - Table 7.4.7-1 */ |
| 3324 | case SEC_C_RRM_MEAS_REPORTS: /* Section Type 10 - Table 7.4.12-1 */ |
| 3325 | case SEC_C_RRM_MEAS_REPORTS_NON_TIMING: /* Section Type 13 - Table 7.4.12-1 (same frame format) */ |
| 3326 | |
| 3327 | /* ueId */ |
| 3328 | ueId_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_ueId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ueId); |
| 3329 | offset += 2; |
| 3330 | if (ueId == 0x7fff) { |
| 3331 | proto_item_append_text(ueId_ti, " (PRBs not scheduled for eAxC ID in transport header)"); |
| 3332 | } |
| 3333 | else { |
| 3334 | ueids[number_of_ueids++] = ueId; |
| 3335 | } |
| 3336 | |
| 3337 | proto_item_append_text(sectionHeading, ", UEId: %d", ueId); |
| 3338 | break; |
| 3339 | |
| 3340 | case SEC_C_SINR_REPORTING: /* Section Type 9 - SINR Reporting */ |
| 3341 | { |
| 3342 | /* Hidden filter for bf (DMFS-BF) */ |
| 3343 | proto_item *bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 3344 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 3345 | |
| 3346 | unsigned bit_offset = offset*8; |
| 3347 | |
| 3348 | /* sinr iqWidth */ |
| 3349 | proto_item *iq_width_item = proto_tree_add_uint(c_section_tree, hf_oran_sinrCompHdrIqWidth_pref, tvb, 0, 0, pref_sample_bit_width_sinr); |
| 3350 | proto_item_append_text(iq_width_item, " (from preferences)"); |
| 3351 | proto_item_set_generated(iq_width_item); |
| 3352 | if (pref_sample_bit_width_sinr == 0 || pref_sample_bit_width_sinr > 16) { |
| 3353 | expert_add_info_format(pinfo, iq_width_item, &ei_oran_invalid_sample_bit_width, |
| 3354 | "SINR sample bit width from preference (%u) not valid, so can't decode SINR", |
| 3355 | pref_sample_bit_width_sinr); |
| 3356 | break; |
| 3357 | } |
| 3358 | |
| 3359 | /* sinr compMethod */ |
| 3360 | proto_item *sinr_comp_meth_item = proto_tree_add_uint(c_section_tree, hf_oran_sinrCompHdrMeth_pref, tvb, 0, 0, pref_iqCompressionSINR); |
| 3361 | proto_item_append_text(sinr_comp_meth_item, " (from preferences)"); |
| 3362 | proto_item_set_generated(sinr_comp_meth_item); |
| 3363 | |
| 3364 | /* Add SINR entries for each PRB */ |
| 3365 | for (unsigned prb=startPrbu; prb < startPrbu+numPrbu; prb++) { |
| 3366 | /* Create a subtree for each PRB */ |
| 3367 | proto_item *prb_ti = proto_tree_add_string_format(c_section_tree, hf_oran_sinr_prb, |
| 3368 | tvb, offset, 0, "", "PRB %3u (", prb); |
| 3369 | proto_tree *prb_tree = proto_item_add_subtree(prb_ti, ett_oran_sinr_prb); |
| 3370 | |
| 3371 | /* Each prb starts byte-aligned */ |
| 3372 | bit_offset = ((bit_offset+7)/8) * 8; |
| 3373 | |
| 3374 | /* N.B., using width/method from UL U-plane preferences, not certain that this is correct.. */ |
| 3375 | |
| 3376 | /* sinrCompParam (udCompParam format, may be empty) */ |
| 3377 | uint32_t exponent = 0; /* N.B. init to silence warnings, but will always be set if read in COMP_BLOCK_FP case */ |
| 3378 | uint16_t sReSMask; |
| 3379 | bit_offset = dissect_udcompparam(tvb, pinfo, prb_tree, bit_offset/8, |
| 3380 | pref_iqCompressionSINR, &exponent, &sReSMask, |
| 3381 | true1) * 8; /* last param is for_sinr */ |
| 3382 | |
| 3383 | /* sinrValues for this PRB. */ |
| 3384 | /* TODO: not sure how numSinrPerPrb interacts with rb==1... */ |
| 3385 | for (unsigned n=0; n < num_sinr_per_prb; n++) { |
| 3386 | unsigned sinr_bits = tvb_get_bits32(tvb, bit_offset, pref_sample_bit_width_sinr, ENC_BIG_ENDIAN0x00000000); |
| 3387 | |
| 3388 | /* Using SINR compression settings from preferences */ |
| 3389 | float value = decompress_value(sinr_bits, |
| 3390 | pref_iqCompressionSINR, pref_sample_bit_width_sinr, |
| 3391 | exponent, |
| 3392 | NULL((void*)0) /* no ModCompr for SINR */, 0 /* RE */); |
| 3393 | unsigned sample_len_in_bytes = ((bit_offset%8)+pref_sample_bit_width_sinr+7)/8; |
| 3394 | proto_item *val_ti = proto_tree_add_float(prb_tree, hf_oran_sinr_value, tvb, |
| 3395 | bit_offset/8, sample_len_in_bytes, value); |
| 3396 | proto_item_append_text(prb_ti, " %8f", value); |
| 3397 | |
| 3398 | /* Show here which subcarriers share which values (they all divide 12..) */ |
| 3399 | if (num_sinr_per_prb == 12) { |
| 3400 | proto_item_append_text(val_ti, " (PRB=%u, subcarrier %u)", |
| 3401 | startPrbu+((prb-startPrbu)*(rb+1)), n*(12/num_sinr_per_prb)); |
| 3402 | } |
| 3403 | else { |
| 3404 | proto_item_append_text(val_ti, " (PRB=%u, subcarriers %u-%u)", |
| 3405 | startPrbu+((prb-startPrbu)*(rb+1)), |
| 3406 | n*(12/num_sinr_per_prb), (n+1)*(12/num_sinr_per_prb)-1); |
| 3407 | } |
| 3408 | bit_offset += pref_sample_bit_width_sinr; |
| 3409 | } |
| 3410 | |
| 3411 | /* 1-byte alignment per PRB (7.2.11) */ |
| 3412 | offset = (bit_offset+7)/8; |
| 3413 | bit_offset = offset*8; |
| 3414 | |
| 3415 | proto_item_append_text(prb_ti, ")"); |
| 3416 | proto_item_set_end(prb_ti, tvb, offset); |
| 3417 | } |
| 3418 | break; |
| 3419 | } |
| 3420 | case SEC_C_REQUEST_RRM_MEAS: /* Section Type 11 - Request RRM Measurements */ |
| 3421 | /* Reserved (15 bits) */ |
| 3422 | add_reserved_field(c_section_tree, hf_oran_reserved_15bits, tvb, offset, 2); |
| 3423 | offset += 2; |
| 3424 | break; |
| 3425 | |
| 3426 | default: |
| 3427 | break; |
| 3428 | } |
| 3429 | } |
| 3430 | else if (sectionType == SEC_C_CH_INFO) { /* Section Type 6 */ |
| 3431 | /* ef */ |
| 3432 | proto_tree_add_item_ret_boolean(c_section_tree, hf_oran_ef, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &extension_flag); |
| 3433 | /* ueId */ |
| 3434 | proto_tree_add_item_ret_uint(c_section_tree, hf_oran_ueId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ueId); |
| 3435 | offset += 2; |
| 3436 | /* regularizationFactor */ |
| 3437 | proto_tree_add_item(c_section_tree, hf_oran_regularizationFactor, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 3438 | offset += 2; |
| 3439 | /* reserved (4 bits) */ |
| 3440 | add_reserved_field(c_section_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 3441 | /* rb ("Value=0 shall be set") */ |
| 3442 | rb_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_rb, tvb, offset, 1, ENC_NA0x00000000, &rb); |
| 3443 | if (rb != 0) { |
| 3444 | proto_item_append_text(rb_ti, " (should be set to 0)"); |
| 3445 | expert_add_info(pinfo, rb_ti, &ei_oran_st6_rb_shall_be_0); |
| 3446 | } |
| 3447 | /* symInc */ |
| 3448 | proto_tree_add_item(c_section_tree, hf_oran_symInc, tvb, offset, 1, ENC_NA0x00000000); |
| 3449 | /* startPrbc */ |
| 3450 | proto_tree_add_item_ret_uint(c_section_tree, hf_oran_startPrbc, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &startPrbc); |
| 3451 | offset += 2; |
| 3452 | /* numPrbc */ |
| 3453 | proto_tree_add_item_ret_uint(c_section_tree, hf_oran_numPrbc, tvb, offset, 1, ENC_NA0x00000000, &numPrbc); |
| 3454 | offset += 1; |
| 3455 | |
| 3456 | /* Hidden filter for bf */ |
| 3457 | proto_item *bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 3458 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 3459 | |
| 3460 | /* ciIsample,ciQsample pairs */ |
| 3461 | unsigned m; |
| 3462 | unsigned prb; |
| 3463 | uint32_t bit_offset = offset*8; |
| 3464 | |
| 3465 | /* Antenna count from preference */ |
| 3466 | unsigned num_trx = pref_num_bf_antennas; |
| 3467 | |
| 3468 | write_channel_section_info(sectionHeading, pinfo, |
| 3469 | sectionId, ueId, startPrbc, numPrbc, num_trx); |
| 3470 | |
| 3471 | bool_Bool first_prb = true1; |
| 3472 | uint8_t exponent = 0; |
| 3473 | for (prb=startPrbc; prb < startPrbc+numPrbc; prb++) { |
| 3474 | |
| 3475 | /* PRB subtree */ |
| 3476 | unsigned prb_start_offset = bit_offset; |
| 3477 | proto_item *prb_ti = proto_tree_add_string_format(c_section_tree, hf_oran_samples_prb, |
| 3478 | tvb, bit_offset/8, 0, |
| 3479 | "", "PRB=%u", prb); |
| 3480 | proto_tree *prb_tree = proto_item_add_subtree(prb_ti, ett_oran_prb_cisamples); |
| 3481 | |
| 3482 | /* There may be a ciCompParam here.. */ |
| 3483 | if (first_prb || ci_comp_opt==1) { |
| 3484 | bit_offset = dissect_ciCompParam(tvb, prb_tree, pinfo, bit_offset, ci_comp_meth, &exponent); |
| 3485 | } |
| 3486 | first_prb = false0; |
| 3487 | |
| 3488 | /* Antennas */ |
| 3489 | for (m=0; m < num_trx; m++) { |
| 3490 | |
| 3491 | unsigned sample_offset = bit_offset / 8; |
| 3492 | uint8_t sample_extent = ((bit_offset + (ci_iq_width*2)) / 8) - sample_offset; |
| 3493 | |
| 3494 | /* Create subtree for antenna */ |
| 3495 | proto_item *sample_ti = proto_tree_add_string_format(prb_tree, hf_oran_ciSample, |
| 3496 | tvb, sample_offset, sample_extent, |
| 3497 | "", "TRX=%2u: ", m); |
| 3498 | proto_tree *sample_tree = proto_item_add_subtree(sample_ti, ett_oran_cisample); |
| 3499 | |
| 3500 | /* I */ |
| 3501 | /* Get bits, and convert to float. */ |
| 3502 | uint32_t bits = tvb_get_bits32(tvb, bit_offset, ci_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 3503 | float value = decompress_value(bits, ci_comp_meth, ci_iq_width, exponent, NULL((void*)0) /* no ModCompr for ST6 */, 0 /* RE */); |
| 3504 | |
| 3505 | /* Add to tree. */ |
| 3506 | proto_tree_add_float_format_value(sample_tree, hf_oran_ciIsample, tvb, bit_offset/8, (ci_iq_width+7)/8, value, "#%u=%f", m, value); |
| 3507 | bit_offset += ci_iq_width; |
| 3508 | proto_item_append_text(sample_ti, "I%u=%f ", m, value); |
| 3509 | |
| 3510 | /* Q */ |
| 3511 | /* Get bits, and convert to float. */ |
| 3512 | bits = tvb_get_bits32(tvb, bit_offset, ci_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 3513 | value = decompress_value(bits, ci_comp_meth, ci_iq_width, exponent, NULL((void*)0) /* no ModCompr for ST6 */, 0 /* RE */); |
| 3514 | |
| 3515 | /* Add to tree. */ |
| 3516 | proto_tree_add_float_format_value(sample_tree, hf_oran_ciQsample, tvb, bit_offset/8, (ci_iq_width+7)/8, value, "#%u=%f", m, value); |
| 3517 | bit_offset += ci_iq_width; |
| 3518 | proto_item_append_text(sample_ti, "Q%u=%f ", m, value); |
| 3519 | } |
| 3520 | proto_item_set_len(prb_ti, (bit_offset-prb_start_offset+7)/8); |
| 3521 | } |
| 3522 | |
| 3523 | /* Pad out by 1 or 4 bytes, according to preference */ |
| 3524 | if (!st6_4byte_alignment) { |
| 3525 | offset = (bit_offset + 7) / 8; |
| 3526 | } |
| 3527 | else { |
| 3528 | int mode = bit_offset % 32; |
| 3529 | if (mode != 0) { |
| 3530 | offset = (bit_offset + (32-mode))/8; |
| 3531 | } |
| 3532 | else { |
| 3533 | offset = bit_offset/8; |
| 3534 | } |
| 3535 | } |
| 3536 | proto_item_set_end(c_section_tree, tvb, offset); |
| 3537 | } |
| 3538 | else if (sectionType == SEC_C_SRS_DESCRIPTION) { /* Section Type 12 */ |
| 3539 | /* sectionID (12 bits) */ |
| 3540 | proto_item *ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_section_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, §ionId); |
| 3541 | if (sectionId == 4095) { |
| 3542 | proto_item_append_text(ti, " (not default coupling C/U planes using sectionId)"); |
| 3543 | } |
| 3544 | offset++; |
| 3545 | |
| 3546 | if (tap_info->num_section_ids < MAX_SECTION_IDs32) { |
| 3547 | tap_info->section_ids[tap_info->num_section_ids++] = sectionId; |
| 3548 | } |
| 3549 | |
| 3550 | /* srsRbgSize (2 bits) */ |
| 3551 | proto_tree_add_item(c_section_tree, hf_oran_srsRbgSize, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3552 | |
| 3553 | /* startPrbc (10 bits) */ |
| 3554 | proto_tree_add_item_ret_uint(c_section_tree, hf_oran_startPrbc, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &startPrbc); |
| 3555 | offset += 2; |
| 3556 | |
| 3557 | /* numPrbc */ |
| 3558 | numprbc_ti = proto_tree_add_item_ret_uint(c_section_tree, hf_oran_numPrbc, tvb, offset, 1, ENC_NA0x00000000, &numPrbc); |
| 3559 | if (numPrbc == 0) { |
| 3560 | proto_item_append_text(numprbc_ti, " (all PRBs - configured as %u)", pref_data_plane_section_total_rbs); |
| 3561 | /* TODO: should probably set to pref_data_plane_section_total_rbs, and define MAX_PRBS to > 273 ? */ |
| 3562 | numPrbc = MAX_PRBS273; |
| 3563 | } |
| 3564 | offset += 1; |
| 3565 | |
| 3566 | /* srsNumRbg (8 bits) */ |
| 3567 | proto_tree_add_item(c_section_tree, hf_oran_srsNumRbg, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3568 | offset += 1; |
| 3569 | /* srsTxComb (3 bits) */ |
| 3570 | proto_tree_add_item(c_section_tree, hf_oran_srsTxComb, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3571 | /* reserved (1 bit) */ |
| 3572 | add_reserved_field(c_section_tree, hf_oran_reserved_bit3, tvb, offset, 1); |
| 3573 | /* srsSymId (4 bits) */ |
| 3574 | proto_tree_add_item(c_section_tree, hf_oran_srsSymId, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3575 | offset += 1; |
| 3576 | /* reserved (16 bits) */ |
| 3577 | add_reserved_field(c_section_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 3578 | offset += 2; |
| 3579 | |
| 3580 | /* ef (1 bit) */ |
| 3581 | /* reserved (1 bit) */ |
| 3582 | add_reserved_field(c_section_tree, hf_oran_reserved_bit1, tvb, offset, 1); |
| 3583 | /* srsNumUe (6 bits) */ |
| 3584 | uint8_t srs_num_ue; |
| 3585 | proto_tree_add_item_ret_uint8(c_section_tree, hf_oran_srsNumUe, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &srs_num_ue); |
| 3586 | offset += 1; |
| 3587 | |
| 3588 | /* TODO: subsections - one for each UE */ |
| 3589 | for (uint8_t ss=0; ss < srs_num_ue; ss++) { |
| 3590 | /* TODO: create subsection subtree */ |
| 3591 | |
| 3592 | /* Reserved-struct (3 bits) */ |
| 3593 | /* srsUeIdApIdReset (1 bit) */ |
| 3594 | /* reserved (4 bits) */ |
| 3595 | add_reserved_field(c_section_tree, hf_oran_reserved_last_4bits, tvb, offset, 1); |
| 3596 | offset += 1; |
| 3597 | /* srsNumAp (4 bits) */ |
| 3598 | uint8_t num_ap = tvb_get_uint8(tvb, offset) >> 4; |
| 3599 | /* srsTotalAp (4 bits) */ |
| 3600 | offset += 1; |
| 3601 | /* srsSeqIq (2 bytes) */ |
| 3602 | offset += 2; |
| 3603 | /* srsNumMultiSym (4 bits) */ |
| 3604 | /* srsIndexMultiSym (4 bits) */ |
| 3605 | offset += 1; |
| 3606 | /* srsPatMultiSym (2 bits) */ |
| 3607 | /* srsCiUse (2 bits) */ |
| 3608 | /* srsSeqHopType (2 bits) */ |
| 3609 | /* srsFreqHopType (2 bits) */ |
| 3610 | offset += 1; |
| 3611 | /* reserved (1 bit) */ |
| 3612 | add_reserved_field(c_section_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3613 | /* srsNumFreqHops (7 bits) */ |
| 3614 | offset += 1; |
| 3615 | /* reserved (1 bit) */ |
| 3616 | add_reserved_field(c_section_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3617 | /* srsFreqHopIndex (7 bits) */ |
| 3618 | offset += 1; |
| 3619 | /* reserved (2 bits) */ |
| 3620 | add_reserved_field(c_section_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 3621 | /* srsUsage (6 bits) */ |
| 3622 | offset += 1; |
| 3623 | /* reserved (8 bits) */ |
| 3624 | offset += 1; |
| 3625 | /* reserved (1 bit) */ |
| 3626 | add_reserved_field(c_section_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3627 | /* srsPriorityRpt (5 bits) */ |
| 3628 | /* srsStartPrbCiRpt (9 bits) */ |
| 3629 | offset += 1; |
| 3630 | /* srsStartPrbCiRpt (1 bit) */ |
| 3631 | offset += 1; |
| 3632 | /* srsNumGrpCiRpt (8 bits) */ |
| 3633 | offset += 1; |
| 3634 | /* srsGrpSizeCiRpt (8 bits) */ |
| 3635 | /* reserved (8 bits) */ |
| 3636 | add_reserved_field(c_section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 3637 | offset += 1; |
| 3638 | /* srsRrmMeasTrigger (2 bytes) */ |
| 3639 | offset += 2; |
| 3640 | |
| 3641 | /* One entry (yellowy-green in Table 7.4.14-1) for each port for this UE */ |
| 3642 | for (uint8_t port = 0; port < num_ap; port++) { |
| 3643 | /* TODO: create port entry subtree */ |
| 3644 | /* reserved (1 bit) */ |
| 3645 | add_reserved_field(c_section_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3646 | /* srsUeIdApId (15 bits) */ |
| 3647 | offset += 2; |
| 3648 | /* reserved (1 bit) */ |
| 3649 | add_reserved_field(c_section_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3650 | /* srsRECO (3 bits) */ |
| 3651 | /* srsCR (4 bits) */ |
| 3652 | offset += 1; |
| 3653 | /* reserved (8 bits) */ |
| 3654 | add_reserved_field(c_section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 3655 | offset += 1; |
| 3656 | } |
| 3657 | } |
| 3658 | } |
| 3659 | |
| 3660 | |
| 3661 | expected_section_data_t *data_section = NULL((void*)0); |
| 3662 | unsigned index_to_use = 0; |
| 3663 | |
| 3664 | /* On first pass, allocate a section entry to use */ |
| 3665 | if (link_planes_together && !PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 3666 | |
| 3667 | /* Look for existing entry for sectionId to overwrite first. */ |
| 3668 | uint8_t direction = !tap_info->uplink; |
| 3669 | data_section = wmem_tree_lookup32(state->expected_sections[direction], |
| 3670 | sectionId); |
| 3671 | if (data_section == NULL((void*)0)) { |
| 3672 | /* None, so create */ |
| 3673 | data_section = wmem_new0(wmem_file_scope(), expected_section_data_t)((expected_section_data_t*)wmem_alloc0((wmem_file_scope()), sizeof (expected_section_data_t))); |
| 3674 | wmem_tree_insert32(state->expected_sections[direction], |
| 3675 | sectionId, |
| 3676 | data_section); |
| 3677 | } |
| 3678 | |
| 3679 | /* TODO: not currently coping with case where >1 C-plane frames define same sectionId (covering different PRBs). |
| 3680 | * Ideally would at least update the missing beamIds.. */ |
| 3681 | if (data_section->details[0].in_use) { |
| 3682 | /* If 2nd entry not in use, use that one */ |
| 3683 | if (!data_section->details[1].in_use) { |
| 3684 | index_to_use = 1; |
| 3685 | } |
| 3686 | else { |
| 3687 | /* Both in use, so replace the older of the 2 entries */ |
| 3688 | if (data_section->details[1].frame_number < data_section->details[0].frame_number) { |
| 3689 | index_to_use = 1; |
| 3690 | } |
| 3691 | } |
| 3692 | } |
| 3693 | |
| 3694 | if (data_section) { |
| 3695 | section_details_t *details = &data_section->details[index_to_use]; |
| 3696 | |
| 3697 | details->in_use = true1; |
| 3698 | details->frame = frameId; |
| 3699 | details->subframe = subframeId; |
| 3700 | details->slot = slotId; |
| 3701 | details->startSymbol = startSymbolId; |
| 3702 | details->numSymbols = numSymbol; |
| 3703 | |
| 3704 | details->frame_number = pinfo->num; |
| 3705 | details->frame_time = pinfo->abs_ts; |
| 3706 | data_section->sectionId = sectionId; |
| 3707 | details->startPrb = startPrbc; |
| 3708 | details->numPrb = numPrbc; |
| 3709 | /* Fresh per-PRB array (if any) for this definition, see section_details_t */ |
| 3710 | details->beamId = (uint16_t)section_beamId; |
| 3711 | details->beamIds = NULL((void*)0); |
| 3712 | } |
| 3713 | } |
| 3714 | |
| 3715 | bool_Bool seen_se10 = false0; |
| 3716 | uint32_t numPortc = 0; |
| 3717 | proto_item *bf_ti = NULL((void*)0); |
| 3718 | |
| 3719 | /* Section extension commands */ |
| 3720 | while (extension_flag) { |
| 3721 | int extension_start_offset = offset; |
| 3722 | |
| 3723 | /* Prefetch extType so can use specific extension type ett */ |
| 3724 | uint32_t exttype = tvb_get_uint8(tvb, offset) & 0x7f; |
| 3725 | uint32_t exttype_ett_index = exttype; |
| 3726 | if (exttype == 0 || exttype > HIGHEST_EXTTYPE35) { |
| 3727 | /* Just use first one if out of range */ |
| 3728 | exttype_ett_index = 1; |
| 3729 | } |
| 3730 | |
| 3731 | /* Create subtree for each extension (with summary) */ |
| 3732 | proto_item *extension_ti = proto_tree_add_string_format(c_section_tree, hf_oran_extension, |
| 3733 | tvb, offset, 0, "", "Extension"); |
| 3734 | proto_tree *extension_tree = proto_item_add_subtree(extension_ti, ett_oran_c_section_extension[exttype_ett_index-1]); |
| 3735 | |
| 3736 | /* ef (i.e. another extension after this one?) */ |
| 3737 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_ef, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &extension_flag); |
| 3738 | |
| 3739 | /* extType */ |
| 3740 | proto_item *exttype_ti; |
| 3741 | exttype_ti = proto_tree_add_item(extension_tree, hf_oran_exttype, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3742 | offset++; |
| 3743 | proto_item_append_text(sectionHeading, " (ext-%u)", exttype); |
| 3744 | |
| 3745 | proto_item_append_text(extension_ti, " (ext-%u: %s)", exttype, val_to_str_ext_const(exttype, &exttype_vals_ext, "Reserved")); |
| 3746 | |
| 3747 | /* Don't tap if out of range. */ |
| 3748 | if (exttype > 0 && exttype <= HIGHEST_EXTTYPE35) { |
| 3749 | tap_info->extensions[exttype] = true1; |
| 3750 | } |
| 3751 | |
| 3752 | /* Is this SE allowed for this section type? */ |
| 3753 | if (!se_allowed_in_st(exttype, sectionType)) { |
| 3754 | expert_add_info_format(pinfo, extension_tree, &ei_oran_se_on_unsupported_st, |
| 3755 | "SE %u (%s) should not appear in ST %u (%s)!", |
| 3756 | exttype, val_to_str_ext_const(exttype, &exttype_vals_ext, "Reserved"), |
| 3757 | sectionType, rval_to_str_const(sectionType, section_types, "Unknown")); |
| 3758 | } |
| 3759 | |
| 3760 | |
| 3761 | /* extLen (number of 32-bit words) */ |
| 3762 | uint32_t extlen_len = ((exttype==11)||(exttype==19)||(exttype==20)) ? 2 : 1; /* Extensions 11/19/20 are special */ |
| 3763 | uint32_t extlen; |
| 3764 | proto_item *extlen_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_extlen, tvb, |
| 3765 | offset, extlen_len, ENC_BIG_ENDIAN0x00000000, &extlen); |
| 3766 | proto_item_append_text(extlen_ti, " (%u bytes)", extlen*4); |
| 3767 | offset += extlen_len; |
| 3768 | if (extlen == 0) { |
| 3769 | expert_add_info(pinfo, extlen_ti, &ei_oran_extlen_zero); |
| 3770 | /* Break out to avoid infinitely looping! */ |
| 3771 | break; |
| 3772 | } |
| 3773 | |
| 3774 | bool_Bool ext_unhandled = false0; |
| 3775 | |
| 3776 | switch (exttype) { |
| 3777 | |
| 3778 | case 1: /* SE 1: Beamforming Weights */ |
| 3779 | { |
| 3780 | uint32_t bfwcomphdr_iq_width, bfwcomphdr_comp_meth; |
| 3781 | proto_item *comp_meth_ti = NULL((void*)0); |
| 3782 | |
| 3783 | /* Hidden filter for bf */ |
| 3784 | bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 3785 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 3786 | |
| 3787 | oran_bfws_t *tap_bfws_info = wmem_new0(pinfo->pool, oran_bfws_t)((oran_bfws_t*)wmem_alloc0((pinfo->pool), sizeof(oran_bfws_t ))); |
| 3788 | tap_bfws_info->method = se1; |
| 3789 | |
| 3790 | /* bfwCompHdr (2 subheaders - bfwIqWidth and bfwCompMeth) */ |
| 3791 | offset = dissect_bfwCompHdr(tvb, extension_tree, offset, |
| 3792 | &bfwcomphdr_iq_width, &bfwcomphdr_comp_meth, &comp_meth_ti); |
| 3793 | |
| 3794 | /* bfwCompParam */ |
| 3795 | uint32_t exponent = 0; |
| 3796 | bool_Bool compression_method_supported = false0; |
| 3797 | unsigned num_trx = pref_num_bf_antennas; |
| 3798 | uint16_t *trx = NULL((void*)0); /* ptr to array */ |
| 3799 | offset = dissect_bfwCompParam(tvb, extension_tree, pinfo, offset, comp_meth_ti, |
| 3800 | &bfwcomphdr_comp_meth, &exponent, &compression_method_supported, |
| 3801 | &num_trx, &trx); |
| 3802 | |
| 3803 | /* Can't show details of unsupported compression method */ |
| 3804 | if (!compression_method_supported) { |
| 3805 | break; |
| 3806 | } |
| 3807 | |
| 3808 | bool_Bool using_array = (trx != NULL((void*)0)); |
| 3809 | |
| 3810 | /* I & Q samples */ |
| 3811 | |
| 3812 | bool_Bool non_zero_weights_seen = false0; |
| 3813 | int bit_offset = offset*8; |
| 3814 | int offset_before_weights = offset; |
| 3815 | |
| 3816 | for (unsigned n=0; n < num_trx; n++) { |
| 3817 | /* Create antenna subtree */ |
| 3818 | int bfw_offset = bit_offset / 8; |
| 3819 | |
| 3820 | uint16_t trx_index = (using_array) ? trx[n] : n+1; |
| 3821 | |
| 3822 | proto_item *bfw_ti = proto_tree_add_string_format(extension_tree, hf_oran_bfw, |
| 3823 | tvb, bfw_offset, 0, "", "TRX %3u: (", trx_index); |
| 3824 | proto_tree *bfw_tree = proto_item_add_subtree(bfw_ti, ett_oran_bfw); |
| 3825 | |
| 3826 | /* I value */ |
| 3827 | /* Get bits, and convert to float. */ |
| 3828 | uint32_t bits = tvb_get_bits32(tvb, bit_offset, bfwcomphdr_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 3829 | if (bits) { |
| 3830 | non_zero_weights_seen = true1; |
| 3831 | } |
| 3832 | float value = decompress_value(bits, bfwcomphdr_comp_meth, bfwcomphdr_iq_width, exponent, |
| 3833 | NULL((void*)0) /* no ModCompr */, 0 /* RE */); |
| 3834 | /* Add to tree. */ |
| 3835 | proto_tree_add_float(bfw_tree, hf_oran_bfw_i, tvb, bit_offset/8, |
| 3836 | (bfwcomphdr_iq_width+7)/8, value); |
| 3837 | bit_offset += bfwcomphdr_iq_width; |
| 3838 | proto_item_append_text(bfw_ti, "I=%f ", value); |
| 3839 | tap_bfws_info->i[tap_bfws_info->i_count++] = value; |
| 3840 | |
| 3841 | /* Leave a gap between I and Q values */ |
| 3842 | proto_item_append_text(bfw_ti, " "); |
| 3843 | |
| 3844 | /* Q value */ |
| 3845 | /* Get bits, and convert to float. */ |
| 3846 | bits = tvb_get_bits32(tvb, bit_offset, bfwcomphdr_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 3847 | if (bits) { |
| 3848 | non_zero_weights_seen = true1; |
| 3849 | } |
| 3850 | |
| 3851 | value = decompress_value(bits, bfwcomphdr_comp_meth, bfwcomphdr_iq_width, exponent, |
| 3852 | NULL((void*)0) /* no ModCompr */, 0 /* RE */); |
| 3853 | /* Add to tree. */ |
| 3854 | proto_tree_add_float(bfw_tree, hf_oran_bfw_q, tvb, bit_offset/8, |
| 3855 | (bfwcomphdr_iq_width+7)/8, value); |
| 3856 | bit_offset += bfwcomphdr_iq_width; |
| 3857 | proto_item_append_text(bfw_ti, "Q=%f", value); |
| 3858 | |
| 3859 | proto_item_append_text(bfw_ti, ")"); |
| 3860 | tap_bfws_info->q[tap_bfws_info->q_count++] = value; |
| 3861 | |
| 3862 | proto_item_set_len(bfw_ti, (bit_offset+7)/8 - bfw_offset); |
| 3863 | } |
| 3864 | |
| 3865 | /* Complete BFWs tap details and send */ |
| 3866 | tap_bfws_info->beam_id = section_beamId; |
| 3867 | tap_bfws_info->start_prb = startPrbc; |
| 3868 | tap_bfws_info->end_prb = numPrbc; |
| 3869 | tap_queue_packet(oran_bfws_tap, pinfo, tap_bfws_info); |
| 3870 | |
| 3871 | /* Need to round to next byte */ |
| 3872 | offset = (bit_offset+7)/8; |
| 3873 | |
| 3874 | if (!non_zero_weights_seen) { |
| 3875 | proto_tree_add_item(extension_tree, hf_oran_bundle_weights_all_zero, tvb, |
| 3876 | offset_before_weights, offset-offset_before_weights, ENC_NA0x00000000); |
| 3877 | } |
| 3878 | break; |
| 3879 | } |
| 3880 | |
| 3881 | case 2: /* SE 2: Beamforming attributes */ |
| 3882 | { |
| 3883 | /* Hidden filter for bf */ |
| 3884 | bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 3885 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 3886 | |
| 3887 | /* bfaCompHdr (get widths of fields to follow) */ |
| 3888 | uint32_t bfAzPtWidth, bfZePtWidth, bfAz3ddWidth, bfZe3ddWidth; |
| 3889 | /* subtree */ |
| 3890 | proto_item *bfa_ti = proto_tree_add_string_format(extension_tree, hf_oran_bfaCompHdr, |
| 3891 | tvb, offset, 2, "", "bfaCompHdr"); |
| 3892 | proto_tree *bfa_tree = proto_item_add_subtree(bfa_ti, ett_oran_bfacomphdr); |
| 3893 | |
| 3894 | /* reserved (2 bits) */ |
| 3895 | add_reserved_field(bfa_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 3896 | /* bfAzPtWidth (3 bits) */ |
| 3897 | proto_tree_add_item_ret_uint(bfa_tree, hf_oran_bfAzPtWidth, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &bfAzPtWidth); |
| 3898 | /* bfZePtWidth (3 bits) */ |
| 3899 | proto_tree_add_item_ret_uint(bfa_tree, hf_oran_bfZePtWidth, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &bfZePtWidth); |
| 3900 | offset += 1; |
| 3901 | |
| 3902 | /* reserved (2 bits) */ |
| 3903 | add_reserved_field(bfa_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 3904 | /* bfAz3ddWidth (3 bits) */ |
| 3905 | proto_tree_add_item_ret_uint(bfa_tree, hf_oran_bfAz3ddWidth, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &bfAz3ddWidth); |
| 3906 | /* bfZe3ddWidth (3 bits) */ |
| 3907 | proto_tree_add_item_ret_uint(bfa_tree, hf_oran_bfZe3ddWidth, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &bfZe3ddWidth); |
| 3908 | offset += 1; |
| 3909 | |
| 3910 | unsigned bit_offset = offset*8; |
| 3911 | |
| 3912 | /* bfAzPt */ |
| 3913 | if (bfAzPtWidth > 0) { |
| 3914 | proto_tree_add_bits_item(extension_tree, hf_oran_bfAzPt, tvb, bit_offset, bfAzPtWidth+1, ENC_BIG_ENDIAN0x00000000); |
| 3915 | bit_offset += (bfAzPtWidth+1); |
| 3916 | } |
| 3917 | /* bfZePt */ |
| 3918 | if (bfZePtWidth > 0) { |
| 3919 | proto_tree_add_bits_item(extension_tree, hf_oran_bfZePt, tvb, bit_offset, bfZePtWidth+1, ENC_BIG_ENDIAN0x00000000); |
| 3920 | bit_offset += (bfZePtWidth+1); |
| 3921 | } |
| 3922 | /* bfAz3dd */ |
| 3923 | if (bfAz3ddWidth > 0) { |
| 3924 | proto_tree_add_bits_item(extension_tree, hf_oran_bfAz3dd, tvb, bit_offset, bfAz3ddWidth+1, ENC_BIG_ENDIAN0x00000000); |
| 3925 | bit_offset += (bfAz3ddWidth+1); |
| 3926 | } |
| 3927 | /* bfZe3dd */ |
| 3928 | if (bfZe3ddWidth > 0) { |
| 3929 | proto_tree_add_bits_item(extension_tree, hf_oran_bfZe3dd, tvb, bit_offset, bfZe3ddWidth+1, ENC_BIG_ENDIAN0x00000000); |
| 3930 | bit_offset += (bfZe3ddWidth+1); |
| 3931 | } |
| 3932 | |
| 3933 | /* Pad to next byte (unless last 2 fields already fit in this one) */ |
| 3934 | if ((bit_offset % 8) > 2) { |
| 3935 | offset = (bit_offset+7) / 8; |
| 3936 | } |
| 3937 | else { |
| 3938 | offset = bit_offset / 8; |
| 3939 | } |
| 3940 | |
| 3941 | /* bfAzSl (3 bits) */ |
| 3942 | proto_tree_add_item(extension_tree, hf_oran_bfAzSl, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3943 | /* bfZeSl (3 bits) */ |
| 3944 | proto_tree_add_item(extension_tree, hf_oran_bfZeSl, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3945 | offset += 1; |
| 3946 | break; |
| 3947 | } |
| 3948 | |
| 3949 | case 3: /* SE 3: DL precoding parameters */ |
| 3950 | { |
| 3951 | /* codebookindex (8 bits) */ |
| 3952 | /* "This parameter is not used and shall be set to zero." */ |
| 3953 | proto_tree_add_item(extension_tree, hf_oran_codebook_index, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3954 | offset += 1; |
| 3955 | /* layerid */ |
| 3956 | uint32_t layerid; |
| 3957 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_layerid, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &layerid); |
| 3958 | /* numLayers */ |
| 3959 | proto_tree_add_item(extension_tree, hf_oran_numlayers, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3960 | offset += 1; |
| 3961 | |
| 3962 | /* Stop here for non-first data layer */ |
| 3963 | if (layerid != 0 && layerid != 0xf) { |
| 3964 | break; |
| 3965 | } |
| 3966 | |
| 3967 | /* First data layer case */ |
| 3968 | /* txScheme */ |
| 3969 | proto_tree_add_item(extension_tree, hf_oran_txscheme, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3970 | /* crsReMask */ |
| 3971 | proto_tree_add_item(extension_tree, hf_oran_crs_remask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 3972 | offset += 2; |
| 3973 | |
| 3974 | /* crsShift (1 bit) */ |
| 3975 | proto_tree_add_item(extension_tree, hf_oran_crs_shift, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3976 | /* reserved (3 bits) */ |
| 3977 | add_reserved_field(extension_tree, hf_oran_reserved_bits123, tvb, offset, 1); |
| 3978 | /* crsSymNum (4 bits) */ |
| 3979 | proto_tree_add_item(extension_tree, hf_oran_crs_symnum, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 3980 | offset += 1; |
| 3981 | /* reserved (8 bits) */ |
| 3982 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 3983 | offset += 1; |
| 3984 | |
| 3985 | /* reserved (1 bit) */ |
| 3986 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3987 | /* beamIdAP1 (15 bits) */ |
| 3988 | proto_tree_add_item(extension_tree, hf_oran_beamid_ap1, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 3989 | offset += 2; |
| 3990 | /* reserved (1 bit) */ |
| 3991 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3992 | /* beamIdAP2 (15 bits) */ |
| 3993 | proto_tree_add_item(extension_tree, hf_oran_beamid_ap2, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 3994 | offset += 2; |
| 3995 | /* reserved (1 bit) */ |
| 3996 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 3997 | /* beamIdAP3 (15 bits) */ |
| 3998 | proto_tree_add_item(extension_tree, hf_oran_beamid_ap3, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 3999 | offset += 2; |
| 4000 | break; |
| 4001 | } |
| 4002 | |
| 4003 | case 4: /* SE 4: Modulation compression params (5.4.7.4) (single sets) */ |
| 4004 | { |
| 4005 | /* csf */ |
| 4006 | bool_Bool csf; |
| 4007 | dissect_csf(extension_tree, tvb, offset*8, ci_iq_width, &csf); |
| 4008 | |
| 4009 | /* modCompScaler (16 bits) */ |
| 4010 | uint32_t modCompScaler; |
| 4011 | proto_item *ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_modcompscaler, |
| 4012 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &modCompScaler); |
| 4013 | offset += 2; |
| 4014 | |
| 4015 | /* Work out and show floating point value too. exponent and mantissa are both unsigned */ |
| 4016 | uint16_t exponent = (modCompScaler >> 11) & 0x000f; /* m.s. 4 bits */ |
| 4017 | uint16_t mantissa = modCompScaler & 0x07ff; /* l.s. 11 bits */ |
| 4018 | float value = ((float)mantissa/(1<<11)) * ((float)1.0 / (1 << exponent)); |
| 4019 | proto_item_append_text(ti, " (%f)", value); |
| 4020 | |
| 4021 | section_mod_compr_config_t* sect_config = get_mod_compr_section_to_write(pinfo, state, sectionId); |
| 4022 | |
| 4023 | /* Store these params in this flow's state */ |
| 4024 | if (sect_config && sect_config->num_configs < MAX_MOD_COMPR_CONFIGS12) { |
| 4025 | unsigned i = sect_config->num_configs; |
| 4026 | sect_config->configs[i].mod_compr_re_mask = 0xfff; /* Covers all REs */ |
| 4027 | sect_config->configs[i].mod_compr_csf = csf; |
| 4028 | sect_config->configs[i].mod_compr_scaler = value; |
| 4029 | sect_config->num_configs++; |
| 4030 | } |
| 4031 | break; |
| 4032 | } |
| 4033 | |
| 4034 | case 5: /* SE 5: Modulation Compression Additional Parameters (7.7.5) (multiple sets) */ |
| 4035 | { |
| 4036 | /* Applies only to section types 1,3 and 5 */ |
| 4037 | /* N.B. there may be multiple instances of this SE in the same frame */ |
| 4038 | |
| 4039 | /* There may be one or 2 entries, depending upon extLen */ |
| 4040 | int sets = 1, reserved_bits = 0; |
| 4041 | switch (extlen) { |
| 4042 | case 2: |
| 4043 | sets = 1; |
| 4044 | reserved_bits = 20; |
| 4045 | break; |
| 4046 | case 3: |
| 4047 | sets = 2; |
| 4048 | reserved_bits = 24; |
| 4049 | break; |
| 4050 | case 4: |
| 4051 | /* sets can be 3 or 4, depending upon whether last 28 bits are 0.. */ |
| 4052 | if ((tvb_get_ntohl(tvb, offset+10) & 0x0fffffff) == 0) { |
| 4053 | sets = 3; |
| 4054 | reserved_bits = 28; |
| 4055 | } |
| 4056 | else { |
| 4057 | sets = 4; |
| 4058 | reserved_bits = 0; |
| 4059 | } |
| 4060 | break; |
| 4061 | |
| 4062 | /* TODO: it seems that it could be longer.. */ |
| 4063 | default: |
| 4064 | /* Malformed error!!! */ |
| 4065 | expert_add_info_format(pinfo, extlen_ti, &ei_oran_extlen_wrong, |
| 4066 | "For SE5 (modCompr additional params), extLen must be 2, 3 or 4, but %u was dissected", |
| 4067 | extlen); |
| 4068 | break; |
| 4069 | } |
| 4070 | |
| 4071 | uint64_t accumulated_mc_scale_re_mask = 0; |
| 4072 | unsigned bit_offset = offset*8; |
| 4073 | /* Dissect each set */ |
| 4074 | for (int s=0; s < sets; s++) { |
| 4075 | /* Subtree for each set */ |
| 4076 | unsigned set_start_offset = bit_offset/8; |
| 4077 | proto_item *set_ti = proto_tree_add_string(extension_tree, hf_oran_modcomp_param_set, |
| 4078 | tvb, set_start_offset, 0, ""); |
| 4079 | proto_tree *set_tree = proto_item_add_subtree(set_ti, ett_oran_modcomp_param_set); |
| 4080 | |
| 4081 | uint64_t mcScaleReMask, mcScaleOffset; |
| 4082 | bool_Bool csf; |
| 4083 | |
| 4084 | /* mcScaleReMask (12 bits). Defines which REs the following csf and mcScaleOffset apply to */ |
| 4085 | static int * const remask_flags[] = { |
| 4086 | &hf_oran_mc_scale_re_mask_re1, |
| 4087 | &hf_oran_mc_scale_re_mask_re2, |
| 4088 | &hf_oran_mc_scale_re_mask_re3, |
| 4089 | &hf_oran_mc_scale_re_mask_re4, |
| 4090 | &hf_oran_mc_scale_re_mask_re5, |
| 4091 | &hf_oran_mc_scale_re_mask_re6, |
| 4092 | &hf_oran_mc_scale_re_mask_re7, |
| 4093 | &hf_oran_mc_scale_re_mask_re8, |
| 4094 | &hf_oran_mc_scale_re_mask_re9, |
| 4095 | &hf_oran_mc_scale_re_mask_re10, |
| 4096 | &hf_oran_mc_scale_re_mask_re11, |
| 4097 | &hf_oran_mc_scale_re_mask_re12, |
| 4098 | NULL((void*)0) |
| 4099 | }; |
| 4100 | /* Same as above, but offset by 4 bits */ |
| 4101 | static int * const remask_flags_even[] = { |
| 4102 | &hf_oran_mc_scale_re_mask_re1_even, |
| 4103 | &hf_oran_mc_scale_re_mask_re2_even, |
| 4104 | &hf_oran_mc_scale_re_mask_re3_even, |
| 4105 | &hf_oran_mc_scale_re_mask_re4_even, |
| 4106 | &hf_oran_mc_scale_re_mask_re5_even, |
| 4107 | &hf_oran_mc_scale_re_mask_re6_even, |
| 4108 | &hf_oran_mc_scale_re_mask_re7_even, |
| 4109 | &hf_oran_mc_scale_re_mask_re8_even, |
| 4110 | &hf_oran_mc_scale_re_mask_re9_even, |
| 4111 | &hf_oran_mc_scale_re_mask_re10_even, |
| 4112 | &hf_oran_mc_scale_re_mask_re11_even, |
| 4113 | &hf_oran_mc_scale_re_mask_re12_even, |
| 4114 | NULL((void*)0) |
| 4115 | }; |
| 4116 | |
| 4117 | /* RE Mask for set (12 bits) */ |
| 4118 | proto_item *set_re_mask_ti; |
| 4119 | set_re_mask_ti = proto_tree_add_bitmask_ret_uint64(set_tree, tvb, bit_offset / 8, |
| 4120 | (s % 2) ? hf_oran_mc_scale_re_mask_even : hf_oran_mc_scale_re_mask, |
| 4121 | ett_oran_mc_scale_remask, |
| 4122 | (s % 2) ? remask_flags_even : remask_flags, ENC_BIG_ENDIAN0x00000000, &mcScaleReMask); |
| 4123 | bit_offset += 12; |
| 4124 | |
| 4125 | if (mcScaleReMask == 0) { |
| 4126 | /* Shouldn't expect an entry with an entry that doesn't change anything. */ |
| 4127 | /* Exception (from Table 7.7.5.1-3) is when extLen=4 and this is the 4th set */ |
| 4128 | if (!(extlen == 4 && s == 3)) { |
| 4129 | expert_add_info(pinfo, set_re_mask_ti, &ei_oran_se5_re_zero_re_mask); |
| 4130 | } |
| 4131 | } |
| 4132 | |
| 4133 | if (re_mask_ti && (mcScaleReMask & re_mask) != mcScaleReMask) { |
| 4134 | /* Bits set that were not in reMask! */ |
| 4135 | expert_add_info_format(pinfo, set_re_mask_ti, &ei_oran_se5_re_mask_bit_not_in_re_mask, |
| 4136 | "SE 5 set references REs (0x%03x) not set in the section reMask (0x%03x)", |
| 4137 | (uint16_t)mcScaleReMask, (uint16_t)re_mask); |
| 4138 | } |
| 4139 | |
| 4140 | if (accumulated_mc_scale_re_mask & mcScaleReMask) { |
| 4141 | /* Bits have already been covered! */ |
| 4142 | expert_add_info_format(pinfo, set_re_mask_ti, &ei_oran_se5_re_mask_bit_repeated, |
| 4143 | "SE 5 set references REs (0x%03x) already covered by an earlier set", |
| 4144 | (uint16_t)mcScaleReMask); |
| 4145 | } |
| 4146 | |
| 4147 | /* Add RE bits from this set to accumulated */ |
| 4148 | accumulated_mc_scale_re_mask |= mcScaleReMask; |
| 4149 | |
| 4150 | /* csf (1 bit) */ |
| 4151 | bit_offset = dissect_csf(set_tree, tvb, bit_offset, ci_iq_width, &csf); |
| 4152 | /* mcScaleOffset (15 bits) */ |
| 4153 | proto_item *ti = proto_tree_add_bits_ret_val(set_tree, hf_oran_mc_scale_offset, tvb, bit_offset, 15, &mcScaleOffset, ENC_BIG_ENDIAN0x00000000); |
| 4154 | uint16_t exponent = (mcScaleOffset >> 11) & 0x000f; /* m.s. 4 bits */ |
| 4155 | uint16_t mantissa = mcScaleOffset & 0x07ff; /* l.s. 11 bits */ |
| 4156 | float mcScaleOffset_value = ((float)mantissa/(1<<11)) * ((float)1.0 / (1 << exponent)); |
| 4157 | proto_item_append_text(ti, " (%f)", mcScaleOffset_value); |
| 4158 | bit_offset += 15; |
| 4159 | |
| 4160 | section_mod_compr_config_t* sect_config = get_mod_compr_section_to_write(pinfo, state, sectionId); |
| 4161 | |
| 4162 | /* Record this config */ |
| 4163 | if (sect_config && sect_config->num_configs < MAX_MOD_COMPR_CONFIGS12) { |
| 4164 | unsigned i = sect_config->num_configs; |
| 4165 | sect_config->configs[i].mod_compr_re_mask = (uint16_t)mcScaleReMask; |
| 4166 | sect_config->configs[i].mod_compr_csf = csf; |
| 4167 | sect_config->configs[i].mod_compr_scaler = mcScaleOffset_value; |
| 4168 | sect_config->num_configs++; |
| 4169 | } |
| 4170 | |
| 4171 | /* Summary */ |
| 4172 | proto_item_set_len(set_ti, (bit_offset+7)/8 - set_start_offset); |
| 4173 | proto_item_append_text(set_ti, " (mcScaleReMask=0x%03x csf=%5s mcScaleOffset=%f)", |
| 4174 | (unsigned)mcScaleReMask, tfs_get_true_false(csf)tfs_get_string(csf, ((void*)0)), mcScaleOffset_value); |
| 4175 | } |
| 4176 | |
| 4177 | proto_item_append_text(extension_ti, " (%u sets)", sets); |
| 4178 | |
| 4179 | if (re_mask_ti && accumulated_mc_scale_re_mask != re_mask) { |
| 4180 | /* Complain that not all bits were set */ |
| 4181 | expert_add_info_format(pinfo, re_mask_ti, &ei_oran_se5_re_mask_bits_not_covered, |
| 4182 | "Section reMask (0x%03x) has bits not covered by any sets (covers 0x%03x)", |
| 4183 | (uint16_t)re_mask, (uint16_t)accumulated_mc_scale_re_mask); |
| 4184 | } |
| 4185 | |
| 4186 | /* Reserved (variable-length) */ |
| 4187 | if (reserved_bits) { |
| 4188 | proto_tree_add_bits_item(extension_tree, hf_oran_reserved, tvb, bit_offset, reserved_bits, ENC_BIG_ENDIAN0x00000000); |
| 4189 | bit_offset += reserved_bits; |
| 4190 | } |
| 4191 | |
| 4192 | offset = bit_offset/8; |
| 4193 | break; |
| 4194 | } |
| 4195 | |
| 4196 | case 6: /* SE 6: Non-contiguous PRB allocation in time and frequency domain */ |
| 4197 | { |
| 4198 | /* numSymbol not used in this case */ |
| 4199 | if (numsymbol_ti && !numsymbol_ignored) { |
| 4200 | proto_item_append_text(numsymbol_ti, " (ignored)"); |
| 4201 | numsymbol_ignored = true1; |
| 4202 | } |
| 4203 | |
| 4204 | /* Will update ext6 recorded info */ |
| 4205 | ext11_settings.ext6_set = true1; |
| 4206 | |
| 4207 | /* TODO: rb bit must be zero (unless "se6-rb-bit-supported" is set) */ |
| 4208 | |
| 4209 | /* repetition (only valid to be set if coupling via frequency and time with priorities (optimized) (7.8.1.5) */ |
| 4210 | proto_tree_add_bits_item(extension_tree, hf_oran_se6_repetition, tvb, offset*8, 1, ENC_BIG_ENDIAN0x00000000); |
| 4211 | /* rbgSize (PRBs per bit set in rbgMask) */ |
| 4212 | uint32_t rbgSize; |
| 4213 | proto_item *rbg_size_ti; |
| 4214 | rbg_size_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_rbgSize, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &rbgSize); |
| 4215 | if (rbgSize == 0) { |
| 4216 | /* N.B. this is only true if "se6-rb-bit-supported" is set... */ |
| 4217 | expert_add_info(pinfo, rbg_size_ti, &ei_oran_rbg_size_reserved); |
| 4218 | } |
| 4219 | /* rbgMask (28 bits) */ |
| 4220 | uint32_t rbgMask; |
| 4221 | proto_item *rbgmask_ti; // = proto_tree_add_item_ret_uint(extension_tree, hf_oran_rbgMask, tvb, offset, 4, ENC_BIG_ENDIAN, &rbgMask); |
| 4222 | offset = dissect_rbg_mask(extension_tree, tvb, offset, &rbgMask, &rbgmask_ti); |
| 4223 | if (rbgSize == 0) { |
| 4224 | proto_item_append_text(rbgmask_ti, " (value ignored since rbgSize is 0)"); |
| 4225 | } |
| 4226 | |
| 4227 | /* TODO: if receiver detects non-zero bits outside the valid range, those shall be ignored. */ |
| 4228 | /* priority (only valid to be set if coupling via frequency and time with priorities (7.8.1.3) */ |
| 4229 | proto_tree_add_item(extension_tree, hf_oran_noncontig_priority, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4230 | /* symbolMask */ |
| 4231 | offset = dissect_symbolmask(tvb, extension_tree, offset, NULL((void*)0), NULL((void*)0)); |
| 4232 | |
| 4233 | /* Look up rbg_size enum -> value */ |
| 4234 | switch (rbgSize) { |
| 4235 | case 0: |
| 4236 | /* N.B. reserved, but covered above with expert info (would remain 0) */ |
| 4237 | /* Might also indicate that rb bit is valid */ |
| 4238 | break; |
| 4239 | case 1: |
| 4240 | ext11_settings.ext6_rbg_size = 1; break; |
| 4241 | case 2: |
| 4242 | ext11_settings.ext6_rbg_size = 2; break; |
| 4243 | case 3: |
| 4244 | ext11_settings.ext6_rbg_size = 3; break; |
| 4245 | case 4: |
| 4246 | ext11_settings.ext6_rbg_size = 4; break; |
| 4247 | case 5: |
| 4248 | ext11_settings.ext6_rbg_size = 6; break; |
| 4249 | case 6: |
| 4250 | ext11_settings.ext6_rbg_size = 8; break; |
| 4251 | case 7: |
| 4252 | ext11_settings.ext6_rbg_size = 16; break; |
| 4253 | /* N.B., encoded in 3 bits, so no other values are possible */ |
| 4254 | } |
| 4255 | |
| 4256 | /* Set to looked-up value */ |
| 4257 | rbgSize = ext11_settings.ext6_rbg_size; |
| 4258 | |
| 4259 | uint32_t lastRbgid = 0; |
| 4260 | if (rbgSize != 0) { |
| 4261 | /* The O-DU shall not use combinations of startPrbc, numPrbc and rbgSize leading to a value of lastRbgid larger than 27 */ |
| 4262 | /* i.e., leftmost bit used should not need to go off left end of rbgMask! */ |
| 4263 | lastRbgid = (uint32_t)ceil((numPrbc + (startPrbc % rbgSize)) / (float)rbgSize) - 1; |
| 4264 | if (lastRbgid > 27) { |
| 4265 | expert_add_info_format(pinfo, rbg_size_ti, &ei_oran_lastRbdid_out_of_range, |
| 4266 | "SE6: rbgSize (%u) not compatible with startPrbc(%u) and numPrbc(%u)", |
| 4267 | rbgSize, startPrbc, numPrbc); |
| 4268 | break; |
| 4269 | } |
| 4270 | } |
| 4271 | |
| 4272 | /* Record (and count) which bits are set in rbgMask */ |
| 4273 | bool_Bool first_seen = false0; |
| 4274 | unsigned first_seen_pos=0, last_seen_pos=0; |
| 4275 | for (unsigned n=0; n < 28 && ext11_settings.ext6_num_bits_set < 28; n++) { |
| 4276 | if ((rbgMask >> n) & 0x01) { |
| 4277 | ext11_settings.ext6_bits_set[ext11_settings.ext6_num_bits_set++] = n; |
| 4278 | if (!first_seen) { |
| 4279 | first_seen = true1; |
| 4280 | first_seen_pos = n; |
| 4281 | } |
| 4282 | last_seen_pos = n; |
| 4283 | } |
| 4284 | } |
| 4285 | |
| 4286 | /* Show how many bits were set in rbgMask */ |
| 4287 | proto_item_append_text(rbgmask_ti, " (%u bits set)", ext11_settings.ext6_num_bits_set); |
| 4288 | /* Also, that is the range of bits */ |
| 4289 | if (first_seen) { |
| 4290 | proto_item_append_text(rbgmask_ti, " (%u bits spread)", last_seen_pos-first_seen_pos+1); |
| 4291 | |
| 4292 | /* Complain if last set bit is beyond lastRbgid */ |
| 4293 | if (last_seen_pos > lastRbgid) { |
| 4294 | expert_add_info_format(pinfo, rbgmask_ti, &ei_oran_rbgMask_beyond_last_rbdid, |
| 4295 | "SE6: rbgMask (0x%07x) has bit %u set, but lastRbgId is %u", |
| 4296 | rbgMask, last_seen_pos, lastRbgid); |
| 4297 | } |
| 4298 | } |
| 4299 | |
| 4300 | /* Also update prbs_for_st10_type5[] */ |
| 4301 | if (sectionType == 10 && rbgSize != 0) { |
| 4302 | /* Unset all entries */ |
| 4303 | memset(&prbs_for_st10_type5, 0, sizeof(prbs_for_st10_type5)); |
| 4304 | |
| 4305 | /* Work out which PRB first bit corresponds to */ |
| 4306 | unsigned firstPrbStart = (startPrbc/rbgSize) * rbgSize; |
| 4307 | |
| 4308 | /* Add PRBs corresponding to each bit set */ |
| 4309 | for (unsigned n=0; n < 28 ; n++) { |
| 4310 | if ((rbgMask >> n) & 0x01) { |
| 4311 | /* Lazy way to clip any values that lie outside of range for section */ |
| 4312 | for (unsigned p=0; p < rbgSize; p++) { |
| 4313 | unsigned start = firstPrbStart + (n*rbgSize); |
| 4314 | if ((start+p < MAX_PRBS273) && (start+p >= startPrbc) && (start+p <= startPrbc+numPrbc-1)) { |
| 4315 | prbs_for_st10_type5[start+p] = true1; |
| 4316 | } |
| 4317 | } |
| 4318 | } |
| 4319 | } |
| 4320 | } |
| 4321 | |
| 4322 | break; |
| 4323 | } |
| 4324 | |
| 4325 | case 7: /* SE 7: eAxC mask */ |
| 4326 | /* Allow ST0 to address multiple eAxC_ID values for transmission blanking */ |
| 4327 | proto_tree_add_item(extension_tree, hf_oran_eAxC_mask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4328 | offset += 2; |
| 4329 | break; |
| 4330 | |
| 4331 | case 8: /* SE 8: Regularization factor */ |
| 4332 | { |
| 4333 | for (unsigned ueid_index=0; ueid_index < number_of_ueids; ueid_index++) { |
| 4334 | /* regularizationFactor (2 bytes) */ |
| 4335 | proto_item *rf_ti = proto_tree_add_item(extension_tree, hf_oran_regularizationFactor, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4336 | proto_item_append_text(rf_ti, " (UeId=%u)", ueids[ueid_index]); |
| 4337 | offset += 2; |
| 4338 | } |
| 4339 | break; |
| 4340 | } |
| 4341 | case 9: /* SE 9: Dynamic Spectrum Sharing parameters */ |
| 4342 | /* Technology (1 byte) */ |
| 4343 | proto_tree_add_item(extension_tree, hf_oran_technology, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4344 | offset += 1; |
| 4345 | /* Reserved (1 byte) */ |
| 4346 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 4347 | offset += 1; |
| 4348 | break; |
| 4349 | |
| 4350 | case 10: /* SE 10: Group configuration of multiple ports */ |
| 4351 | { |
| 4352 | seen_se10 = true1; |
| 4353 | |
| 4354 | /* beamGroupType */ |
| 4355 | uint32_t beam_group_type = 0; |
| 4356 | proto_item *bgt_ti; |
| 4357 | bgt_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_beamGroupType, |
| 4358 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &beam_group_type); |
| 4359 | proto_item_append_text(extension_ti, " (%s)", val_to_str_const(beam_group_type, beam_group_type_vals, "Unknown")); |
| 4360 | |
| 4361 | /* numPortc */ |
| 4362 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_numPortc, |
| 4363 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &numPortc); |
| 4364 | offset++; |
| 4365 | |
| 4366 | /* Will append all beamId values to extension_ti, regardless of beamGroupType */ |
| 4367 | unsigned n; |
| 4368 | |
| 4369 | switch (beam_group_type) { |
| 4370 | case 0x0: /* common beam */ |
| 4371 | case 0x1: /* beam matrix indication */ |
| 4372 | /* Reserved byte */ |
| 4373 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 4374 | offset++; |
| 4375 | |
| 4376 | /* Explain how entries are allocated */ |
| 4377 | if (beam_group_type == 0x0) { |
| 4378 | proto_item_append_text(extension_ti, " (all %u ueid/Beam entries are %u)", numPortc, ueId); |
| 4379 | } |
| 4380 | else { |
| 4381 | /* 'numPortc' consecutive BeamIds from section header */ |
| 4382 | proto_item_append_text(extension_ti, " (ueId/beam entries are %u -> %u)", ueId, ueId+numPortc); |
| 4383 | } |
| 4384 | |
| 4385 | if (sectionType == 5) { |
| 4386 | /* These types are not allowed */ |
| 4387 | expert_add_info_format(pinfo, bgt_ti, &ei_oran_se10_not_allowed, |
| 4388 | "SE10: beamGroupType %u is not allowed for section type 5", beam_group_type); |
| 4389 | } |
| 4390 | break; |
| 4391 | |
| 4392 | case 0x2: /* beam vector listing */ |
| 4393 | { |
| 4394 | proto_item_append_text(extension_ti, " [ "); |
| 4395 | |
| 4396 | /* Beam listing vector case */ |
| 4397 | /* Work out how many port beam entries there is room for */ |
| 4398 | /* Using numPortC as visible in issue 18116 */ |
| 4399 | for (n=0; n < numPortc; n++) { |
| 4400 | /* Port subtree */ |
| 4401 | proto_item *port_ti = proto_tree_add_item(extension_tree, hf_oran_se10_port, |
| 4402 | tvb, offset, 2, ENC_NA0x00000000); |
| 4403 | proto_tree *port_tree = proto_item_add_subtree(port_ti, ett_oran_se10_port); |
| 4404 | |
| 4405 | /* 1 reserved bit */ |
| 4406 | add_reserved_field(port_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 4407 | |
| 4408 | /* port beam ID (or UEID) (15 bits) */ |
| 4409 | uint32_t id; |
| 4410 | proto_item *beamid_or_ueid_ti = proto_tree_add_item_ret_uint(port_tree, hf_oran_beamId, |
| 4411 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &id); |
| 4412 | proto_item_append_text(beamid_or_ueid_ti, " (or UEId) port #%u", n); |
| 4413 | offset += 2; |
| 4414 | |
| 4415 | if (id != 0x7fff) { |
| 4416 | if (number_of_ueids < MAX_UEIDS16) { |
| 4417 | ueids[number_of_ueids++] = id; |
| 4418 | } |
| 4419 | } |
| 4420 | |
| 4421 | proto_item_append_text(extension_ti, "%u ", id); |
| 4422 | proto_item_append_text(port_ti, " (beam/ueid %u)", id); |
| 4423 | } |
| 4424 | |
| 4425 | proto_item_append_text(extension_ti, "]"); |
| 4426 | break; |
| 4427 | } |
| 4428 | case 0x3: /* beamId/ueId listing with associated port-list index */ |
| 4429 | { |
| 4430 | proto_item_append_text(extension_ti, " [ "); |
| 4431 | |
| 4432 | if (numPortc > 0) { |
| 4433 | /* first portListIndex is outside loop */ |
| 4434 | uint32_t port_list_index; |
| 4435 | proto_item *pli_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_port_list_index, tvb, |
| 4436 | offset, 1, ENC_BIG_ENDIAN0x00000000, &port_list_index); |
| 4437 | if (port_list_index == 0) { |
| 4438 | /* Value 0 is reserved */ |
| 4439 | expert_add_info(pinfo, pli_ti, &ei_oran_port_list_index_zero); |
| 4440 | } |
| 4441 | offset += 1; |
| 4442 | |
| 4443 | for (n=0; n < numPortc-1; n++) { |
| 4444 | /* Port subtree */ |
| 4445 | proto_item *port_ti = proto_tree_add_item(extension_tree, hf_oran_se10_port, |
| 4446 | tvb, offset, 3, ENC_NA0x00000000); |
| 4447 | proto_tree *port_tree = proto_item_add_subtree(port_ti, ett_oran_se10_port); |
| 4448 | |
| 4449 | /* 1 reserved bit */ |
| 4450 | add_reserved_field(port_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 4451 | |
| 4452 | /* port beam ID (or UEID) */ |
| 4453 | uint32_t id; |
| 4454 | proto_item *beamid_or_ueid_ti = proto_tree_add_item_ret_uint(port_tree, hf_oran_beamId, |
| 4455 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &id); |
| 4456 | proto_item_append_text(beamid_or_ueid_ti, " port #%u beam ID (or UEId) %u", n, id); |
| 4457 | offset += 2; |
| 4458 | |
| 4459 | if (id != 0x7fff) { |
| 4460 | if (number_of_ueids < MAX_UEIDS16) { |
| 4461 | ueids[number_of_ueids++] = id; |
| 4462 | } |
| 4463 | } |
| 4464 | |
| 4465 | /* subsequent portListIndex */ |
| 4466 | pli_ti = proto_tree_add_item_ret_uint(port_tree, hf_oran_port_list_index, tvb, |
| 4467 | offset, 1, ENC_BIG_ENDIAN0x00000000, &port_list_index); |
| 4468 | if (port_list_index == 0) { |
| 4469 | /* Value 0 is reserved */ |
| 4470 | expert_add_info(pinfo, pli_ti, &ei_oran_port_list_index_zero); |
| 4471 | } |
| 4472 | offset += 1; |
| 4473 | |
| 4474 | proto_item_append_text(extension_ti, "%u:%u ", port_list_index, id); |
| 4475 | proto_item_append_text(port_ti, " (beam/ueid %u, portListIndex %u)", id, port_list_index); |
| 4476 | } |
| 4477 | } |
| 4478 | |
| 4479 | proto_item_append_text(extension_ti, "]"); |
| 4480 | break; |
| 4481 | } |
| 4482 | |
| 4483 | |
| 4484 | default: |
| 4485 | /* Warning for unsupported/reserved value */ |
| 4486 | expert_add_info(NULL((void*)0), bgt_ti, &ei_oran_se10_unknown_beamgrouptype); |
| 4487 | break; |
| 4488 | } |
| 4489 | break; |
| 4490 | } |
| 4491 | |
| 4492 | case 11: /* SE 11: Flexible Weights Extension Type */ |
| 4493 | { |
| 4494 | /* Hidden filter for bf */ |
| 4495 | bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 4496 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 4497 | |
| 4498 | /* beamId in section header should be ignored. Guard against appending multiple times.. */ |
| 4499 | if (section_beamId_ti && !section_beamId_ignored) { |
| 4500 | proto_item_append_text(section_beamId_ti, " (ignored)"); |
| 4501 | section_beamId_ignored = true1; |
| 4502 | } |
| 4503 | |
| 4504 | bool_Bool disableBFWs; |
| 4505 | uint32_t numBundPrb; |
| 4506 | bool_Bool rad; |
| 4507 | |
| 4508 | /* disableBFWs */ |
| 4509 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_disable_bfws, |
| 4510 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &disableBFWs); |
| 4511 | if (disableBFWs) { |
| 4512 | proto_item_append_text(extension_ti, " (disableBFWs)"); |
| 4513 | } |
| 4514 | |
| 4515 | /* RAD */ |
| 4516 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_rad, |
| 4517 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &rad); |
| 4518 | /* bundleOffset (6 bits) */ |
| 4519 | proto_tree_add_item(extension_tree, hf_oran_bundle_offset, tvb, |
| 4520 | offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4521 | offset++; |
| 4522 | |
| 4523 | /* numBundPrb (number of prbs in each bundle) */ |
| 4524 | proto_item *num_bund_prb_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_num_bund_prbs, |
| 4525 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &numBundPrb); |
| 4526 | offset++; |
| 4527 | /* value zero is reserved.. */ |
| 4528 | if (numBundPrb == 0) { |
| 4529 | expert_add_info(pinfo, num_bund_prb_ti, &ei_oran_reserved_numBundPrb); |
| 4530 | } |
| 4531 | |
| 4532 | uint32_t num_bundles; |
| 4533 | bool_Bool orphaned_prbs = false0; |
| 4534 | |
| 4535 | /* N.B. glibly assuming that Mu=1 */ |
| 4536 | uint32_t symbol_count = (frameId*20 + slotId) * 14 + startSymbolId; |
| 4537 | |
| 4538 | if (!disableBFWs) { |
| 4539 | /********************************************/ |
| 4540 | /* Table 7.7.11.1-1 */ |
| 4541 | /* Weights are present */ |
| 4542 | /********************************************/ |
| 4543 | |
| 4544 | uint32_t bfwcomphdr_iq_width, bfwcomphdr_comp_meth; |
| 4545 | proto_item *comp_meth_ti = NULL((void*)0); |
| 4546 | |
| 4547 | /* bfwCompHdr (2 subheaders - bfwIqWidth and bfwCompMeth)*/ |
| 4548 | offset = dissect_bfwCompHdr(tvb, extension_tree, offset, |
| 4549 | &bfwcomphdr_iq_width, &bfwcomphdr_comp_meth, &comp_meth_ti); |
| 4550 | |
| 4551 | /* Work out number of bundles, but take care not to divide by zero. */ |
| 4552 | if (numBundPrb == 0) { |
| 4553 | break; |
| 4554 | } |
| 4555 | |
| 4556 | /* Work out bundles! */ |
| 4557 | /* TODO: assuming that these modifying SEs appear before SE 11, but not sure that this is guaranteed?! */ |
| 4558 | ext11_work_out_bundles(startPrbc, numPrbc, numBundPrb, &ext11_settings); |
| 4559 | num_bundles = ext11_settings.num_bundles; |
| 4560 | |
| 4561 | /* Add (complete) bundles */ |
| 4562 | for (unsigned b=0; b < num_bundles; b++) { |
| 4563 | offset = dissect_bfw_bundle(tvb, extension_tree, pinfo, offset, |
| 4564 | comp_meth_ti, bfwcomphdr_comp_meth, |
| 4565 | NULL((void*)0) /* no ModCompr */, |
| 4566 | (ext11_settings.ext21_set) ? |
| 4567 | numPrbc : |
| 4568 | pref_num_bf_antennas, |
| 4569 | bfwcomphdr_iq_width, |
| 4570 | b, /* bundle number */ |
| 4571 | &ext11_settings.bundles[b], |
| 4572 | symbol_count, |
| 4573 | (link_planes_together && data_section) ? &data_section->details[index_to_use] : NULL((void*)0), |
| 4574 | tap_info); |
| 4575 | if (!offset) { |
| 4576 | break; |
| 4577 | } |
| 4578 | } |
| 4579 | if (num_bundles > 0) { |
| 4580 | /* Set flag from last bundle entry */ |
| 4581 | orphaned_prbs = ext11_settings.bundles[num_bundles-1].is_orphan; |
| 4582 | } |
| 4583 | } |
| 4584 | else { |
| 4585 | /********************************************/ |
| 4586 | /* Table 7.7.11.1-2 */ |
| 4587 | /* No weights in this case */ |
| 4588 | /********************************************/ |
| 4589 | |
| 4590 | /* Work out number of bundles, but take care not to divide by zero. */ |
| 4591 | if (numBundPrb == 0) { |
| 4592 | break; |
| 4593 | } |
| 4594 | |
| 4595 | ext11_work_out_bundles(startPrbc, numPrbc, numBundPrb, &ext11_settings); |
| 4596 | num_bundles = ext11_settings.num_bundles; |
| 4597 | |
| 4598 | for (unsigned n=0; n < num_bundles; n++) { |
| 4599 | uint32_t first_prb = ext11_settings.bundles[n].start; |
| 4600 | uint32_t last_prb = ext11_settings.bundles[n].end; |
| 4601 | |
| 4602 | /* Still create a bundle subtree */ |
| 4603 | proto_item *bundle_ti = proto_tree_add_string_format(extension_tree, hf_oran_bfw_bundle, |
| 4604 | tvb, offset, 2, "", |
| 4605 | "Bundle: (PRBs %3u-%3u)", |
| 4606 | first_prb, last_prb); |
| 4607 | proto_tree *bundle_tree = proto_item_add_subtree(bundle_ti, ett_oran_bfw_bundle); |
| 4608 | |
| 4609 | /* contInd */ |
| 4610 | proto_tree_add_item(bundle_tree, hf_oran_cont_ind, |
| 4611 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4612 | /* beamId */ |
| 4613 | /* N.B., only added to tap_info if not 0 or ignored (after SEs seen) */ |
| 4614 | uint32_t beam_id; |
| 4615 | proto_item *beamid_ti = proto_tree_add_item_ret_uint(bundle_tree, hf_oran_beam_id, |
| 4616 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &beam_id); |
| 4617 | proto_item_append_text(bundle_ti, " (beamId:%u)", beam_id); |
| 4618 | |
| 4619 | |
| 4620 | if (!ext11_settings.bundles[n].is_orphan) { |
| 4621 | proto_item_append_text(beamid_ti, " (PRBs %3u-%3u) (Bundle %2u)", |
| 4622 | ext11_settings.bundles[n].start, |
| 4623 | ext11_settings.bundles[n].end, |
| 4624 | n); |
| 4625 | } |
| 4626 | else { |
| 4627 | orphaned_prbs = true1; |
| 4628 | proto_item_append_text(beamid_ti, " (PRBs %3u-%3u) (Orphaned PRBs)", |
| 4629 | ext11_settings.bundles[n].start, |
| 4630 | ext11_settings.bundles[n].end); |
| 4631 | proto_item_append_text(bundle_ti, " (Orphaned PRBs)"); |
| 4632 | } |
| 4633 | offset += 2; |
| 4634 | |
| 4635 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 4636 | if (data_section) { |
| 4637 | /* Set beamId only for range of PRBs */ |
| 4638 | for (unsigned prb = ext11_settings.bundles[n].start; prb <= ext11_settings.bundles[n].end && prb < ORAN_MAX_PRBS273; prb++) { |
| 4639 | section_details_set_beam_id(&data_section->details[index_to_use], prb, (uint16_t)beam_id); |
| 4640 | } |
| 4641 | } |
| 4642 | } |
| 4643 | |
| 4644 | /* Look for where BFWs were sent for this beamId */ |
| 4645 | bfw_definition *definition; |
| 4646 | |
| 4647 | wmem_tree_key_t key[3]; |
| 4648 | key[0].length = 1; |
| 4649 | key[0].key = &pinfo->num; |
| 4650 | key[1].length = 1; |
| 4651 | key[1].key = &beam_id; |
| 4652 | key[2].length = 0; |
| 4653 | key[2].key = NULL((void*)0); |
| 4654 | |
| 4655 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 4656 | /* Look up current result */ |
| 4657 | definition = wmem_tree_lookup32(dl_beam_ids_defined, beam_id); |
| 4658 | if (definition != NULL((void*)0)) { |
| 4659 | /* Add to results table for this frame */ |
| 4660 | wmem_tree_insert32_array(dl_beam_ids_results, key, definition); |
| 4661 | } |
| 4662 | } |
| 4663 | else { |
| 4664 | /* Look up from result table */ |
| 4665 | definition = wmem_tree_lookup32_array(dl_beam_ids_results, key); |
| 4666 | } |
| 4667 | |
| 4668 | /* Show link back to frame where/when beamId was defined. Allow linking to self */ |
| 4669 | if (definition && definition->frame_defined != 0) { |
| 4670 | proto_item *defined_ti = proto_tree_add_uint(bundle_tree, hf_oran_bfws_frame_defined, tvb, offset, 0, definition->frame_defined); |
| 4671 | proto_item_set_generated(defined_ti); |
| 4672 | proto_item *since_ti = proto_tree_add_uint(bundle_tree, hf_oran_bfws_symbols_since_defined, tvb, offset, 0, |
| 4673 | symbol_count - definition->symbol_when_defined); |
| 4674 | proto_item_set_generated(since_ti); |
| 4675 | } |
| 4676 | else { |
| 4677 | /* TODO: lookup needs to find beam if it was defined in this frame!! */ |
| 4678 | expert_add_info_format(NULL((void*)0), beamid_ti, &ei_oran_beamid_bfws_not_found, |
| 4679 | "ext11 for beamId %u and disableBFWs set, but can't find definition", beam_id); |
| 4680 | } |
| 4681 | } |
| 4682 | |
| 4683 | } |
| 4684 | |
| 4685 | /* Add summary to extension root */ |
| 4686 | if (orphaned_prbs) { |
| 4687 | proto_item_append_text(extension_ti, " (%u full bundles + orphaned)", num_bundles-1); |
| 4688 | } |
| 4689 | else { |
| 4690 | proto_item_append_text(extension_ti, " (%u bundles)", num_bundles); |
| 4691 | } |
| 4692 | } |
| 4693 | |
| 4694 | break; |
| 4695 | |
| 4696 | case 12: /* SE 12: Non-Contiguous PRB Allocation with Frequency Ranges */ |
| 4697 | { |
| 4698 | /* numSymbol not used in this case */ |
| 4699 | if (numsymbol_ti && !numsymbol_ignored) { |
| 4700 | proto_item_append_text(numsymbol_ti, " (ignored)"); |
| 4701 | numsymbol_ignored = true1; |
| 4702 | } |
| 4703 | |
| 4704 | /* rb must be zero if this SE is present */ |
| 4705 | if (rb != 0) { |
| 4706 | expert_add_info(NULL((void*)0), rb_ti, &ei_oran_se12_rb_set); |
| 4707 | } |
| 4708 | |
| 4709 | ext11_settings.ext12_set = true1; |
| 4710 | |
| 4711 | /* priority */ |
| 4712 | proto_tree_add_item(extension_tree, hf_oran_noncontig_priority, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4713 | |
| 4714 | /* symbolMask */ |
| 4715 | offset = dissect_symbolmask(tvb, extension_tree, offset, NULL((void*)0), NULL((void*)0)); |
| 4716 | |
| 4717 | /* There are now 'R' pairs of (offStartPrb, numPrb) values. Fill extlen bytes with values. If last one is not set, |
| 4718 | should be populated with 0s. */ |
| 4719 | uint32_t extlen_remaining_bytes = (extlen*4) - 4; |
| 4720 | uint8_t prb_index; |
| 4721 | |
| 4722 | /* This is for ST10/ST11. First pair starts after frames signalled there */ |
| 4723 | uint16_t st10_st11_offset = startPrbc + numPrbc; |
| 4724 | |
| 4725 | for (prb_index = 1; extlen_remaining_bytes > 0; prb_index++) |
| 4726 | { |
| 4727 | /* Create a subtree for each pair */ |
| 4728 | proto_item *pair_ti = proto_tree_add_string(extension_tree, hf_oran_frequency_range, |
| 4729 | tvb, offset, 2, ""); |
| 4730 | proto_tree *pair_tree = proto_item_add_subtree(pair_ti, ett_oran_frequency_range); |
| 4731 | |
| 4732 | /* offStartPrb */ |
| 4733 | uint32_t off_start_prb; |
| 4734 | proto_tree_add_item_ret_uint(pair_tree, hf_oran_off_start_prb, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &off_start_prb); |
| 4735 | offset++; |
| 4736 | |
| 4737 | /* numPrb */ |
| 4738 | uint32_t num_prb; |
| 4739 | proto_tree_add_item_ret_uint(pair_tree, hf_oran_num_prb, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_prb); |
| 4740 | offset++; |
| 4741 | |
| 4742 | extlen_remaining_bytes -= 2; |
| 4743 | |
| 4744 | /* Last pair may be 0,0 if not used. Check for this */ |
| 4745 | if ((extlen_remaining_bytes == 0) && (off_start_prb == 0) && (num_prb == 0)) { |
| 4746 | proto_item_append_text(pair_ti, " (not used)"); |
| 4747 | } |
| 4748 | /* Add summary to pair root item, and configure details in ext11_settings */ |
| 4749 | else { |
| 4750 | proto_item_append_text(pair_ti, "(%u) [%u : %u]", |
| 4751 | prb_index, off_start_prb, num_prb); |
| 4752 | proto_item_append_text(extension_ti, "[%u : %u]", |
| 4753 | off_start_prb, num_prb); |
| 4754 | if (ext11_settings.ext12_num_pairs < MAX_BFW_EXT12_PAIRS128) { |
| 4755 | ext11_settings.ext12_pairs[ext11_settings.ext12_num_pairs].off_start_prb = off_start_prb; |
| 4756 | ext11_settings.ext12_pairs[ext11_settings.ext12_num_pairs++].num_prb = num_prb; |
| 4757 | } |
| 4758 | |
| 4759 | /* Also update PRBs to be covered for ST10 type 5 */ |
| 4760 | /* Original range from section is added to.. */ |
| 4761 | /* TODO: I don't think this is quite right.. */ |
| 4762 | for (unsigned prb=st10_st11_offset+off_start_prb; prb < st10_st11_offset+off_start_prb+num_prb; prb++) { |
| 4763 | if (prb < MAX_PRBS273) { |
| 4764 | prbs_for_st10_type5[prb] = true1; |
| 4765 | } |
| 4766 | } |
| 4767 | |
| 4768 | /* Any next pair will begin after this one */ |
| 4769 | st10_st11_offset += (off_start_prb + num_prb); |
| 4770 | } |
| 4771 | } |
| 4772 | break; |
| 4773 | } |
| 4774 | |
| 4775 | case 13: /* SE 13: PRB Allocation with Frequency Hopping */ |
| 4776 | { |
| 4777 | /* Will update settings for ext11 */ |
| 4778 | ext11_settings.ext13_set = true1; |
| 4779 | |
| 4780 | uint32_t extlen_remaining_bytes = (extlen*4) - 2; |
| 4781 | uint8_t allocation_index; |
| 4782 | |
| 4783 | unsigned prev_next_symbol_id = 0, prev_next_start_prbc = 0; |
| 4784 | |
| 4785 | for (allocation_index = 1; extlen_remaining_bytes > 0; allocation_index++) |
| 4786 | { |
| 4787 | /* Subtree for allocation */ |
| 4788 | proto_item *allocation_ti = proto_tree_add_string(extension_tree, hf_oran_prb_allocation, |
| 4789 | tvb, offset, 2, ""); |
| 4790 | proto_tree *allocation_tree = proto_item_add_subtree(allocation_ti, ett_oran_prb_allocation); |
| 4791 | |
| 4792 | /* Reserved (2 bits) */ |
| 4793 | add_reserved_field(allocation_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 4794 | |
| 4795 | /* nextSymbolId (4 bits) */ |
| 4796 | uint32_t next_symbol_id; |
| 4797 | proto_tree_add_item_ret_uint(allocation_tree, hf_oran_nextSymbolId, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &next_symbol_id); |
| 4798 | |
| 4799 | /* nextStartPrbc (10 bits) */ |
| 4800 | uint32_t next_start_prbc; |
| 4801 | proto_tree_add_item_ret_uint(allocation_tree, hf_oran_nextStartPrbc, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &next_start_prbc); |
| 4802 | offset += 2; |
| 4803 | |
| 4804 | /* Add summary to allocation root item */ |
| 4805 | proto_item_append_text(allocation_ti, "(%u) nextSymbolId=%3u, nextStartPrbc=%u", |
| 4806 | allocation_index, next_symbol_id, next_start_prbc); |
| 4807 | |
| 4808 | /* Checking for duplicates (expected if e.g. had only 2 entries but extlen bytes still to fill */ |
| 4809 | if ((allocation_index > 1) && (next_symbol_id == prev_next_symbol_id) && (next_start_prbc == prev_next_start_prbc)) { |
| 4810 | proto_item_append_text(allocation_ti, " (repeated - to fill up extlen)"); |
| 4811 | } |
| 4812 | else { |
| 4813 | /* Add entry for configuring ext11. don't store out of range */ |
| 4814 | if (ext11_settings.ext13_num_start_prbs < MAX_BFW_EXT13_ALLOCATIONS128) { |
| 4815 | ext11_settings.ext13_start_prbs[ext11_settings.ext13_num_start_prbs++] = next_start_prbc; |
| 4816 | } |
| 4817 | } |
| 4818 | prev_next_symbol_id = next_symbol_id; |
| 4819 | prev_next_start_prbc = next_start_prbc; |
| 4820 | |
| 4821 | extlen_remaining_bytes -= 2; |
| 4822 | } |
| 4823 | break; |
| 4824 | } |
| 4825 | |
| 4826 | case 14: /* SE 14: Nulling-layer Info. for ueId-based beamforming */ |
| 4827 | /* Hidden filter for bf (DMRS BF) */ |
| 4828 | bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 4829 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 4830 | |
| 4831 | if (!seen_se10) { |
| 4832 | proto_tree_add_item(extension_tree, hf_oran_nullLayerInd, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4833 | offset += 1; |
| 4834 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 4835 | offset += 1; |
| 4836 | } |
| 4837 | else { |
| 4838 | /* Loop over numPortc++1 (from SE 10) nullLayerInd fields */ |
| 4839 | for (unsigned port=0; port < numPortc+1; port++) { |
| 4840 | proto_tree_add_item(extension_tree, hf_oran_nullLayerInd, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4841 | offset += 1; |
| 4842 | } |
| 4843 | } |
| 4844 | break; |
| 4845 | |
| 4846 | case 15: /* SE 15: Mixed-numerology Info. for ueId-based beamforming */ |
| 4847 | { |
| 4848 | /* frameStructure */ |
| 4849 | offset = dissect_frame_structure(extension_tree, tvb, offset, |
| 4850 | subframeId, slotId); |
| 4851 | /* freqOffset */ |
| 4852 | proto_tree_add_item(extension_tree, hf_oran_freqOffset, tvb, offset, 3, ENC_BIG_ENDIAN0x00000000); |
| 4853 | offset += 3; |
| 4854 | /* cpLength */ |
| 4855 | proto_item *cplength_ti = proto_tree_add_item(extension_tree, hf_oran_cpLength, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4856 | if (sectionType != 0 && sectionType != 3) { |
| 4857 | proto_item_append_text(cplength_ti, " (ignored - used only with ST0 and ST3)"); |
| 4858 | } |
| 4859 | offset += 2; |
| 4860 | break; |
| 4861 | } |
| 4862 | |
| 4863 | case 16: /* SE 16: Antenna mapping in UE channel information based UL beamforming */ |
| 4864 | { |
| 4865 | /* One entry for each UEId */ |
| 4866 | for (unsigned n=0; n < number_of_ueids; n++) { |
| 4867 | /* TODO: want to skip if ueId is 0x7fff and beamGroupType = 10b and 'non-scheduled-ueId-enabled'=TRUE */ |
| 4868 | /* antMask */ |
| 4869 | proto_item *ti = proto_tree_add_item(extension_tree, hf_oran_antMask, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000); |
| 4870 | proto_item_append_text(ti, " (RX eAxC #%u, UEId=%u)", n+1, ueids[n]); |
| 4871 | offset += 8; |
| 4872 | } |
| 4873 | break; |
| 4874 | } |
| 4875 | |
| 4876 | case 17: /* SE 17: Indication of user port group. Applies to ST5 + SE10 with group type 1 (beam matrix indication) */ |
| 4877 | { |
| 4878 | uint32_t extlen_remaining_bytes = (extlen*4) - 2; |
| 4879 | uint32_t end_bit = (offset+extlen_remaining_bytes) * 8; |
| 4880 | uint32_t ueid_index = 1; |
| 4881 | |
| 4882 | /* "the preceding Section Type and extension messages implicitly provide the number of scheduled users" */ |
| 4883 | for (uint32_t bit_offset=offset*8; (bit_offset < end_bit) && (ueid_index <= number_of_ueids); bit_offset+=4, ueid_index++) { |
| 4884 | /* numUeId (Number of UE Ids per user) */ |
| 4885 | proto_item *ti = proto_tree_add_bits_item(extension_tree, hf_oran_num_ueid, tvb, bit_offset, 4, ENC_BIG_ENDIAN0x00000000); |
| 4886 | /* TODO: show ueids[ueid_index] here too? */ |
| 4887 | proto_item_append_text(ti, " (user #%u)", ueid_index); |
| 4888 | } |
| 4889 | break; |
| 4890 | } |
| 4891 | |
| 4892 | case 18: /* SE 18: Uplink transmission management */ |
| 4893 | /* transmissionWindowOffset */ |
| 4894 | proto_tree_add_item(extension_tree, hf_oran_transmissionWindowOffset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4895 | offset += 2; |
| 4896 | /* reserved (2 bits) */ |
| 4897 | add_reserved_field(extension_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 4898 | /* transmissionWindowSize (14 bits) */ |
| 4899 | proto_tree_add_item(extension_tree, hf_oran_transmissionWindowSize, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4900 | offset += 2; |
| 4901 | |
| 4902 | /* reserved (6 bits) */ |
| 4903 | add_reserved_field(extension_tree, hf_oran_reserved_6bits, tvb, offset, 1); |
| 4904 | /* toT (2 bits) */ |
| 4905 | proto_tree_add_item(extension_tree, hf_oran_toT, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4906 | offset += 1; |
| 4907 | break; |
| 4908 | |
| 4909 | case 19: /* SE 19: Compact beamforming information for multiple port */ |
| 4910 | { |
| 4911 | /* beamId in section header should be ignored. Guard against appending multiple times.. */ |
| 4912 | if (section_beamId_ti && !section_beamId_ignored) { |
| 4913 | proto_item_append_text(section_beamId_ti, " (ignored)"); |
| 4914 | section_beamId_ignored = true1; |
| 4915 | } |
| 4916 | |
| 4917 | /* numSymbol not used in this case */ |
| 4918 | if (numsymbol_ti && !numsymbol_ignored) { |
| 4919 | proto_item_append_text(numsymbol_ti, " (ignored)"); |
| 4920 | numsymbol_ignored = true1; |
| 4921 | } |
| 4922 | |
| 4923 | /* disableBFWs */ |
| 4924 | bool_Bool disableBFWs; |
| 4925 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_disable_bfws, |
| 4926 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &disableBFWs); |
| 4927 | if (disableBFWs) { |
| 4928 | proto_item_append_text(extension_ti, " (disableBFWs)"); |
| 4929 | } |
| 4930 | /* repetition (1 bit) */ |
| 4931 | uint64_t repetition; |
| 4932 | proto_tree_add_bits_ret_val(extension_tree, hf_oran_se19_repetition, tvb, (offset*8)+1, 1, &repetition, ENC_BIG_ENDIAN0x00000000); |
| 4933 | /* numPortc (6 bits) */ |
| 4934 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_numPortc, |
| 4935 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &numPortc); |
| 4936 | offset++; |
| 4937 | |
| 4938 | /* priority (2 bits) */ |
| 4939 | proto_tree_add_item(extension_tree, hf_oran_noncontig_priority, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 4940 | /* symbolMask (14 bits) */ |
| 4941 | offset = dissect_symbolmask(tvb, extension_tree, offset, NULL((void*)0), NULL((void*)0)); |
| 4942 | |
| 4943 | uint32_t bfwcomphdr_iq_width, bfwcomphdr_comp_meth; |
| 4944 | proto_item *comp_meth_ti = NULL((void*)0); |
| 4945 | |
| 4946 | if (!repetition) { |
| 4947 | |
| 4948 | if (!disableBFWs) { |
| 4949 | /* bfwCompHdr */ |
| 4950 | offset = dissect_bfwCompHdr(tvb, extension_tree, offset, |
| 4951 | &bfwcomphdr_iq_width, &bfwcomphdr_comp_meth, &comp_meth_ti); |
| 4952 | } |
| 4953 | |
| 4954 | /* Add entries for each port */ |
| 4955 | for (unsigned port=0; port < numPortc; port++) { |
| 4956 | |
| 4957 | /* Create subtree for port entry*/ |
| 4958 | int port_start_offset = offset; |
| 4959 | proto_item *port_ti = proto_tree_add_string_format(extension_tree, hf_oran_ext19_port, |
| 4960 | tvb, offset, 0, |
| 4961 | "", "Port %u: ", port); |
| 4962 | proto_tree *port_tree = proto_item_add_subtree(port_ti, ett_oran_ext19_port); |
| 4963 | |
| 4964 | /* Reserved (4 bits) */ |
| 4965 | add_reserved_field(port_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 4966 | /* portReMask (12 bits) */ |
| 4967 | proto_tree_add_item(port_tree, hf_oran_portReMask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4968 | offset += 2; |
| 4969 | |
| 4970 | /* Reserved (2 bits) */ |
| 4971 | add_reserved_field(port_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 4972 | /* portSymbolMask (14 bits) */ |
| 4973 | proto_tree_add_item(port_tree, hf_oran_portSymbolMask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 4974 | offset += 2; |
| 4975 | |
| 4976 | /* Reserved (1 bit) */ |
| 4977 | add_reserved_field(port_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 4978 | /* beamID (15 bits) */ |
| 4979 | uint16_t beamId; |
| 4980 | proto_tree_add_item_ret_uint16(port_tree, hf_oran_beamId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &beamId); |
| 4981 | proto_item_append_text(port_ti, " (beamId=%u)", beamId); |
| 4982 | offset += 2; |
| 4983 | |
| 4984 | /* No weights present */ |
| 4985 | if (!disableBFWs) { |
| 4986 | /*******************************************************************/ |
| 4987 | /* Table 7.7.19.1-1 (there is no part -2 for disableBFWs case...), */ |
| 4988 | /* but for SE 11, bfwCompParam was only present for !disableBFWs */ |
| 4989 | /*******************************************************************/ |
| 4990 | |
| 4991 | /* bfwCompParam */ |
| 4992 | bool_Bool compression_method_supported = false0; |
| 4993 | uint32_t exponent = 0; |
| 4994 | unsigned num_trx_entries = 0; |
| 4995 | uint16_t *trx; |
| 4996 | offset = dissect_bfwCompParam(tvb, port_tree, pinfo, offset, comp_meth_ti, |
| 4997 | &bfwcomphdr_comp_meth, &exponent, &compression_method_supported, |
| 4998 | &num_trx_entries, &trx); |
| 4999 | |
| 5000 | int bit_offset = offset*8; |
| 5001 | int bfw_offset; |
| 5002 | |
| 5003 | /* Add weights for each TRX */ |
| 5004 | unsigned trx_to_add = (num_trx_entries==0) ? pref_num_bf_antennas : num_trx_entries; |
| 5005 | for (unsigned b=0; b < trx_to_add; b++) { |
| 5006 | |
| 5007 | uint16_t trx_index = (num_trx_entries) ? trx[b] : b+1; |
| 5008 | |
| 5009 | /* Create BFW subtree */ |
| 5010 | bfw_offset = bit_offset / 8; |
| 5011 | uint8_t bfw_extent = ((bit_offset + (bfwcomphdr_iq_width*2)) / 8) - bfw_offset; |
| 5012 | proto_item *bfw_ti = proto_tree_add_string_format(port_tree, hf_oran_bfw, |
| 5013 | tvb, bfw_offset, bfw_extent, |
| 5014 | "", "TRX %u: (", trx_index); |
| 5015 | proto_tree *bfw_tree = proto_item_add_subtree(bfw_ti, ett_oran_bfw); |
| 5016 | |
| 5017 | /* I */ |
| 5018 | uint32_t bits = tvb_get_bits32(tvb, bit_offset, bfwcomphdr_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 5019 | float value = decompress_value(bits, bfwcomphdr_comp_meth, bfwcomphdr_iq_width, exponent, NULL((void*)0) /* no ModCompr */, 0 /* RE */); |
| 5020 | /* Add to tree. */ |
| 5021 | proto_tree_add_float_format_value(bfw_tree, hf_oran_bfw_i, tvb, bit_offset/8, |
| 5022 | (bfwcomphdr_iq_width+7)/8, value, "#%u=%f", b, value); |
| 5023 | bit_offset += bfwcomphdr_iq_width; |
| 5024 | proto_item_append_text(bfw_ti, "I%u=%f ", b, value); |
| 5025 | |
| 5026 | /* Q */ |
| 5027 | bits = tvb_get_bits32(tvb, bit_offset, bfwcomphdr_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 5028 | value = decompress_value(bits, bfwcomphdr_comp_meth, bfwcomphdr_iq_width, exponent, NULL((void*)0) /* no ModCompr */, 0 /* RE */); |
| 5029 | /* Add to tree. */ |
| 5030 | proto_tree_add_float_format_value(bfw_tree, hf_oran_bfw_q, tvb, bit_offset/8, |
| 5031 | (bfwcomphdr_iq_width+7)/8, value, "#%u=%f", b, value); |
| 5032 | bit_offset += bfwcomphdr_iq_width; |
| 5033 | proto_item_append_text(bfw_ti, "Q%u=%f)", b, value); |
| 5034 | } |
| 5035 | |
| 5036 | offset = (bit_offset+7)/8; |
| 5037 | } |
| 5038 | else { |
| 5039 | /* No weights... */ |
| 5040 | } |
| 5041 | |
| 5042 | /* Set length of this port entry */ |
| 5043 | proto_item_set_len(port_ti, offset-port_start_offset); |
| 5044 | } |
| 5045 | } |
| 5046 | break; |
| 5047 | } |
| 5048 | |
| 5049 | case 20: /* SE 20: Puncturing extension */ |
| 5050 | { |
| 5051 | /* numPuncPatterns */ |
| 5052 | uint32_t numPuncPatterns; |
| 5053 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_numPuncPatterns, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &numPuncPatterns); |
| 5054 | offset += 1; |
| 5055 | |
| 5056 | /* Add each puncturing pattern */ |
| 5057 | for (uint32_t n=0; n < numPuncPatterns; n++) { |
| 5058 | unsigned pattern_start_offset = offset; |
| 5059 | |
| 5060 | /* Subtree for this puncturing pattern */ |
| 5061 | proto_item *pattern_ti = proto_tree_add_string_format(extension_tree, hf_oran_puncPattern, |
| 5062 | tvb, offset, 0, |
| 5063 | "", "Puncturing Pattern: %u/%u", n+1, numPuncPatterns); |
| 5064 | proto_tree *pattern_tree = proto_item_add_subtree(pattern_ti, ett_oran_punc_pattern); |
| 5065 | |
| 5066 | /* SymbolMask (14 bits) */ |
| 5067 | proto_tree_add_item(pattern_tree, hf_oran_symbolMask_ext20, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5068 | offset += 1; |
| 5069 | |
| 5070 | uint32_t startPuncPrb, numPuncPrb; |
| 5071 | |
| 5072 | /* startPuncPrb (10 bits) */ |
| 5073 | proto_tree_add_item_ret_uint(pattern_tree, hf_oran_startPuncPrb, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &startPuncPrb); |
| 5074 | offset += 2; |
| 5075 | /* numPuncPrb (8 bits) */ |
| 5076 | proto_tree_add_item_ret_uint(pattern_tree, hf_oran_numPuncPrb, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &numPuncPrb); |
| 5077 | offset += 1; |
| 5078 | |
| 5079 | proto_item_append_text(pattern_ti, " [%u->%u]", startPuncPrb, startPuncPrb+numPuncPrb-1); |
| 5080 | |
| 5081 | /* Make a hole in range of PRBs to report */ |
| 5082 | for (unsigned p=startPuncPrb; p < startPuncPrb+numPuncPrb; p++) { |
| 5083 | if (p < MAX_PRBS273) { |
| 5084 | prbs_for_st10_type5[p] = false0; |
| 5085 | } |
| 5086 | } |
| 5087 | |
| 5088 | /* puncReMask (12 bits) */ |
| 5089 | proto_tree_add_item(pattern_tree, hf_oran_puncReMask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5090 | offset += 1; |
| 5091 | /* rb (1 bit) */ |
| 5092 | proto_item *se20_rb_ti = proto_tree_add_item(pattern_tree, hf_oran_rb, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5093 | /* reserved (1 bit) */ |
| 5094 | add_reserved_field(pattern_tree, hf_oran_reserved_bit5, tvb, offset, 1); |
| 5095 | /* multiSDScope (1 bit) */ |
| 5096 | proto_tree_add_item(pattern_tree, hf_oran_multiSDScope, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5097 | /* rbgIncl (1 bit) */ |
| 5098 | bool_Bool rbgIncl; |
| 5099 | proto_tree_add_item_ret_boolean(pattern_tree, hf_oran_RbgIncl, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &rbgIncl); |
| 5100 | offset += 1; |
| 5101 | |
| 5102 | if (rbgIncl) { |
| 5103 | /* reserved (1 bit) */ |
| 5104 | add_reserved_field(pattern_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5105 | /* rbgSize(3 bits) */ |
| 5106 | proto_tree_add_item(pattern_tree, hf_oran_rbgSize, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5107 | /* rbgMask (28 bits) */ |
| 5108 | proto_item *rbgmask_ti; |
| 5109 | uint32_t rbgMask; |
| 5110 | offset = dissect_rbg_mask(pattern_tree, tvb, offset, &rbgMask, &rbgmask_ti); |
| 5111 | |
| 5112 | proto_item_append_text(se20_rb_ti, " (ignored)"); |
| 5113 | } |
| 5114 | |
| 5115 | proto_item_set_len(pattern_ti, offset-pattern_start_offset); |
| 5116 | } |
| 5117 | |
| 5118 | break; |
| 5119 | } |
| 5120 | case 21: /* SE 21: Variable PRB group size for channel information */ |
| 5121 | { |
| 5122 | /* ciPrbGroupSize */ |
| 5123 | uint32_t ci_prb_group_size; |
| 5124 | proto_item *prb_group_size_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_ci_prb_group_size, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &ci_prb_group_size); |
| 5125 | offset += 1; |
| 5126 | |
| 5127 | switch (ci_prb_group_size) { |
| 5128 | case 0: |
| 5129 | case 1: |
| 5130 | case 255: |
| 5131 | /* Reserved value */ |
| 5132 | expert_add_info_format(pinfo, prb_group_size_ti, &ei_oran_ci_prb_group_size_reserved, |
| 5133 | "SE 11 ciPrbGroupSize is reserved value %u - must be 2-254", |
| 5134 | ci_prb_group_size); |
| 5135 | break; |
| 5136 | default: |
| 5137 | /* This value affects how SE 11 is interpreted */ |
| 5138 | ext11_settings.ext21_set = true1; |
| 5139 | ext11_settings.ext21_ci_prb_group_size = ci_prb_group_size; |
| 5140 | |
| 5141 | if (numPrbc == 0) { |
| 5142 | expert_add_info(pinfo, numprbc_ti, &ei_oran_numprbc_ext21_zero); |
| 5143 | } |
| 5144 | break; |
| 5145 | } |
| 5146 | |
| 5147 | /* reserved (6 bits) */ |
| 5148 | add_reserved_field(extension_tree, hf_oran_reserved_6bits, tvb, offset, 1); |
| 5149 | |
| 5150 | /* prgSize (2 bits). Interpretation depends upon section type (5 or 6), but also mplane parameters? */ |
| 5151 | if (sectionType == SEC_C_UE_SCHED) { /* Section Type 5 */ |
| 5152 | proto_tree_add_item(extension_tree, hf_oran_prg_size_st5, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5153 | } |
| 5154 | else if (sectionType == SEC_C_CH_INFO) { /* Section Type 6 */ |
| 5155 | proto_tree_add_item(extension_tree, hf_oran_prg_size_st6, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5156 | } |
| 5157 | offset += 1; |
| 5158 | break; |
| 5159 | } |
| 5160 | |
| 5161 | case 22: /* SE 22: ACK/NACK request */ |
| 5162 | { |
| 5163 | uint32_t ack_nack_req_id; |
| 5164 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_ack_nack_req_id, tvb, offset, 2, |
| 5165 | ENC_BIG_ENDIAN0x00000000, &ack_nack_req_id); |
| 5166 | offset += 2; |
| 5167 | |
| 5168 | if (state) { |
| 5169 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 5170 | /* Add this request into conversation state on first pass */ |
| 5171 | ack_nack_request_t *request_details = wmem_new0(wmem_file_scope(), ack_nack_request_t)((ack_nack_request_t*)wmem_alloc0((wmem_file_scope()), sizeof (ack_nack_request_t))); |
| 5172 | request_details->request_frame_number = pinfo->num; |
| 5173 | request_details->request_frame_time = pinfo->abs_ts; |
| 5174 | request_details->requestType = SE22; |
| 5175 | /* Insert into flow's tree */ |
| 5176 | wmem_tree_insert32(state->ack_nack_requests, ack_nack_req_id, request_details); |
| 5177 | } |
| 5178 | else { |
| 5179 | /* Try to link forward to ST8 response */ |
| 5180 | ack_nack_request_t *response = wmem_tree_lookup32(state->ack_nack_requests, |
| 5181 | ack_nack_req_id); |
| 5182 | if (response) { |
| 5183 | show_link_to_acknack_response(extension_tree, tvb, pinfo, response); |
| 5184 | } |
| 5185 | } |
| 5186 | } |
| 5187 | break; |
| 5188 | } |
| 5189 | |
| 5190 | case 23: /* SE 23: Arbitrary symbol pattern modulation compression parameters */ |
| 5191 | { |
| 5192 | /* Green common header */ |
| 5193 | |
| 5194 | /* numSymPrbPattern (4 bits) */ |
| 5195 | uint32_t num_sym_prb_pattern; |
| 5196 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_num_sym_prb_pattern, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_sym_prb_pattern); |
| 5197 | /* reserved (3 bits) */ |
| 5198 | add_reserved_field(extension_tree, hf_oran_reserved_bits456, tvb, offset, 1); |
| 5199 | /* prbMode (1 bit) */ |
| 5200 | bool_Bool prb_mode; |
| 5201 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_prb_mode, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &prb_mode); |
| 5202 | offset += 1; |
| 5203 | |
| 5204 | /* reserved (8 bits) */ |
| 5205 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5206 | offset += 1; |
| 5207 | |
| 5208 | /* Dissect each SymPrbPattern */ |
| 5209 | for (uint32_t n=0; n < num_sym_prb_pattern; n++) { |
| 5210 | |
| 5211 | /* Subtree */ |
| 5212 | proto_item *pattern_ti = proto_tree_add_string_format(extension_tree, hf_oran_sym_prb_pattern, |
| 5213 | tvb, offset, 1, "", |
| 5214 | prb_mode ? "PRB-BLOCK" : "PRB-MASK"); |
| 5215 | proto_tree *pattern_tree = proto_item_add_subtree(pattern_ti, ett_oran_sym_prb_pattern); |
| 5216 | |
| 5217 | |
| 5218 | /* Orange part */ |
| 5219 | |
| 5220 | /* Reserved (2 bits) */ |
| 5221 | add_reserved_field(pattern_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 5222 | /* symMask (14 bits) */ |
| 5223 | proto_tree_add_item(pattern_tree, hf_oran_sym_mask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5224 | offset += 2; |
| 5225 | /* numMcScaleOffset (4 bits) */ |
| 5226 | uint32_t numMcScaleOffset; |
| 5227 | proto_tree_add_item_ret_uint(pattern_tree, hf_oran_num_mc_scale_offset, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &numMcScaleOffset); |
| 5228 | |
| 5229 | if (!prb_mode) { /* PRB-MASK */ |
| 5230 | /* prbPattern (4 bits) */ |
| 5231 | proto_tree_add_item(pattern_tree, hf_oran_prb_pattern, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5232 | offset += 1; |
| 5233 | /* reserved (8 bits) */ |
| 5234 | add_reserved_field(pattern_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5235 | offset += 1; |
| 5236 | /* reserved (4 bits) */ |
| 5237 | add_reserved_field(pattern_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 5238 | } |
| 5239 | else { /* PRB-BLOCK */ |
| 5240 | /* prbBlkOffset (8 bits) */ |
| 5241 | proto_tree_add_item(pattern_tree, hf_oran_prb_blk_offset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5242 | offset += 1; |
| 5243 | /* prbBlkSize (8 bits) */ |
| 5244 | proto_tree_add_item(pattern_tree, hf_oran_prb_blk_size, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5245 | offset += 1; |
| 5246 | } |
| 5247 | |
| 5248 | for (unsigned c=0; c < numMcScaleOffset; c++) { |
| 5249 | if (c > 0) { |
| 5250 | /* reserved (4 bits) */ |
| 5251 | add_reserved_field(pattern_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 5252 | } |
| 5253 | |
| 5254 | static int * const remask_flags_even[] = { |
| 5255 | &hf_oran_mc_scale_re_mask_re1_even, |
| 5256 | &hf_oran_mc_scale_re_mask_re2_even, |
| 5257 | &hf_oran_mc_scale_re_mask_re3_even, |
| 5258 | &hf_oran_mc_scale_re_mask_re4_even, |
| 5259 | &hf_oran_mc_scale_re_mask_re5_even, |
| 5260 | &hf_oran_mc_scale_re_mask_re6_even, |
| 5261 | &hf_oran_mc_scale_re_mask_re7_even, |
| 5262 | &hf_oran_mc_scale_re_mask_re8_even, |
| 5263 | &hf_oran_mc_scale_re_mask_re9_even, |
| 5264 | &hf_oran_mc_scale_re_mask_re10_even, |
| 5265 | &hf_oran_mc_scale_re_mask_re11_even, |
| 5266 | &hf_oran_mc_scale_re_mask_re12_even, |
| 5267 | NULL((void*)0) |
| 5268 | }; |
| 5269 | |
| 5270 | /* mcScaleReMask (12 bits). Defines which REs the following csf and mcScaleOffset apply to */ |
| 5271 | uint64_t mcScaleReMask, mcScaleOffset; |
| 5272 | proto_tree_add_bitmask_ret_uint64(pattern_tree, tvb, offset, |
| 5273 | hf_oran_mc_scale_re_mask_even, |
| 5274 | ett_oran_mc_scale_remask, |
| 5275 | remask_flags_even, ENC_BIG_ENDIAN0x00000000, &mcScaleReMask); |
| 5276 | offset += 2; |
| 5277 | |
| 5278 | /* csf (1 bit) */ |
| 5279 | bool_Bool csf; |
| 5280 | dissect_csf(pattern_tree, tvb, offset*8, ci_iq_width, &csf); |
| 5281 | /* mcScaleOffset (15 bits) */ |
| 5282 | proto_item *ti = proto_tree_add_bits_ret_val(pattern_tree, hf_oran_mc_scale_offset, tvb, offset*8 + 1, 15, &mcScaleOffset, ENC_BIG_ENDIAN0x00000000); |
| 5283 | uint16_t exponent = (mcScaleOffset >> 11) & 0x000f; /* m.s. 4 bits */ |
| 5284 | uint16_t mantissa = mcScaleOffset & 0x07ff; /* l.s. 11 bits */ |
| 5285 | float mcScaleOffset_value = ((float)mantissa/(1<<11)) * ((float)1.0 / (1 << exponent)); |
| 5286 | proto_item_append_text(ti, " (%f)", mcScaleOffset_value); |
| 5287 | |
| 5288 | offset += 2; |
| 5289 | |
| 5290 | /* Record this config. */ |
| 5291 | /* TODO: at some point, will also want to store/use PRB + symbol filters */ |
| 5292 | section_mod_compr_config_t* sect_config = get_mod_compr_section_to_write(pinfo, state, sectionId); |
| 5293 | |
| 5294 | if (sect_config && sect_config->num_configs < MAX_MOD_COMPR_CONFIGS12) { |
| 5295 | unsigned i = sect_config->num_configs; |
| 5296 | sect_config->configs[i].mod_compr_re_mask = (uint16_t)mcScaleReMask; |
| 5297 | sect_config->configs[i].mod_compr_csf = csf; |
| 5298 | sect_config->configs[i].mod_compr_scaler = mcScaleOffset_value; |
| 5299 | sect_config->num_configs++; |
| 5300 | } |
| 5301 | } |
| 5302 | |
| 5303 | proto_item_set_end(pattern_ti, tvb, offset); |
| 5304 | } |
| 5305 | break; |
| 5306 | } |
| 5307 | |
| 5308 | case 24: /* SE 24: PUSCH DMRS configuration */ |
| 5309 | { |
| 5310 | /* Hidden filter for bf (DMRS BF) */ |
| 5311 | bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 5312 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 5313 | |
| 5314 | /* alpnPerSym (1 bit) */ |
| 5315 | proto_tree_add_item(extension_tree, hf_oran_alpn_per_sym, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5316 | /* antDmrsSnr (1 bit) */ |
| 5317 | proto_tree_add_item(extension_tree, hf_oran_ant_dmrs_snr, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5318 | /* reserved (1 bit) */ |
| 5319 | add_reserved_field(extension_tree, hf_oran_reserved_bit2, tvb, offset, 1); |
| 5320 | /* userGroupSize (5 bits) */ |
| 5321 | uint32_t user_group_size; |
| 5322 | proto_item *ugs_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_user_group_size, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &user_group_size); |
| 5323 | if (user_group_size == 0) { |
| 5324 | proto_item_append_text(ugs_ti, " (not used)"); |
| 5325 | } |
| 5326 | else if (user_group_size > 12) { |
| 5327 | proto_item_append_text(ugs_ti, " (reserved)"); |
| 5328 | } |
| 5329 | offset += 1; |
| 5330 | /* userGroupId (8 bits)*/ |
| 5331 | uint32_t user_group_id; |
| 5332 | proto_item *ugi_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_user_group_id, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &user_group_id); |
| 5333 | if (user_group_id == 0) { |
| 5334 | /* TODO: Value 0 can happen in several cases, described in 7.7.24.7.. */ |
| 5335 | } |
| 5336 | if (user_group_id == 255) { |
| 5337 | /* Value 255 is reserved */ |
| 5338 | expert_add_info(pinfo, ugi_ti, &ei_oran_user_group_id_reserved_value); |
| 5339 | } |
| 5340 | offset += 1; |
| 5341 | |
| 5342 | bool_Bool seen_value_to_inherit = false0; |
| 5343 | bool_Bool inherited_config_has_transform_precoding = false0; |
| 5344 | int dmrs_configs_seen = 0; |
| 5345 | |
| 5346 | /* Dissect each entry until reach number of configured ueIds (or run out of extlen bytes..) */ |
| 5347 | uint32_t ueid_index = 0; |
| 5348 | while ((offset < (extension_start_offset + extlen*4)) && (ueid_index < number_of_ueids)) { |
| 5349 | dmrs_configs_seen++; |
| 5350 | |
| 5351 | /* Subtree */ |
| 5352 | proto_item *entry_ti = proto_tree_add_string_format(extension_tree, hf_oran_dmrs_entry, |
| 5353 | tvb, offset, 0, "", |
| 5354 | "Entry"); |
| 5355 | proto_tree *entry_tree = proto_item_add_subtree(entry_ti, ett_oran_dmrs_entry); |
| 5356 | |
| 5357 | /* entryType (3 bits) */ |
| 5358 | uint32_t entry_type; |
| 5359 | proto_item *entry_type_ti; |
| 5360 | entry_type_ti = proto_tree_add_item_ret_uint(entry_tree, hf_oran_entry_type, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &entry_type); |
| 5361 | if (entry_type > 3) { |
| 5362 | proto_item_append_text(entry_type_ti, " (reserved)"); |
| 5363 | } |
| 5364 | |
| 5365 | /* dmrsPortNumber (5 bits). Values 0-11 allowed */ |
| 5366 | unsigned int dmrs_port_number; |
| 5367 | proto_item *dpn_ti = proto_tree_add_item_ret_uint(entry_tree, hf_oran_dmrs_port_number, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &dmrs_port_number); |
| 5368 | if (dmrs_port_number > 11) { |
| 5369 | proto_item_append_text(dpn_ti, " (12-31 are reserved)"); |
| 5370 | } |
| 5371 | offset += 1; |
| 5372 | |
| 5373 | /* What follows depends upon entryType */ |
| 5374 | switch (entry_type) { |
| 5375 | case 0: /* dmrsPortNumber config same as previous, ueId ueIdReset=0 */ |
| 5376 | case 1: /* dmrsPortNumber config same as previous, ueId ueIdReset=1 */ |
| 5377 | /* No further fields for these */ |
| 5378 | /* Error here if no previous values to inherit!! */ |
| 5379 | if (!seen_value_to_inherit) { |
| 5380 | expert_add_info_format(pinfo, entry_type_ti, &ei_oran_se24_nothing_to_inherit, |
| 5381 | "SE24: have seen entry type %u, but no previous config (type 2 or 3) to inherit config from", entry_type); |
| 5382 | |
| 5383 | } |
| 5384 | /* TODO: would be useful to repeat whole inherited config here? */ |
| 5385 | break; |
| 5386 | |
| 5387 | case 2: /* transform precoding disabled */ |
| 5388 | case 3: /* transform precoding enabled */ |
| 5389 | { |
| 5390 | /* Type 2/3 are very similar.. */ |
| 5391 | |
| 5392 | /* ueIdReset (1 bit) */ |
| 5393 | proto_tree_add_item(entry_tree, hf_oran_ueid_reset, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5394 | /* posMeas (1 bit) */ |
| 5395 | proto_tree_add_item(entry_tree, hf_oran_pos_meas, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5396 | |
| 5397 | /* dmrsSymbolMask (14 bits) */ |
| 5398 | static int * const dmrs_symbol_mask_flags[] = { |
| 5399 | &hf_oran_dmrs_symbol_mask_s13, |
| 5400 | &hf_oran_dmrs_symbol_mask_s12, |
| 5401 | &hf_oran_dmrs_symbol_mask_s11, |
| 5402 | &hf_oran_dmrs_symbol_mask_s10, |
| 5403 | &hf_oran_dmrs_symbol_mask_s9, |
| 5404 | &hf_oran_dmrs_symbol_mask_s8, |
| 5405 | &hf_oran_dmrs_symbol_mask_s7, |
| 5406 | &hf_oran_dmrs_symbol_mask_s6, |
| 5407 | &hf_oran_dmrs_symbol_mask_s5, |
| 5408 | &hf_oran_dmrs_symbol_mask_s4, |
| 5409 | &hf_oran_dmrs_symbol_mask_s3, |
| 5410 | &hf_oran_dmrs_symbol_mask_s2, |
| 5411 | &hf_oran_dmrs_symbol_mask_s1, |
| 5412 | &hf_oran_dmrs_symbol_mask_s0, |
| 5413 | NULL((void*)0) |
| 5414 | }; |
| 5415 | proto_tree_add_bitmask(entry_tree, tvb, offset, |
| 5416 | hf_oran_dmrs_symbol_mask, ett_oran_dmrs_symbol_mask, dmrs_symbol_mask_flags, ENC_BIG_ENDIAN0x00000000); |
| 5417 | offset += 2; |
| 5418 | |
| 5419 | /* scrambling */ |
| 5420 | proto_tree_add_item(entry_tree, hf_oran_scrambling, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5421 | offset += 2; |
| 5422 | |
| 5423 | /* nscid (1 bit) */ |
| 5424 | proto_tree_add_item(entry_tree, hf_oran_nscid, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5425 | |
| 5426 | /* These 5 bits differ depending upon entry type */ |
| 5427 | if (entry_type == 2) { /* type 2 */ |
| 5428 | /* dType (1 bit) */ |
| 5429 | proto_tree_add_item(entry_tree, hf_oran_dtype, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5430 | /* cdmWithoutData (2 bits) */ |
| 5431 | proto_tree_add_item(entry_tree, hf_oran_cmd_without_data, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5432 | /* lambda (2 bits) */ |
| 5433 | proto_tree_add_item(entry_tree, hf_oran_lambda, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5434 | } |
| 5435 | else { /* type 3 */ |
| 5436 | /* reserved (1 bit) */ |
| 5437 | add_reserved_field(entry_tree, hf_oran_reserved_bit1, tvb, offset, 1); |
| 5438 | /* lowPaprType (2 bits) */ |
| 5439 | proto_tree_add_item(entry_tree, hf_oran_low_papr_type, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5440 | /* hoppingMode (2 bits) */ |
| 5441 | proto_tree_add_item(entry_tree, hf_oran_hopping_mode, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5442 | } |
| 5443 | |
| 5444 | /* firstPrb (9 bits) */ |
| 5445 | proto_tree_add_item(entry_tree, hf_oran_first_prb, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5446 | offset += 1; |
| 5447 | /* lastPrb (9 bits) */ |
| 5448 | proto_tree_add_item(entry_tree, hf_oran_last_prb, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5449 | offset += 2; |
| 5450 | /* Reserved (16 bits) */ |
| 5451 | add_reserved_field(entry_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 5452 | offset += 2; |
| 5453 | |
| 5454 | /* Could now see entry types 0 or 1 - they have these values to inherit */ |
| 5455 | seen_value_to_inherit = true1; |
| 5456 | inherited_config_has_transform_precoding = (entry_type == 3); |
| 5457 | break; |
| 5458 | } |
| 5459 | |
| 5460 | default: |
| 5461 | /* reserved - expert info */ |
| 5462 | break; |
| 5463 | } |
| 5464 | |
| 5465 | proto_item_append_text(entry_ti, " [UEId=%u] (dmrsPortNumber=%2u) (type %u - %s) ", |
| 5466 | ueids[ueid_index++], dmrs_port_number, entry_type, val_to_str_const(entry_type, entry_type_vals, "Unknown")); |
| 5467 | proto_item_set_end(entry_ti, tvb, offset); |
| 5468 | |
| 5469 | if (entry_type <= 1) { |
| 5470 | proto_item_append_text(entry_ti, " [transform-precoding %s]", |
| 5471 | inherited_config_has_transform_precoding ? "enabled" : "disabled"); |
| 5472 | } |
| 5473 | } |
| 5474 | |
| 5475 | proto_item_append_text(extension_ti, " (%d DMRS configs seen)", dmrs_configs_seen); |
| 5476 | break; |
| 5477 | } |
| 5478 | |
| 5479 | case 25: /* SE 25: Symbol reordering for DMRS-BF */ |
| 5480 | /* Just dissect each available block of 7 bytes as the 14 symbols for a layer, |
| 5481 | where each layer could be one or apply to all layers. */ |
| 5482 | { |
| 5483 | /* TODO: should only appear in one section of a message - check? */ |
| 5484 | unsigned layer = 0; |
| 5485 | proto_item *layer_ti; |
| 5486 | while (offset+7 <= (extension_start_offset + extlen*4)) { |
| 5487 | /* Layer subtree */ |
| 5488 | layer_ti = proto_tree_add_string_format(extension_tree, hf_oran_symbol_reordering_layer, |
| 5489 | tvb, offset, 7, "", |
| 5490 | "Layer"); |
| 5491 | proto_tree *layer_tree = proto_item_add_subtree(layer_ti, ett_oran_symbol_reordering_layer); |
| 5492 | |
| 5493 | /* All 14 symbols for a layer (or all layers) */ |
| 5494 | for (unsigned s=0; s < 14; s++) { |
| 5495 | proto_item *sym_ti; |
| 5496 | /* txWinForOnAirSymbol */ |
| 5497 | unsigned int tx_win_for_on_air_symbol; |
| 5498 | sym_ti = proto_tree_add_item_ret_uint(layer_tree, |
| 5499 | (s % 2) ? hf_oran_tx_win_for_on_air_symbol_r : hf_oran_tx_win_for_on_air_symbol_l, |
| 5500 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &tx_win_for_on_air_symbol); |
| 5501 | if (tx_win_for_on_air_symbol == 0x0F) { |
| 5502 | /* Ordering not affected */ |
| 5503 | proto_item_append_text(sym_ti, " (sym %u - no info)", s); |
| 5504 | } |
| 5505 | else { |
| 5506 | proto_item_append_text(sym_ti, " (sym %u)", s); |
| 5507 | } |
| 5508 | if (s % 2) { |
| 5509 | offset += 1; |
| 5510 | } |
| 5511 | } |
| 5512 | |
| 5513 | proto_item_append_text(layer_ti, " (layer %u)", ++layer); |
| 5514 | proto_item_append_text(extension_ti, " (layer %u)", layer); |
| 5515 | } |
| 5516 | /* Set layer subtree label */ |
| 5517 | if (layer == 1) { |
| 5518 | proto_item_append_text(layer_ti, " (all)"); |
| 5519 | proto_item_append_text(extension_ti, " (all)"); |
| 5520 | } |
| 5521 | if (layer == 0) { |
| 5522 | /* TODO: are no layers valid? What does it mean? */ |
| 5523 | proto_item_append_text(extension_ti, " (none)"); |
| 5524 | } |
| 5525 | break; |
| 5526 | } |
| 5527 | |
| 5528 | case 26: /* SE 26: Frequency offset feedback */ |
| 5529 | /* Reserved (8 bits) */ |
| 5530 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5531 | offset += 1; |
| 5532 | /* Reserved (1 bit) */ |
| 5533 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5534 | /* numFoFb (7 bits) */ |
| 5535 | unsigned num_fo_fb; |
| 5536 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_num_fo_fb, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_fo_fb); |
| 5537 | offset += 1; |
| 5538 | |
| 5539 | /* Add each freqOffsetFb value */ |
| 5540 | for (unsigned n=0; n < num_fo_fb; n++) { |
| 5541 | unsigned freq_offset_fb; |
| 5542 | /* freqOffsetFb (16 bits) */ |
| 5543 | proto_item *offset_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_freq_offset_fb, |
| 5544 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &freq_offset_fb); |
| 5545 | /* Show if maps onto a -ve number */ |
| 5546 | if ((freq_offset_fb >= 0x8ad0) && (freq_offset_fb <= 0xffff)) { |
| 5547 | proto_item_append_text(offset_ti, "(value %d)", -1 - (0xffff-freq_offset_fb)); |
| 5548 | } |
| 5549 | proto_item_append_text(offset_ti, " [#%u]", n+1); |
| 5550 | offset += 2; |
| 5551 | } |
| 5552 | break; |
| 5553 | |
| 5554 | case 27: /* SE 27: O-DU controlled dimensionality reduction */ |
| 5555 | { |
| 5556 | /* Hidden filter for bf (DMRS BF) */ |
| 5557 | bf_ti = proto_tree_add_item(tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 5558 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 5559 | |
| 5560 | /* beamType (2 bits) */ |
| 5561 | unsigned beam_type; |
| 5562 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_beam_type, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &beam_type); |
| 5563 | /* reserved (6 bits) */ |
| 5564 | add_reserved_field(extension_tree, hf_oran_reserved_last_6bits, tvb, offset, 1); |
| 5565 | offset += 1; |
| 5566 | |
| 5567 | /* numElements */ |
| 5568 | unsigned num_elements; |
| 5569 | proto_item *num_elements_ti = proto_tree_add_item_ret_uint(extension_tree, hf_oran_num_elements, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_elements); |
| 5570 | if (num_elements == 0) { |
| 5571 | num_elements = 256; |
| 5572 | proto_item_append_text(num_elements_ti, " (256)"); |
| 5573 | } |
| 5574 | |
| 5575 | offset += 1; |
| 5576 | |
| 5577 | /* beamId value(s) */ |
| 5578 | switch (beam_type) { |
| 5579 | case 0: |
| 5580 | for (unsigned n=0; n < num_elements; n++) { |
| 5581 | /* reserved (1 bit) + beamId */ |
| 5582 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5583 | proto_tree_add_item(extension_tree, hf_oran_beamId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5584 | offset += 2; |
| 5585 | } |
| 5586 | break; |
| 5587 | case 1: |
| 5588 | /* reserved (1 bit) + beamId */ |
| 5589 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5590 | proto_tree_add_item(extension_tree, hf_oran_beamId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5591 | offset += 2; |
| 5592 | break; |
| 5593 | default: |
| 5594 | /* Unknown type... */ |
| 5595 | break; |
| 5596 | } |
| 5597 | break; |
| 5598 | } |
| 5599 | |
| 5600 | case 28: /* SE 28: O-DU controlled frequency resolution for SINR reporting */ |
| 5601 | { |
| 5602 | /* reserved (3 bits) */ |
| 5603 | add_reserved_field(extension_tree, hf_oran_reserved_3bits, tvb, offset, 1); |
| 5604 | /* numUeSinrRpt (5 bits) */ |
| 5605 | uint32_t num_ue_sinr_rpt; |
| 5606 | proto_tree_add_item_ret_uint(extension_tree, hf_oran_num_ue_sinr_rpt, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_ue_sinr_rpt); |
| 5607 | offset += 1; |
| 5608 | |
| 5609 | for (uint32_t n=0; n < num_ue_sinr_rpt; n++) { |
| 5610 | /* reserved (1 bit) */ |
| 5611 | add_reserved_field(extension_tree, (n % 2) ? hf_oran_reserved_bit4 : hf_oran_reserved_1bit, |
| 5612 | tvb, offset, 1); |
| 5613 | |
| 5614 | /* numSinrPerPrb (3 bits). Taken from alternate nibbles within byte. */ |
| 5615 | proto_tree_add_item(extension_tree, (n % 2) ? hf_oran_num_sinr_per_prb_right : hf_oran_num_sinr_per_prb, |
| 5616 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5617 | if (n % 2) { |
| 5618 | offset += 1; |
| 5619 | } |
| 5620 | } |
| 5621 | |
| 5622 | /* May need to skip beyond half-used byte */ |
| 5623 | if (num_ue_sinr_rpt % 2) { |
| 5624 | offset += 1; |
| 5625 | } |
| 5626 | break; |
| 5627 | } |
| 5628 | |
| 5629 | case 29: /* SE 29: Cyclic delay adjustment */ |
| 5630 | /* reserved (4 bits) */ |
| 5631 | add_reserved_field(extension_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 5632 | /* cdScgSize (4 bits) */ |
| 5633 | proto_tree_add_item(extension_tree, hf_oran_cd_scg_size, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5634 | offset += 1; |
| 5635 | |
| 5636 | /* cdScgPhaseStep */ |
| 5637 | proto_tree_add_item(extension_tree, hf_oran_cd_scg_phase_step, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5638 | offset += 1; |
| 5639 | break; |
| 5640 | |
| 5641 | case 30: /* SE 30: PUSCH repetition indication */ |
| 5642 | { |
| 5643 | /* Only valid for UL */ |
| 5644 | if (!tap_info->uplink) { |
| 5645 | expert_add_info(pinfo, extension_ti, &ei_oran_se30_not_ul); |
| 5646 | } |
| 5647 | |
| 5648 | /* ueids[], number_of_ueids may have been rewritten by SE10 */ |
| 5649 | |
| 5650 | /* reserved (4 bits) */ |
| 5651 | add_reserved_field(extension_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 5652 | /* numRepUe (4 bits) */ |
| 5653 | uint8_t num_rep_ue; |
| 5654 | proto_tree_add_item_ret_uint8(extension_tree, hf_oran_num_rep_ue, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_rep_ue); |
| 5655 | offset ++; |
| 5656 | /* reserved (8 bits) */ |
| 5657 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5658 | offset += 1; |
| 5659 | |
| 5660 | if (num_rep_ue == 1) { |
| 5661 | /* SE10 *not* present. N.B. this should tally with number_of_ueids being set to only 1? */ |
| 5662 | /* reserved (1 bit) */ |
| 5663 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5664 | /* isLastRep (1 bit). Value meaningless here? */ |
| 5665 | proto_tree_add_item(extension_tree, hf_oran_is_last_rep, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5666 | /* repIndex (6 bits) */ |
| 5667 | proto_tree_add_item(extension_tree, hf_oran_rep_index, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5668 | offset += 1; |
| 5669 | |
| 5670 | /* reserved (2 bits) */ |
| 5671 | add_reserved_field(extension_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 5672 | /* numReps (6 bits) */ |
| 5673 | uint8_t num_reps; |
| 5674 | proto_tree_add_item_ret_uint8(extension_tree, hf_oran_num_reps, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_reps); |
| 5675 | /* TODO: should numReps be 0 here? */ |
| 5676 | offset += 1; |
| 5677 | |
| 5678 | /* reserved (2 bits) */ |
| 5679 | add_reserved_field(extension_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 5680 | offset += 2; |
| 5681 | |
| 5682 | } |
| 5683 | else { |
| 5684 | /* SE10 present */ |
| 5685 | bool_Bool is_last_rep = false0; |
| 5686 | /* TODO: should is_last_rep (also) cause loop exit? */ |
| 5687 | for (uint8_t ue_idx=0; (ue_idx < num_rep_ue) && !is_last_rep; ue_idx++) { |
| 5688 | /* reserved (1 bit) */ |
| 5689 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5690 | /* isLastRep (1 bit) */ |
| 5691 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_is_last_rep, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &is_last_rep); |
| 5692 | /* repIndex (6 bits) */ |
| 5693 | proto_tree_add_item(extension_tree, hf_oran_rep_index, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5694 | offset += 1; |
| 5695 | |
| 5696 | /* reserved (2 bits) */ |
| 5697 | add_reserved_field(extension_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 5698 | /* numReps (6 bits) */ |
| 5699 | uint8_t num_reps; |
| 5700 | proto_item *num_reps_ti = proto_tree_add_item_ret_uint8(extension_tree, hf_oran_num_reps, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_reps); |
| 5701 | /* TODO: values 33-63 are reserved */ |
| 5702 | if (num_reps > 32) { |
| 5703 | proto_item_append_text(num_reps_ti, " (reserved)"); |
| 5704 | } |
| 5705 | offset += 1; |
| 5706 | |
| 5707 | for (uint8_t rep=0; rep < num_reps; rep++) { |
| 5708 | /* reserved (1 bit) */ |
| 5709 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5710 | /* repUeId (15 bits) */ |
| 5711 | /* TODO: should be fetching and comparing with ueids[] from SE10? */ |
| 5712 | uint16_t ueid; |
| 5713 | proto_item *ueid_ti = proto_tree_add_item_ret_uint16(extension_tree, hf_oran_rep_ueid, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ueid); |
| 5714 | |
| 5715 | /* Check that this ueid is recognised (among ueids[], number_of_ueids) */ |
| 5716 | bool_Bool matched = false0; |
| 5717 | for (unsigned u=0; u < number_of_ueids; u++) { |
| 5718 | if (ueid == ueids[u]) |
| 5719 | matched = true1; |
| 5720 | } |
| 5721 | if (!matched) { |
| 5722 | expert_add_info_format(pinfo, ueid_ti, &ei_oran_se30_unknown_ueid, |
| 5723 | "SE 30 mentions UEId %u - not seen in SE10", ueid); |
| 5724 | } |
| 5725 | offset += 2; |
| 5726 | } |
| 5727 | } |
| 5728 | } |
| 5729 | break; |
| 5730 | } |
| 5731 | case 31: /* SE 31: MCS Information */ |
| 5732 | { |
| 5733 | /* TODO: show ueid (from ST5 or SE10) as generated field? Maybe add a subtree for each entry? */ |
| 5734 | for (uint32_t u=0; u < number_of_ueids; u++) { |
| 5735 | /* reserved (4 bits) */ |
| 5736 | add_reserved_field(extension_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 5737 | /* mcsTable (4 bits) */ |
| 5738 | proto_tree_add_item(extension_tree, hf_oran_mcs_table, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5739 | offset += 1; |
| 5740 | |
| 5741 | /* reserved (2 bits) */ |
| 5742 | add_reserved_field(extension_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 5743 | /* mcsIndex (6 bits) */ |
| 5744 | proto_tree_add_item(extension_tree, hf_oran_mcs_index, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5745 | offset += 1; |
| 5746 | } |
| 5747 | break; |
| 5748 | } |
| 5749 | |
| 5750 | case 32: /* SE 32: Rank and TPMI measurement request */ |
| 5751 | { |
| 5752 | /* reserved (3 bits) */ |
| 5753 | add_reserved_field(extension_tree, hf_oran_reserved_3bits, tvb, offset, 1); |
| 5754 | /* numMeasReq (5 bits) */ |
| 5755 | uint8_t num_meas_req; |
| 5756 | proto_tree_add_item_ret_uint8(extension_tree, hf_oran_num_meas_req, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_meas_req); |
| 5757 | offset += 1; |
| 5758 | |
| 5759 | /* reserved (8 bits) */ |
| 5760 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5761 | offset += 1; |
| 5762 | |
| 5763 | /* Show each measurement request */ |
| 5764 | for (unsigned r=0; r < num_meas_req; r++) { |
| 5765 | /* Reserved (1 bit) */ |
| 5766 | add_reserved_field(extension_tree, hf_oran_reserved_1bit, tvb, offset, 1); |
| 5767 | /* ueId (14 bits) */ |
| 5768 | proto_tree_add_item(extension_tree, hf_oran_ueId, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5769 | offset += 2; |
| 5770 | |
| 5771 | /* numOfUeAntPorts (4 bits) */ |
| 5772 | proto_tree_add_item(extension_tree, hf_oran_num_of_ue_ant_ports, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5773 | /* ueRank (4 bits) */ |
| 5774 | proto_tree_add_item(extension_tree, hf_oran_ue_rank, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5775 | offset += 1; |
| 5776 | |
| 5777 | /* codebookSubset (2 bits) */ |
| 5778 | proto_tree_add_item(extension_tree, hf_oran_codebook_subset, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5779 | /* TODO: tpmiIndex (6 bits) */ |
| 5780 | offset += 1; |
| 5781 | |
| 5782 | /* fullPwrMode (2 bits) */ |
| 5783 | proto_tree_add_item(extension_tree, hf_oran_full_pwr_mode, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5784 | /* fullPwrMode2TmpiGroup (14 bits) */ |
| 5785 | /* TODO: add as a bitset */ |
| 5786 | proto_tree_add_item(extension_tree, hf_oran_full_pwr_mode_2_tpmi_group, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5787 | offset += 2; |
| 5788 | |
| 5789 | /* reserved (2 bytes) */ |
| 5790 | add_reserved_field(extension_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 5791 | offset += 2; |
| 5792 | } |
| 5793 | break; |
| 5794 | } |
| 5795 | |
| 5796 | case 33: /* Dynamic channel type selection for SRS-BF-DL */ |
| 5797 | /* Reserved (6 bits) */ |
| 5798 | add_reserved_field(extension_tree, hf_oran_reserved_6bits, tvb, offset, 1); |
| 5799 | /* chanTypeSel (2 bits) */ |
| 5800 | proto_tree_add_item(extension_tree, hf_oran_chan_type_sel, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5801 | offset += 1; |
| 5802 | /* Reserved (8 bits) */ |
| 5803 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5804 | offset += 1; |
| 5805 | break; |
| 5806 | |
| 5807 | case 34: /* RS-BF-UL Control */ |
| 5808 | { |
| 5809 | /* portListEn (1 bit) */ |
| 5810 | bool_Bool port_list_en; |
| 5811 | proto_tree_add_item_ret_boolean(extension_tree, hf_oran_port_list_en, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &port_list_en); |
| 5812 | /* reserved (4 bits) */ |
| 5813 | add_reserved_field(extension_tree, hf_oran_reserved_bits1234, tvb, offset, 1); |
| 5814 | /* tpmiMode (3 bits) */ |
| 5815 | uint8_t tpmi_mode; |
| 5816 | proto_tree_add_item_ret_uint8(extension_tree, hf_oran_tpmi_mode, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &tpmi_mode); |
| 5817 | offset += 1; |
| 5818 | |
| 5819 | /* reserved (2 bits) */ |
| 5820 | add_reserved_field(extension_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 5821 | /* numUeid (6 bits) */ |
| 5822 | uint8_t num_ueid; |
| 5823 | proto_tree_add_item_ret_uint8(extension_tree, hf_oran_num_ueid_se34, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_ueid); |
| 5824 | offset += 1; |
| 5825 | |
| 5826 | for (unsigned layer=0; layer < num_ueid; layer++) { |
| 5827 | /* TPMI data for layer */ |
| 5828 | switch (tpmi_mode) { |
| 5829 | case 0: |
| 5830 | /* srsPortMask (8 bits) */ |
| 5831 | proto_tree_add_item(extension_tree, hf_oran_chan_srs_port_mask, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5832 | offset += 1; |
| 5833 | break; |
| 5834 | case 1: |
| 5835 | /* srsPortMask (8 bits) */ |
| 5836 | proto_tree_add_item(extension_tree, hf_oran_chan_srs_port_mask, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5837 | offset += 1; |
| 5838 | /* tpmiPhaseP7 (2 bits) */ |
| 5839 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_7, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5840 | /* tpmiPhaseP6 (2 bits) */ |
| 5841 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_6, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5842 | /* tpmiPhaseP5 (2 bits) */ |
| 5843 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_5, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5844 | /* tpmiPhaseP4 (2 bits) */ |
| 5845 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_4, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5846 | offset += 1; |
| 5847 | /* tpmiPhaseP3 (2 bits) */ |
| 5848 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_3, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5849 | /* tpmiPhaseP2 (2 bits) */ |
| 5850 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_2, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5851 | /* tpmiPhaseP1 (2 bits) */ |
| 5852 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_1, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5853 | /* tpmiPhaseP0 (2 bits) */ |
| 5854 | proto_tree_add_item(extension_tree, hf_oran_tpmi_phase_0, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5855 | offset += 1; |
| 5856 | } |
| 5857 | |
| 5858 | /* ueId for layer */ |
| 5859 | proto_tree_add_item(extension_tree, hf_oran_ueid_se34, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 5860 | offset += 2; |
| 5861 | } |
| 5862 | |
| 5863 | if (port_list_en) { |
| 5864 | /* numPortListIndex (1 byte) */ |
| 5865 | uint8_t num_port_list_index; |
| 5866 | proto_tree_add_item_ret_uint8(extension_tree, hf_oran_num_port_list_index, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_port_list_index); |
| 5867 | offset += 1; |
| 5868 | |
| 5869 | /* portListIndex (1 byte) */ |
| 5870 | for (unsigned port=0; port < num_port_list_index; port++) { |
| 5871 | proto_item *ti = proto_tree_add_item(extension_tree, hf_oran_port_list_index, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5872 | proto_item_append_text(ti, " (idx %u)", port+1); |
| 5873 | offset += 1; |
| 5874 | } |
| 5875 | } |
| 5876 | |
| 5877 | break; |
| 5878 | } |
| 5879 | |
| 5880 | case 35: /* TODO: Codebook-based beamforming parameters */ |
| 5881 | /* cqiMode (2 bits) */ |
| 5882 | /* subbandSize (6 bits) */ |
| 5883 | offset += 1; |
| 5884 | /* codebookId (4 bits) */ |
| 5885 | /* spatialConfigId (4 bits) */ |
| 5886 | offset += 1; |
| 5887 | /* ueIdReset (1 bit) */ |
| 5888 | proto_tree_add_item(extension_tree, hf_oran_ueid_reset, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 5889 | /* reserved (3 bits) */ |
| 5890 | add_reserved_field(extension_tree, hf_oran_reserved_bits123, tvb, offset, 1); |
| 5891 | /* p2aMappingType (4 bits) */ |
| 5892 | offset += 1; |
| 5893 | /* reserved (8 bits) */ |
| 5894 | add_reserved_field(extension_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5895 | offset += 1; |
| 5896 | |
| 5897 | /* TODO: p2aMapping.. */ |
| 5898 | break; |
| 5899 | |
| 5900 | |
| 5901 | |
| 5902 | default: |
| 5903 | { |
| 5904 | /* Not handled above. Offer the SE to an external dissector. */ |
| 5905 | /* If one handles it, use the number of bytes it dissected; */ |
| 5906 | /* otherwise fall back to flagging it as unsupported. */ |
| 5907 | int dissected = 0; |
| 5908 | unsigned se_end = extension_start_offset + (extlen*4); |
| 5909 | oran_se_info se_info; |
| 5910 | se_info.exttype = exttype; |
| 5911 | se_info.extlen = extlen; |
| 5912 | se_info.startPrbc = startPrbc; |
| 5913 | se_info.numPrbc = numPrbc; |
| 5914 | se_info.extension_ti = extension_ti; |
| 5915 | se_info.exttype_ti = exttype_ti; |
| 5916 | |
| 5917 | /* Subset tvb covering just the SE payload */ |
| 5918 | tvbuff_t *se_tvb = tvb_new_subset_length(tvb, offset, se_end-offset); |
| 5919 | dissected = dissector_try_uint_with_data(oran_sectionextension_table, exttype, |
| 5920 | se_tvb, pinfo, extension_tree, true1, &se_info); |
| 5921 | |
| 5922 | if (dissected > 0) { |
| 5923 | offset += dissected; |
| 5924 | break; |
| 5925 | } |
| 5926 | |
| 5927 | /* Other/unexpected extension types */ |
| 5928 | expert_add_info_format(pinfo, exttype_ti, &ei_oran_unhandled_se, |
| 5929 | "SE %u (%s) not supported by dissector", |
| 5930 | exttype, val_to_str_ext_const(exttype, &exttype_vals_ext, "Reserved")); |
| 5931 | ext_unhandled = true1; |
| 5932 | break; |
| 5933 | } |
| 5934 | } |
| 5935 | |
| 5936 | /* Check offset compared with extlen. There should be 0-3 bytes of padding */ |
| 5937 | int num_padding_bytes = (extension_start_offset + (extlen*4) - offset); |
| 5938 | if (!ext_unhandled && ((num_padding_bytes<0) || (num_padding_bytes>3))) { |
| 5939 | expert_add_info_format(pinfo, extlen_ti, &ei_oran_extlen_wrong, |
| 5940 | "extlen signalled %u bytes (+ 0-3 bytes padding), but %u were dissected", |
| 5941 | extlen*4, offset-extension_start_offset); |
| 5942 | } |
| 5943 | |
| 5944 | /* Move offset to beyond signalled length of extension */ |
| 5945 | offset = extension_start_offset + (extlen*4); |
| 5946 | |
| 5947 | /* Set length of extension header. */ |
| 5948 | proto_item_set_len(extension_ti, extlen*4); |
| 5949 | } |
| 5950 | /* End of section extension handling */ |
| 5951 | |
| 5952 | /* Tap section beamId if not overwritten by SEs */ |
| 5953 | if (!section_beamId_ignored && section_beamId != 0) { |
| 5954 | add_beam_id_to_tap(tap_info, section_beamId); |
| 5955 | } |
| 5956 | |
| 5957 | |
| 5958 | /* RRM measurement reports have measurement reports *after* extensions */ |
| 5959 | if ((sectionType == SEC_C_RRM_MEAS_REPORTS) || /* Section Type 10 */ |
| 5960 | (sectionType == SEC_C_RRM_MEAS_REPORTS_NON_TIMING)) /* Section Type 13 */ |
| 5961 | { |
| 5962 | /* Hidden filter for bf (DMFS-BF). No BF weights though.. */ |
| 5963 | bf_ti = proto_tree_add_item(c_section_tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 5964 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 5965 | |
| 5966 | bool_Bool mf; |
| 5967 | do { |
| 5968 | /* Measurement report subtree */ |
| 5969 | proto_item *mr_ti = proto_tree_add_string_format(c_section_tree, hf_oran_measurement_report, |
| 5970 | tvb, offset, 1, "", "Measurement Report"); |
| 5971 | proto_tree *mr_tree = proto_item_add_subtree(mr_ti, ett_oran_measurement_report); |
| 5972 | unsigned report_start_offset = offset; |
| 5973 | |
| 5974 | /* measurement flag (i.e., more reports after this one) (1 bit) */ |
| 5975 | proto_tree_add_item_ret_boolean(mr_tree, hf_oran_mf, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &mf); |
| 5976 | |
| 5977 | /* measTypeId (7 bits) */ |
| 5978 | uint32_t meas_type_id; |
| 5979 | proto_item *meas_type_id_ti; |
| 5980 | meas_type_id_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_meas_type_id, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &meas_type_id); |
| 5981 | offset += 1; |
| 5982 | |
| 5983 | /* Common to all measurement types */ |
| 5984 | unsigned num_elements = 0; |
| 5985 | if (meas_type_id == 6) { |
| 5986 | /* numElements */ |
| 5987 | proto_tree_add_item_ret_uint(mr_tree, hf_oran_num_elements, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_elements); |
| 5988 | } |
| 5989 | else { |
| 5990 | /* All other meas ids have a reserved byte */ |
| 5991 | add_reserved_field(mr_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 5992 | } |
| 5993 | offset += 1; |
| 5994 | |
| 5995 | /* measDataSize (16 bits). N.B. begins at mf field, i.e. 2 bytes before this one */ |
| 5996 | unsigned meas_data_size; |
| 5997 | proto_item *meas_data_size_ti; |
| 5998 | meas_data_size_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_meas_data_size, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &meas_data_size); |
| 5999 | meas_data_size *= 4; |
| 6000 | proto_item_append_text(meas_data_size_ti, " (%u bytes)", meas_data_size); |
| 6001 | offset += 2; |
| 6002 | |
| 6003 | /* Summary for measurement report root */ |
| 6004 | proto_item_append_text(mr_ti, " (measTypeId=%u - %s)", |
| 6005 | meas_type_id, val_to_str_const(meas_type_id, meas_type_id_vals, "unknown")); |
| 6006 | /* And section header */ |
| 6007 | proto_item_append_text(tree, " (%s)", val_to_str_const(meas_type_id, meas_type_id_vals, "unknown")); |
| 6008 | /* And Info column */ |
| 6009 | col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)", val_to_str_const(meas_type_id, meas_type_id_vals, "unknown")); |
| 6010 | |
| 6011 | /* Handle specific message type fields */ |
| 6012 | switch (meas_type_id) { |
| 6013 | case 1: |
| 6014 | { |
| 6015 | /* ueTae */ |
| 6016 | unsigned ue_tae; |
| 6017 | proto_item *ue_tae_ti; |
| 6018 | ue_tae_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_tae, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ue_tae); |
| 6019 | /* Show if maps onto a -ve number */ |
| 6020 | if ((ue_tae >= 0x8ad0) && (ue_tae <= 0xffff)) { |
| 6021 | proto_item_append_text(ue_tae_ti, "(value %d)", -1 - (0xffff-ue_tae)); |
| 6022 | } |
| 6023 | offset += 2; |
| 6024 | |
| 6025 | /* Reserved (16 bits) */ |
| 6026 | add_reserved_field(mr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6027 | offset += 2; |
| 6028 | break; |
| 6029 | } |
| 6030 | case 2: |
| 6031 | /* ueLayerPower entries, one for each UEId */ |
| 6032 | /* i.e., should loop over 0-number_of_ues? */ |
| 6033 | for (unsigned ueid_index=0; ueid_index < number_of_ueids; ueid_index++) { |
| 6034 | unsigned ue_layer_power; |
| 6035 | proto_item *ue_layer_power_ti; |
| 6036 | /* ueLayerPower */ |
| 6037 | ue_layer_power_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_layer_power, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ue_layer_power); |
| 6038 | /* Show if maps onto a -ve number */ |
| 6039 | if ((ue_layer_power >= 0x8ad0) && (ue_layer_power <= 0xffff)) { |
| 6040 | proto_item_append_text(ue_layer_power_ti, "(value %d) (ueId=%u)", -1 - (0xffff-ue_layer_power), ueids[ueid_index]); |
| 6041 | } |
| 6042 | offset += 2; |
| 6043 | } |
| 6044 | /* padding out to 4 bytes */ |
| 6045 | break; |
| 6046 | case 3: |
| 6047 | { |
| 6048 | /* ueFreqOffset */ |
| 6049 | unsigned ue_freq_offset; |
| 6050 | proto_item *ue_freq_offset_ti; |
| 6051 | ue_freq_offset_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_freq_offset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ue_freq_offset); |
| 6052 | /* Show if maps onto a -ve number */ |
| 6053 | if ((ue_freq_offset >= 0x8ad0) && (ue_freq_offset <= 0xffff)) { |
| 6054 | proto_item_append_text(ue_freq_offset_ti, "(value %d)", -1 - (0xffff-ue_freq_offset)); |
| 6055 | } |
| 6056 | offset += 2; |
| 6057 | |
| 6058 | /* currUeFreqOffset (16 bits) */ |
| 6059 | unsigned curr_ue_freq_offset; |
| 6060 | proto_item *curr_ue_freq_offset_ti; |
| 6061 | curr_ue_freq_offset_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_curr_ue_freq_offset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &curr_ue_freq_offset); |
| 6062 | /* Show if maps onto a -ve number */ |
| 6063 | if ((curr_ue_freq_offset >= 0x8ad0) && (curr_ue_freq_offset <= 0xffff)) { |
| 6064 | proto_item_append_text(curr_ue_freq_offset_ti, "(value %d)", -1 - (0xffff-curr_ue_freq_offset)); |
| 6065 | } |
| 6066 | offset += 2; |
| 6067 | break; |
| 6068 | } |
| 6069 | case 4: |
| 6070 | case 5: |
| 6071 | /* reserved (2 bits) */ |
| 6072 | add_reserved_field(mr_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 6073 | /* symbolMask (14 bits) */ |
| 6074 | offset = dissect_symbolmask(tvb, mr_tree, offset, NULL((void*)0), NULL((void*)0)); |
| 6075 | |
| 6076 | /* 2 bytes for each PRB ipnPower */ |
| 6077 | for (unsigned prb=0; prb<MAX_PRBS273; prb++) { |
| 6078 | /* Skip if should not be reported */ |
| 6079 | if (!prbs_for_st10_type5[prb]) { |
| 6080 | continue; |
| 6081 | } |
| 6082 | unsigned ipn_power; |
| 6083 | proto_item *ipn_power_ti; |
| 6084 | /* ipnPower (2 bytes) */ |
| 6085 | ipn_power_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ipn_power, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ipn_power); |
| 6086 | proto_item_append_text(ipn_power_ti, " (PRB %3d)", prb); |
| 6087 | /* Show if maps onto a -ve number */ |
| 6088 | if ((ipn_power >= 0x8ad0) && (ipn_power <= 0xffff)) { |
| 6089 | proto_item_append_text(ipn_power_ti, " (value %d)", -1 - (0xffff-ipn_power)); |
| 6090 | } |
| 6091 | offset += 2; |
| 6092 | } |
| 6093 | /* padding out to 4 bytes */ |
| 6094 | break; |
| 6095 | case 6: |
| 6096 | /* antDmrsSnrVal entries */ |
| 6097 | for (unsigned n=0; n < num_elements; n++) { |
| 6098 | unsigned snr_value; |
| 6099 | proto_item *snr_value_ti; |
| 6100 | /* antDmrsSnrVal (2 bytes) */ |
| 6101 | snr_value_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ant_dmrs_snr_val, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &snr_value); |
| 6102 | proto_item_append_text(snr_value_ti, " (elem %2u)", n+1); |
| 6103 | /* Show if maps onto a -ve number */ |
| 6104 | if ((snr_value >= 0x8ad0) && (snr_value <= 0xffff)) { |
| 6105 | proto_item_append_text(snr_value_ti, " (value %d)", -1 - (0xffff-snr_value)); |
| 6106 | } |
| 6107 | offset += 2; |
| 6108 | } |
| 6109 | break; |
| 6110 | case 7: |
| 6111 | { |
| 6112 | /* UE positioning measurement report */ |
| 6113 | float start_value; |
| 6114 | |
| 6115 | /* ueAzAoa (16 bits) */ |
| 6116 | uint32_t ue_az_aoa; |
| 6117 | proto_item *ue_az_aoa_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_az_aoa, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ue_az_aoa); |
| 6118 | if (ue_az_aoa <= 0xE0F) { |
| 6119 | if (ue_az_aoa >= 0x0708) { |
| 6120 | start_value = (ue_az_aoa-0x0708) * (float)0.1; |
| 6121 | proto_item_append_text(ue_az_aoa_ti, " (%.1f <= val < %.1f degrees)", start_value, start_value + (float)0.1); |
| 6122 | } |
| 6123 | else { |
| 6124 | start_value = 180 + (ue_az_aoa * (float)0.1); |
| 6125 | proto_item_append_text(ue_az_aoa_ti, " (%.1f <= val < %.1f degrees)", start_value, start_value + (float)0.1); |
| 6126 | } |
| 6127 | } |
| 6128 | else if (ue_az_aoa == 0xffff) { |
| 6129 | proto_item_append_text(ue_az_aoa_ti, " (invalid measurement result)"); |
| 6130 | } |
| 6131 | else { |
| 6132 | proto_item_append_text(ue_az_aoa_ti, " (reserved)"); |
| 6133 | } |
| 6134 | offset += 2; |
| 6135 | |
| 6136 | /* Reserved (16 bits) */ |
| 6137 | add_reserved_field(mr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6138 | offset += 2; |
| 6139 | |
| 6140 | /* ueZeAoa (16 bits) */ |
| 6141 | uint32_t ue_ze_aoa; |
| 6142 | proto_item *ue_ze_aoa_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_ze_aoa, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ue_ze_aoa); |
| 6143 | if (ue_ze_aoa <= 0x707) { |
| 6144 | start_value = ue_ze_aoa * (float)0.1; |
| 6145 | proto_item_append_text(ue_ze_aoa_ti, " (%.1f <= val < %.1f degrees)", start_value, start_value + (float)0.1); |
| 6146 | } |
| 6147 | else if (ue_ze_aoa == 0xffff) { |
| 6148 | proto_item_append_text(ue_ze_aoa_ti, " (invalid measurement result)"); |
| 6149 | } |
| 6150 | else { |
| 6151 | proto_item_append_text(ue_ze_aoa_ti, " (reserved)"); |
| 6152 | } |
| 6153 | offset += 2; |
| 6154 | |
| 6155 | /* Reserved (16 bits) */ |
| 6156 | add_reserved_field(mr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6157 | offset += 2; |
| 6158 | |
| 6159 | /* uePosToaOffset (16 bits) */ |
| 6160 | uint32_t ue_pos_toa_offset; |
| 6161 | proto_item *ue_pos_toa_offset_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_pos_toa_offset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ue_pos_toa_offset); |
| 6162 | if (ue_pos_toa_offset == 0) { |
| 6163 | proto_item_append_text(ue_pos_toa_offset_ti, " (no UE ToA offset, 0 symbols)"); |
| 6164 | } |
| 6165 | else if (ue_pos_toa_offset <= 0x7fff) { |
| 6166 | proto_item_append_text(ue_pos_toa_offset_ti, " (+ve UE ToA offset)"); |
| 6167 | } |
| 6168 | else if (ue_pos_toa_offset == 0x8000) { |
| 6169 | proto_item_append_text(ue_pos_toa_offset_ti, " (invalid measurement result)"); |
| 6170 | } |
| 6171 | else { |
| 6172 | proto_item_append_text(ue_pos_toa_offset_ti, " (-ve UE ToA offset)"); |
| 6173 | } |
| 6174 | offset += 2; |
| 6175 | |
| 6176 | /* Reserved (16 bits) */ |
| 6177 | add_reserved_field(mr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6178 | offset += 2; |
| 6179 | break; |
| 6180 | } |
| 6181 | case 8: |
| 6182 | { |
| 6183 | /* UE radial speed measurement report */ |
| 6184 | |
| 6185 | /* ueRadialSpeed (16 bits) */ |
| 6186 | uint32_t radial_speed; |
| 6187 | proto_item *radial_speed_ti = proto_tree_add_item_ret_uint(mr_tree, hf_oran_ue_radial_speed, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &radial_speed); |
| 6188 | if (radial_speed <= 10000) { |
| 6189 | proto_item_append_text(radial_speed_ti, " (%.1f km/h)", radial_speed * (float)0.1); |
| 6190 | } |
| 6191 | else if (radial_speed == 0x8000) { |
| 6192 | proto_item_append_text(radial_speed_ti, " (invalid measurement result)"); |
| 6193 | } |
| 6194 | else { |
| 6195 | proto_item_append_text(radial_speed_ti, " (reserved value)"); |
| 6196 | } |
| 6197 | offset += 2; |
| 6198 | |
| 6199 | /* Reserved (16 bits) */ |
| 6200 | add_reserved_field(mr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6201 | offset += 2; |
| 6202 | break; |
| 6203 | } |
| 6204 | case 9: |
| 6205 | { |
| 6206 | /* TODO: UE post-equalization MU interference measurement */ |
| 6207 | |
| 6208 | /* reserved (16 bits) */ |
| 6209 | add_reserved_field(mr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6210 | offset += 2; |
| 6211 | |
| 6212 | /* TODO: muInterferenceLevel (all layers * all PRB blocks) */ |
| 6213 | break; |
| 6214 | } |
| 6215 | case 10: |
| 6216 | { |
| 6217 | /* UE TPMI and rank recommendation measurement */ |
| 6218 | |
| 6219 | /* numCandRanks (4 bits - only 1-4 valid) */ |
| 6220 | uint8_t num_cand_ranks; |
| 6221 | proto_tree_add_item_ret_uint8(mr_tree, hf_oran_num_cand_ranks, tvb, offset, 1, ENC_NA0x00000000, &num_cand_ranks); |
| 6222 | if (num_cand_ranks > 4) { |
| 6223 | num_cand_ranks = 4; |
| 6224 | } |
| 6225 | if (num_cand_ranks < 1) { |
| 6226 | num_cand_ranks = 1; |
| 6227 | } |
| 6228 | |
| 6229 | /* uePrefRank (4 bits) */ |
| 6230 | proto_tree_add_item(mr_tree, hf_oran_ue_pref_rank, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 6231 | offset += 1; |
| 6232 | |
| 6233 | for (uint8_t cand_rank=1; cand_rank <= num_cand_ranks; cand_rank++) { |
| 6234 | /* ueTpmiRankY (1 byte) */ |
| 6235 | proto_item *rank_y_ti = proto_tree_add_item(mr_tree, hf_oran_ue_tpmi_rank_y, |
| 6236 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 6237 | proto_item_append_text(rank_y_ti, " (rank %u)", cand_rank); |
| 6238 | |
| 6239 | offset += 1; |
| 6240 | |
| 6241 | for (uint8_t sinr = 1; sinr <= cand_rank; sinr++) { |
| 6242 | /* ueTpmiRankYSinrLX (2 bytes) */ |
| 6243 | proto_item *rank_y_sinr_x_ti = proto_tree_add_item(mr_tree, hf_oran_ue_tpmi_rank_y_sinr_lx, |
| 6244 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6245 | proto_item_append_text(rank_y_sinr_x_ti, " (rank %u, sinr %u)", cand_rank, sinr); |
| 6246 | offset += 2; |
| 6247 | } |
| 6248 | } |
| 6249 | break; |
| 6250 | } |
| 6251 | case 11: |
| 6252 | { |
| 6253 | /* UE layer pre-equalization SINR report */ |
| 6254 | /* TODO: how to know how many layers? Just fill up available data? */ |
| 6255 | unsigned num_layers = (meas_data_size > 4) ? (meas_data_size - 4) / 2 : 0; |
| 6256 | for (unsigned layer=0; layer < num_layers; layer++) { |
| 6257 | /* ueLayerPreEqSinr (2 bytes each) */ |
| 6258 | proto_item *pre_eq_sinr_ti = proto_tree_add_item(mr_tree, hf_oran_ue_layer_pre_eq_sinr, |
| 6259 | tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6260 | proto_item_append_text(pre_eq_sinr_ti, " (layer %u)", layer); |
| 6261 | offset += 2; |
| 6262 | } |
| 6263 | break; |
| 6264 | } |
| 6265 | case 12: |
| 6266 | { |
| 6267 | /* SRS UE port wideband signal power measurement report */ |
| 6268 | /* srsMeasPortMask (2 bytes) */ |
| 6269 | uint16_t srs_meas_port_mask; |
| 6270 | proto_tree_add_item_ret_uint16(mr_tree, hf_oran_srs_meas_port_mask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &srs_meas_port_mask); |
| 6271 | offset += 2; |
| 6272 | |
| 6273 | for (unsigned p=0; p < 16; p++) { |
| 6274 | if ((1<<p) & srs_meas_port_mask) { |
| 6275 | /* srsUePortWbPower (one for each port mask bit set) */ |
| 6276 | proto_item *wb_power_ti = proto_tree_add_item(mr_tree, hf_oran_srs_ue_port_wb_power, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6277 | proto_item_append_text(wb_power_ti, " (antenna port %u)", p); |
| 6278 | offset += 2; |
| 6279 | } |
| 6280 | } |
| 6281 | break; |
| 6282 | } |
| 6283 | case 13: |
| 6284 | { |
| 6285 | /* SRS UE port wideband SINR measurement report */ |
| 6286 | /* srsMeasPortMask (2 bytes) */ |
| 6287 | uint16_t srs_meas_port_mask; |
| 6288 | proto_tree_add_item_ret_uint16(mr_tree, hf_oran_srs_meas_port_mask, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &srs_meas_port_mask); |
| 6289 | offset += 2; |
| 6290 | |
| 6291 | for (unsigned p=0; p < 16; p++) { |
| 6292 | if ((1<<p) & srs_meas_port_mask) { |
| 6293 | /* srsUePortWbSinr (one for each port mask bit set) */ |
| 6294 | proto_item *sinr_ti = proto_tree_add_item(mr_tree, hf_oran_srs_ue_port_wb_sinr, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6295 | proto_item_append_text(sinr_ti, " (antenna port %u)", p); |
| 6296 | offset += 2; |
| 6297 | } |
| 6298 | } |
| 6299 | break; |
| 6300 | } |
| 6301 | /* TODO: new measurement types */ |
| 6302 | case 14: |
| 6303 | case 15: |
| 6304 | case 16: |
| 6305 | case 17: |
| 6306 | case 18: |
| 6307 | case 19: |
| 6308 | case 20: |
| 6309 | case 21: |
| 6310 | case 22: |
| 6311 | case 23: |
| 6312 | case 24: |
| 6313 | |
| 6314 | default: |
| 6315 | /* Anything else is not expected */ |
| 6316 | expert_add_info_format(pinfo, meas_type_id_ti, &ei_oran_unexpected_measTypeId, |
| 6317 | "measTypeId %u (%s) not supported - only 1-24 are expected", |
| 6318 | meas_type_id, |
| 6319 | val_to_str_const(meas_type_id, meas_type_id_vals, "reserved")); |
| 6320 | break; |
| 6321 | |
| 6322 | } |
| 6323 | |
| 6324 | /* Pad out to next 4 bytes */ |
| 6325 | offset += WS_PADDING_TO_4(offset-report_start_offset)((4U - ((offset-report_start_offset) % 4U)) % 4U); |
| 6326 | |
| 6327 | /* TODO: verify dissected size of report vs meas_data_size? */ |
| 6328 | |
| 6329 | /* End of measurement report tree */ |
| 6330 | proto_item_set_end(mr_ti, tvb, offset); |
| 6331 | } while (mf); |
| 6332 | } |
| 6333 | |
| 6334 | /* Request for RRM Measurements has measurement commands after extensions */ |
| 6335 | else if (sectionType == SEC_C_REQUEST_RRM_MEAS) /* Section Type 11 */ |
| 6336 | { |
| 6337 | bool_Bool mf = true1; |
| 6338 | do { |
| 6339 | /* Measurement command subtree */ |
| 6340 | proto_item *mc_ti = proto_tree_add_string_format(c_section_tree, hf_oran_measurement_command, |
| 6341 | tvb, offset, 8, "", "Measurement Command"); |
| 6342 | proto_tree *mc_tree = proto_item_add_subtree(mc_ti, ett_oran_measurement_command); |
| 6343 | |
| 6344 | /* mf (1 bit). 1st measurement command is always preset */ |
| 6345 | proto_tree_add_item_ret_boolean(mc_tree, hf_oran_mf, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &mf); |
| 6346 | |
| 6347 | /* measTypeId (7 bits) */ |
| 6348 | uint32_t meas_type_id; |
| 6349 | proto_item *meas_type_id_ti; |
| 6350 | meas_type_id_ti = proto_tree_add_item_ret_uint(mc_tree, hf_oran_meas_type_id, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &meas_type_id); |
| 6351 | offset += 1; |
| 6352 | |
| 6353 | proto_item *meas_command_ti; |
| 6354 | uint32_t meas_command_size; |
| 6355 | |
| 6356 | switch (meas_type_id) { |
| 6357 | case 5: /* command for IpN for unallocated PRBs */ |
| 6358 | /* reserved (1 byte) */ |
| 6359 | add_reserved_field(mc_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 6360 | offset += 1; |
| 6361 | /* measCmdSize. Presumably number of words so in future could skip unrecognised command types.. */ |
| 6362 | meas_command_ti = proto_tree_add_item_ret_uint(mc_tree, hf_oran_meas_cmd_size, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &meas_command_size); |
| 6363 | proto_item_append_text(meas_command_ti, " (%u bytes)", meas_command_size*4); |
| 6364 | offset += 2; |
| 6365 | /* reserved (2 bits) */ |
| 6366 | add_reserved_field(mc_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 6367 | /* symbolMask (14 bits) */ |
| 6368 | offset = dissect_symbolmask(tvb, mc_tree, offset, NULL((void*)0), NULL((void*)0)); |
| 6369 | /* reserved (16 bits) */ |
| 6370 | add_reserved_field(mc_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 6371 | offset += 2; |
| 6372 | break; |
| 6373 | |
| 6374 | default: |
| 6375 | /* Anything else is not expected */ |
| 6376 | expert_add_info_format(pinfo, meas_type_id_ti, &ei_oran_unexpected_measTypeId, |
| 6377 | "measTypeId %u (%s) not supported - only 5 is expected", |
| 6378 | meas_type_id, |
| 6379 | val_to_str_const(meas_type_id, meas_type_id_vals, "reserved")); |
| 6380 | break; |
| 6381 | } |
| 6382 | proto_item_append_text(mc_ti, " (%s)", val_to_str_const(meas_type_id, meas_type_id_vals, "unknown")); |
| 6383 | |
| 6384 | } while (mf); |
| 6385 | } |
| 6386 | |
| 6387 | /* Set extent of overall section */ |
| 6388 | proto_item_set_len(sectionHeading, offset); |
| 6389 | |
| 6390 | return offset; |
| 6391 | } |
| 6392 | |
| 6393 | /* Dissect udCompHdr (user data compression header, 7.5.2.10) */ |
| 6394 | /* bit_width and comp_meth are out params */ |
| 6395 | static int dissect_udcomphdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset, |
| 6396 | bool_Bool cplane, bool_Bool ignore, |
| 6397 | unsigned *bit_width, unsigned *comp_meth, proto_item **comp_meth_ti, |
| 6398 | oran_tap_info *tap_info) |
| 6399 | { |
| 6400 | /* Subtree */ |
| 6401 | proto_item *udcomphdr_ti = proto_tree_add_string_format(tree, hf_oran_udCompHdr, |
| 6402 | tvb, offset, 1, "", |
| 6403 | "udCompHdr"); |
| 6404 | proto_tree *udcomphdr_tree = proto_item_add_subtree(udcomphdr_ti, ett_oran_udcomphdr); |
| 6405 | |
| 6406 | uint8_t byte = tvb_get_uint8(tvb, offset); |
| 6407 | uint32_t hdr_iq_width = 0, ud_comp_meth = 0; |
| 6408 | |
| 6409 | /* Don't dissect fields if ignored and correctly set to 0 */ |
| 6410 | if (!(ignore && byte == 0)) { |
| 6411 | /* udIqWidth */ |
| 6412 | |
| 6413 | proto_item *iq_width_item = proto_tree_add_item_ret_uint(udcomphdr_tree, hf_oran_udCompHdrIqWidth , tvb, offset, 1, ENC_NA0x00000000, &hdr_iq_width); |
| 6414 | proto_item_append_text(iq_width_item, " (%u bits)", (hdr_iq_width) ? hdr_iq_width : 16); |
| 6415 | |
| 6416 | /* udCompMeth */ |
| 6417 | *comp_meth_ti = proto_tree_add_item_ret_uint(udcomphdr_tree, hf_oran_udCompHdrMeth, tvb, offset, 1, ENC_NA0x00000000, &ud_comp_meth); |
| 6418 | |
| 6419 | /* An ignored header does not change the settings */ |
| 6420 | if (!ignore) { |
| 6421 | *bit_width = (hdr_iq_width) ? hdr_iq_width : 16; |
| 6422 | if (comp_meth) { |
| 6423 | *comp_meth = ud_comp_meth; |
| 6424 | } |
| 6425 | } |
| 6426 | } |
| 6427 | |
| 6428 | /* Populate tap header with compression settings */ |
| 6429 | if (!ignore) { |
| 6430 | tap_info->compression_methods |= (1 << ud_comp_meth); |
| 6431 | tap_info->compression_width = MAX(tap_info->compression_width, hdr_iq_width)(((tap_info->compression_width) > (hdr_iq_width)) ? (tap_info ->compression_width) : (hdr_iq_width)); |
| 6432 | /* Summary */ |
| 6433 | proto_item_append_text(udcomphdr_ti, " (IqWidth=%u, udCompMeth=%s)", |
| 6434 | *bit_width, rval_to_str_const(ud_comp_meth, ud_comp_header_meth, "Unknown")); |
| 6435 | } |
| 6436 | else { |
| 6437 | proto_item_append_text(udcomphdr_ti, " (ignored)"); |
| 6438 | if (hdr_iq_width || ud_comp_meth) { |
| 6439 | if (cplane) { |
| 6440 | /* Only ignoring in DL for cplane */ |
| 6441 | expert_add_info_format(pinfo, udcomphdr_ti, &ei_oran_udcomphdr_should_be_zero, |
| 6442 | "udCompHdr in C-Plane for DL should be 0 - found 0x%02x", |
| 6443 | tvb_get_uint8(tvb, offset)); |
| 6444 | } |
| 6445 | else { |
| 6446 | /* TODO: Ignore UL if using m-plane/preference setting rather than c-plane, but wrong to be set? */ |
| 6447 | /* expert_add_info_format(pinfo, udcomphdr_ti, &ei_oran_udcomphdr_should_be_zero, |
| 6448 | "udCompHdr in C-Plane for UL should be 0 - found 0x%02x", |
| 6449 | tvb_get_uint8(tvb, offset)); |
| 6450 | */ |
| 6451 | } |
| 6452 | } |
| 6453 | } |
| 6454 | return offset+1; |
| 6455 | } |
| 6456 | |
| 6457 | /* Dissect udCompParam (user data compression parameter, 8.3.3.15) */ |
| 6458 | /* bit_width and comp_meth are out params */ |
| 6459 | static int dissect_udcompparam(tvbuff_t *tvb, packet_info *pinfo _U___attribute__((unused)), proto_tree *tree, unsigned offset, |
| 6460 | unsigned comp_meth, |
| 6461 | uint32_t *exponent, uint16_t *sReSMask, |
| 6462 | bool_Bool for_sinr) |
| 6463 | { |
| 6464 | if (for_sinr && (comp_meth != COMP_BLOCK_FP1)) { |
| 6465 | /* sinrCompParam only present when bfp is used */ |
| 6466 | return offset; |
| 6467 | } |
| 6468 | |
| 6469 | if (comp_meth == COMP_NONE0 || |
| 6470 | comp_meth == COMP_MODULATION4 || |
| 6471 | comp_meth == MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8) { |
| 6472 | |
| 6473 | /* Not even creating a subtree for udCompMeth 0, 4, 8 */ |
| 6474 | return offset; |
| 6475 | } |
| 6476 | |
| 6477 | /* Subtree */ |
| 6478 | unsigned start_offset = offset; |
| 6479 | proto_item *udcompparam_ti = proto_tree_add_string_format(tree, hf_oran_udCompParam, |
| 6480 | tvb, offset, 1, "", |
| 6481 | (for_sinr) ? "sinrCompParam" : "udCompParam"); |
| 6482 | proto_tree *udcompparam_tree = proto_item_add_subtree(udcompparam_ti, ett_oran_udcompparam); |
| 6483 | |
| 6484 | /* Show comp_meth as a generated field */ |
| 6485 | proto_item *meth_ti = proto_tree_add_uint(udcompparam_tree, hf_oran_udCompHdrMeth_pref, tvb, 0, 0, comp_meth); |
| 6486 | proto_item_set_generated(meth_ti); |
| 6487 | |
| 6488 | uint32_t param_exponent; |
| 6489 | uint64_t param_sresmask; |
| 6490 | |
| 6491 | static int * const sres_mask_flags[] = { |
| 6492 | &hf_oran_sReSMask_re12, |
| 6493 | &hf_oran_sReSMask_re11, |
| 6494 | &hf_oran_sReSMask_re10, |
| 6495 | &hf_oran_sReSMask_re9, |
| 6496 | &hf_oran_sReSMask_re8, |
| 6497 | &hf_oran_sReSMask_re7, |
| 6498 | &hf_oran_sReSMask_re6, |
| 6499 | &hf_oran_sReSMask_re5, |
| 6500 | &hf_oran_sReSMask_re4, |
| 6501 | &hf_oran_sReSMask_re3, |
| 6502 | &hf_oran_sReSMask_re2, |
| 6503 | &hf_oran_sReSMask_re1, |
| 6504 | NULL((void*)0) |
| 6505 | }; |
| 6506 | |
| 6507 | switch (comp_meth) { |
| 6508 | case COMP_BLOCK_FP1: /* 1 */ |
| 6509 | case BFP_AND_SELECTIVE_RE_WITH_MASKS7: /* 7 */ |
| 6510 | /* reserved (4 bits) */ |
| 6511 | add_reserved_field(udcompparam_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 6512 | /* exponent (4 bits) */ |
| 6513 | proto_tree_add_item_ret_uint(udcompparam_tree, hf_oran_exponent, |
| 6514 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, ¶m_exponent); |
| 6515 | *exponent = param_exponent; |
| 6516 | proto_item_append_text(udcompparam_ti, " (Exponent=%u)", param_exponent); |
| 6517 | offset += 1; |
| 6518 | break; |
| 6519 | |
| 6520 | case COMP_BLOCK_SCALE2: /* 2 */ |
| 6521 | /* Separate into integer and fractional bits? */ |
| 6522 | proto_tree_add_item(udcompparam_tree, hf_oran_blockScaler, |
| 6523 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 6524 | offset++; |
| 6525 | break; |
| 6526 | |
| 6527 | case COMP_U_LAW3: /* 3 */ |
| 6528 | /* compBitWidth, compShift */ |
| 6529 | proto_tree_add_item(udcompparam_tree, hf_oran_compBitWidth, |
| 6530 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 6531 | proto_tree_add_item(udcompparam_tree, hf_oran_compShift, |
| 6532 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 6533 | offset += 1; |
| 6534 | break; |
| 6535 | |
| 6536 | case BFP_AND_SELECTIVE_RE5: /* 5 */ |
| 6537 | { |
| 6538 | /* sReSMask (exponent in middle!) */ |
| 6539 | proto_item *sresmask_ti; |
| 6540 | sresmask_ti = proto_tree_add_bitmask_ret_uint64(udcompparam_tree, tvb, offset, |
| 6541 | hf_oran_sReSMask, |
| 6542 | ett_oran_sresmask, |
| 6543 | sres_mask_flags, |
| 6544 | ENC_NA0x00000000, |
| 6545 | ¶m_sresmask); |
| 6546 | |
| 6547 | /* Get rid of exponent-shaped gap */ |
| 6548 | param_sresmask = ((param_sresmask >> 4) & 0x0f00) | (param_sresmask & 0xff); |
| 6549 | unsigned res = 0; |
| 6550 | for (unsigned n=0; n < 12; n++) { |
| 6551 | if ((param_sresmask >> n) & 0x1) { |
| 6552 | res++; |
| 6553 | } |
| 6554 | } |
| 6555 | proto_item_append_text(sresmask_ti, " (%2u REs)", res); |
| 6556 | |
| 6557 | /* exponent */ |
| 6558 | proto_tree_add_item_ret_uint(udcompparam_tree, hf_oran_exponent, |
| 6559 | tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, ¶m_exponent); |
| 6560 | *sReSMask = (uint16_t)param_sresmask; |
| 6561 | *exponent = param_exponent; |
| 6562 | |
| 6563 | proto_item_append_text(udcompparam_ti, " (exponent=%u, %u REs)", *exponent, res); |
| 6564 | offset += 2; |
| 6565 | break; |
| 6566 | } |
| 6567 | |
| 6568 | case MOD_COMPR_AND_SELECTIVE_RE6: /* 6 */ |
| 6569 | { |
| 6570 | /* sReSMask (exponent in middle!) */ |
| 6571 | proto_item *sresmask_ti; |
| 6572 | |
| 6573 | sresmask_ti = proto_tree_add_bitmask_ret_uint64(udcompparam_tree, tvb, offset, |
| 6574 | hf_oran_sReSMask, |
| 6575 | ett_oran_sresmask, |
| 6576 | sres_mask_flags, |
| 6577 | ENC_NA0x00000000, |
| 6578 | ¶m_sresmask); |
| 6579 | |
| 6580 | /* Get rid of reserved-shaped gap */ |
| 6581 | param_sresmask = ((param_sresmask >> 4) & 0x0f00) | (param_sresmask & 0xff); |
| 6582 | unsigned res = 0; |
| 6583 | for (unsigned n=0; n < 12; n++) { |
| 6584 | if ((param_sresmask >> n) & 0x1) { |
| 6585 | res++; |
| 6586 | } |
| 6587 | } |
| 6588 | proto_item_append_text(sresmask_ti, " (%u REs)", res); |
| 6589 | |
| 6590 | /* reserved (4 bits) */ |
| 6591 | add_reserved_field(udcompparam_tree, hf_oran_reserved_last_4bits, tvb, offset, 1); |
| 6592 | *sReSMask = (uint16_t)param_sresmask; |
| 6593 | |
| 6594 | proto_item_append_text(udcompparam_ti, " (%u REs)", res); |
| 6595 | offset += 2; |
| 6596 | break; |
| 6597 | } |
| 6598 | |
| 6599 | default: |
| 6600 | /* reserved (set to all zeros), but how many bytes?? */ |
| 6601 | break; |
| 6602 | } |
| 6603 | |
| 6604 | proto_item_set_len(udcompparam_ti, offset-start_offset); |
| 6605 | return offset; |
| 6606 | } |
| 6607 | |
| 6608 | |
| 6609 | /* Dissect ciCompHdr (channel information compression header, 7.5.2.15) */ |
| 6610 | /* bit_width and comp_meth are out params */ |
| 6611 | static int dissect_cicomphdr(tvbuff_t *tvb, packet_info *pinfo _U___attribute__((unused)), proto_tree *tree, unsigned offset, |
| 6612 | unsigned *bit_width, unsigned *comp_meth, uint8_t *comp_opt) |
| 6613 | { |
| 6614 | /* Subtree */ |
| 6615 | proto_item *cicomphdr_ti = proto_tree_add_string_format(tree, hf_oran_ciCompHdr, |
| 6616 | tvb, offset, 1, "", |
| 6617 | "ciCompHdr"); |
| 6618 | proto_tree *cicomphdr_tree = proto_item_add_subtree(cicomphdr_ti, ett_oran_cicomphdr); |
| 6619 | |
| 6620 | /* ciIqWidth */ |
| 6621 | uint32_t hdr_iq_width; |
| 6622 | proto_item *iq_width_item = proto_tree_add_item_ret_uint(cicomphdr_tree, hf_oran_ciCompHdrIqWidth , tvb, offset, 1, ENC_NA0x00000000, &hdr_iq_width); |
| 6623 | hdr_iq_width = (hdr_iq_width) ? hdr_iq_width : 16; |
| 6624 | if (bit_width) { |
| 6625 | *bit_width = hdr_iq_width; |
| 6626 | } |
| 6627 | proto_item_append_text(iq_width_item, " (%u bits)", hdr_iq_width); |
| 6628 | |
| 6629 | /* ciCompMeth */ |
| 6630 | uint32_t ci_comp_meth; |
| 6631 | proto_tree_add_item_ret_uint(cicomphdr_tree, hf_oran_ciCompHdrMeth, tvb, offset, 1, ENC_NA0x00000000, &ci_comp_meth); |
| 6632 | if (comp_meth) { |
| 6633 | *comp_meth = ci_comp_meth; |
| 6634 | } |
| 6635 | |
| 6636 | /* ciCompOpt */ |
| 6637 | uint32_t opt; |
| 6638 | proto_tree_add_item_ret_uint(cicomphdr_tree, hf_oran_ciCompOpt, tvb, offset, 1, ENC_NA0x00000000, &opt); |
| 6639 | *comp_opt = opt; |
| 6640 | offset += 1; |
| 6641 | |
| 6642 | /* Summary */ |
| 6643 | proto_item_append_text(cicomphdr_ti, " (IqWidth=%u, ciCompMeth=%s, ciCompOpt=%s)", |
| 6644 | hdr_iq_width, |
| 6645 | rval_to_str_const(ci_comp_meth, ud_comp_header_meth, "Unknown"), |
| 6646 | (*comp_opt) ? "compression per PRB" : "compression per UE"); |
| 6647 | return offset; |
| 6648 | } |
| 6649 | |
| 6650 | static void dissect_payload_version(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, unsigned offset) |
| 6651 | { |
| 6652 | unsigned version; |
| 6653 | proto_item *ti = proto_tree_add_item_ret_uint(tree, hf_oran_payload_version, tvb, offset, 1, ENC_NA0x00000000, &version); |
| 6654 | if (version != 1) { |
| 6655 | expert_add_info_format(pinfo, ti, &ei_oran_version_unsupported, |
| 6656 | "PayloadVersion %u not supported by dissector (only 1 is known)", |
| 6657 | version); |
| 6658 | /* TODO: should throw an exception? */ |
| 6659 | } |
| 6660 | } |
| 6661 | |
| 6662 | /* Time from earlier to later in units of unit_ns nanoseconds, rounded. |
| 6663 | 0 if later is before earlier, and at most UINT32_MAX */ |
| 6664 | static uint32_t time_gap(const nstime_t *later, const nstime_t *earlier, uint32_t unit_ns) |
| 6665 | { |
| 6666 | nstime_t delta; |
| 6667 | nstime_delta(&delta, later, earlier); |
| 6668 | if (delta.secs < 0 || (delta.secs == 0 && delta.nsecs < 0)) { |
| 6669 | return 0; |
| 6670 | } |
| 6671 | if ((uint64_t)delta.secs >= UINT32_MAX(4294967295U)) { |
| 6672 | return UINT32_MAX(4294967295U); |
| 6673 | } |
| 6674 | uint64_t units = ((uint64_t)delta.secs * (1000000000 / unit_ns)) + |
| 6675 | (((uint64_t)delta.nsecs + unit_ns/2) / unit_ns); |
| 6676 | return (uint32_t)MIN(units, UINT32_MAX)(((units) < ((4294967295U))) ? (units) : ((4294967295U))); |
| 6677 | } |
| 6678 | |
| 6679 | static void show_link_to_acknack_request(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, |
| 6680 | ack_nack_request_t *request) |
| 6681 | { |
| 6682 | /* Request frame */ |
| 6683 | proto_item *ti = proto_tree_add_uint(tree, hf_oran_acknack_request_frame, |
| 6684 | tvb, 0, 0, request->request_frame_number); |
| 6685 | PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti)); |
| 6686 | |
| 6687 | /* Work out gap between frames (in ms) */ |
| 6688 | uint32_t total_gap = time_gap(&pinfo->abs_ts, &request->request_frame_time, 1000000); |
| 6689 | |
| 6690 | ti = proto_tree_add_uint(tree, hf_oran_acknack_request_time, |
| 6691 | tvb, 0, 0, total_gap); |
| 6692 | PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti)); |
| 6693 | |
| 6694 | /* Type of request */ |
| 6695 | ti = proto_tree_add_uint(tree, hf_oran_acknack_request_type, |
| 6696 | tvb, 0, 0, request->requestType); |
| 6697 | PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti)); |
| 6698 | } |
| 6699 | |
| 6700 | static void show_link_to_acknack_response(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, |
| 6701 | ack_nack_request_t *response) |
| 6702 | { |
| 6703 | if (response->response_frame_number == 0) { |
| 6704 | /* Requests may not get a response, and can't always tell when to expect one */ |
| 6705 | return; |
| 6706 | } |
| 6707 | |
| 6708 | /* Response frame */ |
| 6709 | proto_item *ti = proto_tree_add_uint(tree, hf_oran_acknack_response_frame, |
| 6710 | tvb, 0, 0, response->response_frame_number); |
| 6711 | PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti)); |
| 6712 | |
| 6713 | /* Work out gap between frames (in ms) */ |
| 6714 | uint32_t total_gap = time_gap(&response->response_frame_time, &pinfo->abs_ts, 1000000); |
| 6715 | |
| 6716 | ti = proto_tree_add_uint(tree, hf_oran_acknack_response_time, |
| 6717 | tvb, 0, 0, total_gap); |
| 6718 | PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti)); |
| 6719 | } |
| 6720 | |
| 6721 | |
| 6722 | |
| 6723 | /* Control plane dissector (section 7). */ |
| 6724 | static int dissect_oran_c(tvbuff_t *tvb, packet_info *pinfo, |
| 6725 | proto_tree *tree, oran_tap_info *tap_info, void *data _U___attribute__((unused))) |
| 6726 | { |
| 6727 | /* Hidden filter for plane */ |
| 6728 | proto_item *plane_ti = proto_tree_add_item(tree, hf_oran_cplane, tvb, 0, 0, ENC_NA0x00000000); |
| 6729 | PROTO_ITEM_SET_HIDDEN(plane_ti)proto_item_set_hidden((plane_ti)); |
| 6730 | |
| 6731 | /* Set up structures needed to add the protocol subtree and manage it */ |
| 6732 | unsigned offset = 0; |
| 6733 | |
| 6734 | col_set_str(pinfo->cinfo, COL_PROTOCOL, "O-RAN-FH-C"); |
| 6735 | col_set_str(pinfo->cinfo, COL_INFO, "C-Plane"); |
| 6736 | |
| 6737 | tap_info->userplane = false0; |
| 6738 | |
| 6739 | /* Create display subtree for the protocol */ |
| 6740 | proto_item *protocol_item = proto_tree_add_item(tree, proto_oran, tvb, 0, -1, ENC_NA0x00000000); |
| 6741 | proto_item_append_text(protocol_item, "-C"); |
| 6742 | proto_tree *oran_tree = proto_item_add_subtree(protocol_item, ett_oran); |
| 6743 | |
| 6744 | /* ecpriRtcid (eAxC ID) */ |
| 6745 | uint16_t eAxC; |
| 6746 | addPcOrRtcid(tvb, oran_tree, &offset, hf_oran_ecpri_rtcid, &eAxC, tap_info); |
| 6747 | tap_info->eaxc = eAxC; |
| 6748 | |
| 6749 | /* Look up any existing conversation state for eAxC+plane */ |
| 6750 | flow_state_t* state = lookup_flow(pinfo, eAxC, ORAN_C_PLANE0, false0); |
| 6751 | |
| 6752 | /* Message identifier */ |
| 6753 | uint32_t seq_id, sub_seq_id, e; |
| 6754 | proto_item *seq_id_ti; |
| 6755 | offset = addSeqid(tvb, oran_tree, offset, ORAN_C_PLANE0, &seq_id, &seq_id_ti, &sub_seq_id, &e); |
| 6756 | |
| 6757 | /* Section common subtree */ |
| 6758 | int section_tree_offset = offset; |
| 6759 | proto_item *sectionHeading = proto_tree_add_string_format(oran_tree, hf_oran_c_section_common, |
| 6760 | tvb, offset, 0, "", "C-Plane Section Type "); |
| 6761 | proto_tree *section_tree = proto_item_add_subtree(sectionHeading, ett_oran_c_section_common); |
| 6762 | |
| 6763 | /* Peek ahead at the section type */ |
| 6764 | uint32_t sectionType = 0; |
| 6765 | sectionType = tvb_get_uint8(tvb, offset+5); |
| 6766 | |
| 6767 | uint32_t scs = 0; |
| 6768 | proto_item *scs_ti = NULL((void*)0); |
| 6769 | |
| 6770 | /* dataDirection */ |
| 6771 | uint32_t direction = 0; |
| 6772 | proto_item *datadir_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_data_direction, tvb, offset, 1, ENC_NA0x00000000, &direction); |
| 6773 | tap_info->uplink = (direction==0); |
| 6774 | |
| 6775 | /* Update/report status of conversation */ |
| 6776 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 6777 | |
| 6778 | if (state == NULL((void*)0)) { |
| 6779 | /* Allocate state now */ |
| 6780 | state = wmem_new0(wmem_file_scope(), flow_state_t)((flow_state_t*)wmem_alloc0((wmem_file_scope()), sizeof(flow_state_t ))); |
| 6781 | state->ack_nack_requests = wmem_tree_new(wmem_file_scope()); |
| 6782 | store_flow(pinfo, eAxC, ORAN_C_PLANE0, false0, state); |
| 6783 | /* Tables for each direction */ |
| 6784 | state->expected_sections[0] = wmem_tree_new(wmem_file_scope()); |
| 6785 | state->expected_sections[1] = wmem_tree_new(wmem_file_scope()); |
| 6786 | } |
| 6787 | |
| 6788 | /* Check sequence analysis status */ |
| 6789 | if (state->last_frame_seen[direction] && (seq_id != state->next_expected_sequence_number[direction])) { |
| 6790 | /* Store this result */ |
| 6791 | flow_result_t *result = wmem_new0(wmem_file_scope(), flow_result_t)((flow_result_t*)wmem_alloc0((wmem_file_scope()), sizeof(flow_result_t ))); |
| 6792 | result->unexpected_seq_number = true1; |
| 6793 | result->expected_sequence_number = state->next_expected_sequence_number[direction]; |
| 6794 | result->previous_frame = state->last_frame[direction]; |
| 6795 | result->u_plane_frames = wmem_list_new(wmem_file_scope()); |
| 6796 | wmem_tree_insert32(flow_results_table, pinfo->num, result); |
| 6797 | } |
| 6798 | /* Update conversation info */ |
| 6799 | state->last_frame[direction] = pinfo->num; |
| 6800 | state->last_frame_seen[direction] = true1; |
| 6801 | state->next_expected_sequence_number[direction] = (seq_id+1) % 256; |
| 6802 | } |
| 6803 | |
| 6804 | /* Show any issues associated with this frame number */ |
| 6805 | flow_result_t *result = wmem_tree_lookup32(flow_results_table, pinfo->num); |
| 6806 | if (result!=NULL((void*)0) && result->unexpected_seq_number) { |
| 6807 | expert_add_info_format(pinfo, seq_id_ti, |
| 6808 | (direction == DIR_UPLINK0) ? |
| 6809 | &ei_oran_cplane_unexpected_sequence_number_ul : |
| 6810 | &ei_oran_cplane_unexpected_sequence_number_dl, |
| 6811 | "Sequence number %u expected, but got %u", |
| 6812 | result->expected_sequence_number, seq_id); |
| 6813 | |
| 6814 | /* Update tap info */ |
| 6815 | uint32_t missing_sns = (256 + seq_id - result->expected_sequence_number) % 256; |
| 6816 | /* Don't get confused by being slightly out of order.. */ |
| 6817 | if (missing_sns < 128) { |
| 6818 | tap_info->missing_sns = missing_sns; |
| 6819 | } |
| 6820 | else { |
| 6821 | tap_info->missing_sns = 0; |
| 6822 | } |
| 6823 | |
| 6824 | /* Show link back to previous frame in stream */ |
| 6825 | proto_item *prev_ti = proto_tree_add_uint(proto_item_get_subtree(proto_item_get_parent(seq_id_ti)), |
| 6826 | hf_oran_previous_frame, tvb, 0, 0, result->previous_frame); |
| 6827 | proto_item_set_generated(prev_ti); |
| 6828 | } |
| 6829 | |
| 6830 | /* payloadVersion */ |
| 6831 | dissect_payload_version(section_tree, tvb, pinfo, offset); |
| 6832 | |
| 6833 | /* filterIndex */ |
| 6834 | if (sectionType == SEC_C_SLOT_CONTROL || sectionType == SEC_C_ACK_NACK_FEEDBACK) { |
| 6835 | /* scs (for ST4 and ST8) */ |
| 6836 | scs_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_frameStructure_subcarrier_spacing, tvb, offset, 1, ENC_NA0x00000000, &scs); |
| 6837 | } |
| 6838 | else if (sectionType == SEC_C_RRM_MEAS_REPORTS || sectionType == SEC_C_RRM_MEAS_REPORTS_NON_TIMING || sectionType == SEC_C_REQUEST_RRM_MEAS) { |
| 6839 | /* reserved (4 bits) */ |
| 6840 | add_reserved_field(section_tree, hf_oran_reserved_last_4bits, tvb, offset, 1); |
| 6841 | } |
| 6842 | else if (sectionType != SEC_C_LAA) { |
| 6843 | /* filterIndex (most common case) */ |
| 6844 | proto_tree_add_item(section_tree, hf_oran_filter_index, tvb, offset, 1, ENC_NA0x00000000); |
| 6845 | } |
| 6846 | offset += 1; |
| 6847 | |
| 6848 | unsigned ref_a_offset = offset; |
| 6849 | /* frameId */ |
| 6850 | uint32_t frameId = 0; |
| 6851 | proto_tree_add_item_ret_uint(section_tree, hf_oran_frame_id, tvb, offset, 1, ENC_NA0x00000000, &frameId); |
| 6852 | tap_info->frame = frameId; |
| 6853 | offset += 1; |
| 6854 | |
| 6855 | /* subframeId */ |
| 6856 | uint32_t subframeId = 0; |
| 6857 | proto_tree_add_item_ret_uint(section_tree, hf_oran_subframe_id, tvb, offset, 1, ENC_NA0x00000000, &subframeId); |
| 6858 | /* slotId */ |
| 6859 | uint32_t slotId = 0; |
| 6860 | proto_tree_add_item_ret_uint(section_tree, hf_oran_slot_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &slotId); |
| 6861 | tap_info->slot = slotId; |
| 6862 | offset++; |
| 6863 | |
| 6864 | /* startSymbolId */ |
| 6865 | uint32_t startSymbolId = 0; |
| 6866 | proto_item *ssid_ti = NULL((void*)0); |
| 6867 | if ((sectionType == SEC_C_ACK_NACK_FEEDBACK) || /* Section Type 8 */ |
| 6868 | (sectionType == SEC_C_SINR_REPORTING)) { /* Section Type 9 */ |
| 6869 | /* symbolId */ |
| 6870 | proto_tree_add_item_ret_uint(section_tree, hf_oran_symbolId, tvb, offset, 1, ENC_NA0x00000000, &startSymbolId); |
| 6871 | } |
| 6872 | else if (sectionType != SEC_C_LAA) { |
| 6873 | /* startSymbolId is in most section types */ |
| 6874 | ssid_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_start_symbol_id, tvb, offset, 1, ENC_NA0x00000000, &startSymbolId); |
| 6875 | if (startSymbolId && (sectionType == SEC_C_RRM_MEAS_REPORTS)) { /* Section Type 10 */ |
| 6876 | proto_item_append_text(ssid_ti, " (should be 0 for ST10!)"); |
| 6877 | expert_add_info_format(pinfo, ssid_ti, &ei_oran_st10_startsymbolid_not_0, |
| 6878 | "startSymbolId should be 0 for ST10 - found %u", startSymbolId); |
| 6879 | } |
| 6880 | } |
| 6881 | else { |
| 6882 | /* reserved (6 bits) */ |
| 6883 | add_reserved_field(section_tree, hf_oran_reserved_last_6bits, tvb, offset, 1); |
| 6884 | } |
| 6885 | offset++; |
| 6886 | |
| 6887 | |
| 6888 | char id[16]; |
| 6889 | snprintf(id, 16, "%u-%u-%u-%u", frameId, subframeId, slotId, startSymbolId); |
| 6890 | proto_item *pi = proto_tree_add_string(section_tree, hf_oran_refa, tvb, ref_a_offset, 3, id); |
| 6891 | proto_item_set_generated(pi); |
| 6892 | |
| 6893 | uint32_t cmd_scope = 0; |
| 6894 | bool_Bool st8_ready = false0; |
| 6895 | |
| 6896 | /* numberOfSections (or whatever section has instead) */ |
| 6897 | uint32_t nSections = 0; |
| 6898 | if (sectionType == SEC_C_SLOT_CONTROL) { /* Section Type 4 */ |
| 6899 | /* Slot Control has these fields instead */ |
| 6900 | /* reserved (4 bits) */ |
| 6901 | add_reserved_field(section_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 6902 | /* cmdScope (4 bits) */ |
| 6903 | proto_tree_add_item_ret_uint(section_tree, hf_oran_cmd_scope, tvb, offset, 1, ENC_NA0x00000000, &cmd_scope); |
| 6904 | } |
| 6905 | else if (sectionType == SEC_C_ACK_NACK_FEEDBACK) { /* Section Type 8 */ |
| 6906 | /* reserved (7 bits) */ |
| 6907 | add_reserved_field(section_tree, hf_oran_reserved_7bits, tvb, offset, 1); |
| 6908 | /* ready (1 bit) */ |
| 6909 | /* TODO: when set, ready in slotId+1.. */ |
| 6910 | proto_tree_add_item_ret_boolean(section_tree, hf_oran_ready, tvb, offset, 1, ENC_NA0x00000000, &st8_ready); |
| 6911 | if (!st8_ready) { |
| 6912 | /* SCS value is ignored, and may be set to any value by O-RU */ |
| 6913 | proto_item_append_text(scs_ti, " (ignored)"); |
| 6914 | } |
| 6915 | } |
| 6916 | else if (sectionType != SEC_C_LAA) { |
| 6917 | /* numberOfSections */ |
| 6918 | proto_tree_add_item_ret_uint(section_tree, hf_oran_numberOfSections, tvb, offset, 1, ENC_NA0x00000000, &nSections); |
| 6919 | } |
| 6920 | else { |
| 6921 | add_reserved_field(section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 6922 | } |
| 6923 | offset++; |
| 6924 | |
| 6925 | /* sectionType */ |
| 6926 | proto_tree_add_item_ret_uint(section_tree, hf_oran_sectionType, tvb, offset, 1, ENC_NA0x00000000, §ionType); |
| 6927 | offset += 1; |
| 6928 | |
| 6929 | /* Check that dataDirection is consistent with section type */ |
| 6930 | if (sectionType == SEC_C_SINR_REPORTING && direction != 0) { /* Section Type 9 */ |
| 6931 | expert_add_info(pinfo, datadir_ti, &ei_oran_st9_not_ul); |
| 6932 | } |
| 6933 | if (sectionType == SEC_C_RRM_MEAS_REPORTS && direction != 0) { /* Section Type 10 */ |
| 6934 | expert_add_info(pinfo, datadir_ti, &ei_oran_st10_not_ul); |
| 6935 | } |
| 6936 | |
| 6937 | /* Note this section type in stats */ |
| 6938 | if (sectionType < SEC_C_MAX_INDEX) { |
| 6939 | tap_info->section_types[sectionType] = true1; |
| 6940 | } |
| 6941 | |
| 6942 | /* Section-type-specific fields following common header (white entries in Section Type diagrams) */ |
| 6943 | unsigned bit_width = 0; |
| 6944 | unsigned comp_meth = 0; |
| 6945 | proto_item *comp_meth_ti; |
| 6946 | unsigned ci_comp_method = 0; |
| 6947 | uint8_t ci_comp_opt = 0; |
| 6948 | |
| 6949 | uint32_t num_ues = 0; |
| 6950 | uint32_t number_of_acks = 0, number_of_nacks = 0; |
| 6951 | |
| 6952 | uint32_t num_sinr_per_prb = 0; |
| 6953 | |
| 6954 | switch (sectionType) { |
| 6955 | case SEC_C_UNUSED_RB: /* Section Type 0 */ |
| 6956 | /* timeOffset */ |
| 6957 | proto_tree_add_item(section_tree, hf_oran_timeOffset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6958 | offset += 2; |
| 6959 | /* frameStructure */ |
| 6960 | offset = dissect_frame_structure(section_tree, tvb, offset, |
| 6961 | subframeId, slotId); |
| 6962 | |
| 6963 | /* cpLength */ |
| 6964 | proto_tree_add_item(section_tree, hf_oran_cpLength, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6965 | offset += 2; |
| 6966 | /* reserved (8 bits) */ |
| 6967 | add_reserved_field(section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 6968 | offset += 1; |
| 6969 | break; |
| 6970 | |
| 6971 | case SEC_C_NORMAL: /* Section Type 1 */ |
| 6972 | case SEC_C_UE_SCHED: /* Section Type 5 */ |
| 6973 | /* udCompHdr */ |
| 6974 | offset = dissect_udcomphdr(tvb, pinfo, section_tree, offset, |
| 6975 | true1, direction==1 || pref_override_ul_compression, /* ignore for DL or if using mplane for UL settings */ |
| 6976 | &bit_width, &comp_meth, &comp_meth_ti, tap_info); |
| 6977 | /* reserved (8 bits) */ |
| 6978 | add_reserved_field(section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 6979 | offset += 1; |
| 6980 | break; |
| 6981 | |
| 6982 | case SEC_C_SLOT_CONTROL: /* Section Type 4 */ |
| 6983 | break; |
| 6984 | |
| 6985 | case SEC_C_PRACH: /* Section Type 3 */ |
| 6986 | /* timeOffset */ |
| 6987 | proto_tree_add_item(section_tree, hf_oran_timeOffset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6988 | offset += 2; |
| 6989 | /* frameStructure */ |
| 6990 | offset = dissect_frame_structure(section_tree, tvb, offset, |
| 6991 | subframeId, slotId); |
| 6992 | /* cpLength */ |
| 6993 | proto_tree_add_item(section_tree, hf_oran_cpLength, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 6994 | offset += 2; |
| 6995 | /* udCompHdr */ |
| 6996 | offset = dissect_udcomphdr(tvb, pinfo, section_tree, offset, |
| 6997 | true1, direction==1 || pref_override_ul_compression, /* ignore for DL or if using mplane for UL settings */ |
| 6998 | &bit_width, &comp_meth, &comp_meth_ti, tap_info); |
| 6999 | break; |
| 7000 | |
| 7001 | case SEC_C_CH_INFO: /* Section Type 6 */ |
| 7002 | /* numberOfUEs */ |
| 7003 | proto_tree_add_item_ret_uint(section_tree, hf_oran_numberOfUEs, tvb, offset, 1, ENC_NA0x00000000, &num_ues); |
| 7004 | offset += 1; |
| 7005 | /* ciCompHdr (was reserved) */ |
| 7006 | offset = dissect_cicomphdr(tvb, pinfo, section_tree, offset, &bit_width, &ci_comp_method, &ci_comp_opt); |
| 7007 | |
| 7008 | /* Number of sections may not be filled in (at all, or correctly), so set to the number of UEs. |
| 7009 | The data entries are per-UE... they don't have a sectionID, but they could have section extensions... */ |
| 7010 | if (nSections == 0 || num_ues > nSections) { |
| 7011 | nSections = num_ues; |
| 7012 | } |
| 7013 | break; |
| 7014 | |
| 7015 | case SEC_C_RSVD2: |
| 7016 | break; |
| 7017 | |
| 7018 | case SEC_C_LAA: /* Section Type 7 */ |
| 7019 | add_reserved_field(section_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 7020 | offset += 2; |
| 7021 | break; |
| 7022 | |
| 7023 | case SEC_C_ACK_NACK_FEEDBACK: /* Section Type 8 */ |
| 7024 | /* numberOfAcks (1 byte) */ |
| 7025 | proto_tree_add_item_ret_uint(section_tree, hf_oran_number_of_acks, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &number_of_acks); |
| 7026 | offset += 1; |
| 7027 | /* numberOfNacks (1 byte) */ |
| 7028 | proto_tree_add_item_ret_uint(section_tree, hf_oran_number_of_nacks, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &number_of_nacks); |
| 7029 | offset += 1; |
| 7030 | |
| 7031 | /* The requests were sent by the O-DU, in the other direction (or the same, if sent by the O-DU) */ |
| 7032 | flow_state_t *request_state = lookup_flow(pinfo, eAxC, ORAN_C_PLANE0, true1); |
| 7033 | if (!request_state || !request_state->ack_nack_requests) { |
| 7034 | request_state = state; |
| 7035 | } |
| 7036 | |
| 7037 | /* Show ACKs and NACKs. For both, try to link back to request. */ |
| 7038 | for (unsigned int n=1; n <= number_of_acks; n++) { |
| 7039 | uint32_t ackid; |
| 7040 | proto_item *ack_ti; |
| 7041 | ack_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_ackid, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ackid); |
| 7042 | offset += 2; |
| 7043 | |
| 7044 | /* Look up request table in state (which really should be set by now, but test anyway). */ |
| 7045 | if (request_state && request_state->ack_nack_requests) { |
| 7046 | ack_nack_request_t *request = wmem_tree_lookup32(request_state->ack_nack_requests, ackid); |
| 7047 | if (!request && state && state->ack_nack_requests) { |
| 7048 | request = wmem_tree_lookup32(state->ack_nack_requests, ackid); |
| 7049 | } |
| 7050 | if (request != NULL((void*)0)) { |
| 7051 | /* On first pass, update with this response */ |
| 7052 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 7053 | request->response_frame_number = pinfo->num; |
| 7054 | request->response_frame_time = pinfo->abs_ts; |
| 7055 | } |
| 7056 | |
| 7057 | /* Show request details */ |
| 7058 | show_link_to_acknack_request(section_tree, tvb, pinfo, request); |
| 7059 | } |
| 7060 | else { |
| 7061 | /* Request not found */ |
| 7062 | expert_add_info_format(pinfo, ack_ti, &ei_oran_acknack_no_request, |
| 7063 | "Response for ackId=%u received, but no request found", |
| 7064 | ackid); |
| 7065 | } |
| 7066 | } |
| 7067 | } |
| 7068 | for (unsigned int m=1; m <= number_of_nacks; m++) { |
| 7069 | uint32_t nackid; |
| 7070 | proto_item *nack_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_nackid, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &nackid); |
| 7071 | offset += 2; |
| 7072 | |
| 7073 | expert_add_info_format(pinfo, nack_ti, &ei_oran_st8_nackid, |
| 7074 | "Received Nack for ackNackId=%u", |
| 7075 | nackid); |
| 7076 | |
| 7077 | /* Look up request table in state. */ |
| 7078 | if (request_state && request_state->ack_nack_requests) { |
| 7079 | ack_nack_request_t *request = wmem_tree_lookup32(request_state->ack_nack_requests, nackid); |
| 7080 | if (!request && state && state->ack_nack_requests) { |
| 7081 | request = wmem_tree_lookup32(state->ack_nack_requests, nackid); |
| 7082 | } |
| 7083 | if (request) { |
| 7084 | /* On first pass, update with this response */ |
| 7085 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 7086 | request->response_frame_number = pinfo->num; |
| 7087 | request->response_frame_time = pinfo->abs_ts; |
| 7088 | } |
| 7089 | |
| 7090 | /* Show request details */ |
| 7091 | show_link_to_acknack_request(section_tree, tvb, pinfo, request); |
| 7092 | } |
| 7093 | else { |
| 7094 | /* Request not found */ |
| 7095 | expert_add_info_format(pinfo, nack_ti, &ei_oran_acknack_no_request, |
| 7096 | "Response for nackId=%u received, but no request found", |
| 7097 | nackid); |
| 7098 | } |
| 7099 | } |
| 7100 | } |
| 7101 | break; |
| 7102 | |
| 7103 | case SEC_C_SINR_REPORTING: /* Section Type 9 */ |
| 7104 | { |
| 7105 | /* numSinrPerPrb (3 bits) */ |
| 7106 | proto_item *nspp_ti; |
| 7107 | nspp_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_num_sinr_per_prb_st9, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &num_sinr_per_prb); |
| 7108 | switch (num_sinr_per_prb) { |
| 7109 | case 0: |
| 7110 | num_sinr_per_prb = 1; break; |
| 7111 | case 1: |
| 7112 | num_sinr_per_prb = 2; break; |
| 7113 | case 2: |
| 7114 | num_sinr_per_prb = 3; break; |
| 7115 | case 3: |
| 7116 | num_sinr_per_prb = 4; break; |
| 7117 | case 4: |
| 7118 | num_sinr_per_prb = 6; break; |
| 7119 | case 5: |
| 7120 | num_sinr_per_prb = 12; break; |
| 7121 | |
| 7122 | default: |
| 7123 | proto_item_append_text(nspp_ti, " (invalid)"); |
| 7124 | expert_add_info_format(pinfo, nspp_ti, &ei_oran_num_sinr_per_prb_unknown, |
| 7125 | "Invalid numSinrPerPrb value (%u)", |
| 7126 | num_sinr_per_prb); |
| 7127 | num_sinr_per_prb = 1; |
| 7128 | } |
| 7129 | |
| 7130 | /* oruControlSinrSlotMaskId (5 bits) */ |
| 7131 | proto_tree_add_item(section_tree, hf_oran_oru_control_sinr_slot_mask_id, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7132 | offset += 1; |
| 7133 | /* reserved (8 bits) */ |
| 7134 | add_reserved_field(section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 7135 | offset += 1; |
| 7136 | break; |
| 7137 | } |
| 7138 | |
| 7139 | case SEC_C_RRM_MEAS_REPORTS: /* Section Type 10 */ |
| 7140 | case SEC_C_REQUEST_RRM_MEAS: /* Section Type 11 */ |
| 7141 | case SEC_C_SRS_DESCRIPTION: /* Section Type 12 */ |
| 7142 | case SEC_C_RRM_MEAS_REPORTS_NON_TIMING: /* Section Type 13 */ |
| 7143 | case SEC_C_CO_SCHEDULING_INFO: /* Section Type 14 */ |
| 7144 | /* reserved (16 bits) */ |
| 7145 | add_reserved_field(section_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 7146 | offset += 2; |
| 7147 | break; |
| 7148 | }; |
| 7149 | |
| 7150 | /* Update udCompHdr details in state for UL U-Plane */ |
| 7151 | if (state && direction==0 && !PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 7152 | switch (sectionType) { |
| 7153 | case SEC_C_NORMAL: /* Section Type 1 */ |
| 7154 | case SEC_C_PRACH: /* Section Type 3 */ |
| 7155 | case SEC_C_UE_SCHED: /* Section Type 5 */ |
| 7156 | state->ul_ud_comp_hdr_set = true1; |
| 7157 | state->ul_ud_comp_hdr_bit_width = bit_width; |
| 7158 | state->ul_ud_comp_hdr_compression = comp_meth; |
| 7159 | state->ul_ud_comp_hdr_frame = pinfo->num; |
| 7160 | break; |
| 7161 | default: |
| 7162 | break; |
| 7163 | } |
| 7164 | } |
| 7165 | |
| 7166 | |
| 7167 | proto_item_append_text(sectionHeading, "%d, %s, frameId: %d, subframeId: %d, slotId: %d, startSymbolId: %d", |
| 7168 | sectionType, val_to_str_const(direction, data_direction_vals, "Unknown"), |
| 7169 | frameId, subframeId, slotId, startSymbolId); |
| 7170 | if (nSections) { |
| 7171 | proto_item_append_text(sectionHeading, ", numberOfSections=%u", nSections); |
| 7172 | } |
| 7173 | |
| 7174 | write_pdu_label_and_info(protocol_item, NULL((void*)0), pinfo, ", Type: %2d %s", sectionType, |
| 7175 | rval_to_str_const(sectionType, section_types_short, "Unknown")); |
| 7176 | |
| 7177 | /* Set actual length of C-Plane section header */ |
| 7178 | proto_item_set_len(section_tree, offset - section_tree_offset); |
| 7179 | |
| 7180 | if (sectionType == SEC_C_ACK_NACK_FEEDBACK) { |
| 7181 | write_pdu_label_and_info(oran_tree, section_tree, pinfo, |
| 7182 | (st8_ready) ? " (Ready)" : " (ACK)"); |
| 7183 | } |
| 7184 | |
| 7185 | |
| 7186 | /* Section type 4 doesn't have normal sections, so deal with here before normal sections */ |
| 7187 | if (sectionType == SEC_C_SLOT_CONTROL) { |
| 7188 | /* numberOfST4Cmds */ |
| 7189 | uint32_t no_st4_cmds, st4_cmd_len, num_slots, ack_nack_req_id, st4_cmd_type; |
| 7190 | proto_item *no_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_number_of_st4_cmds, |
| 7191 | tvb, offset, 1, ENC_NA0x00000000, &no_st4_cmds); |
| 7192 | if (no_st4_cmds == 0) { |
| 7193 | expert_add_info(pinfo, no_ti, &ei_oran_st4_no_cmds); |
| 7194 | } |
| 7195 | offset += 1; |
| 7196 | |
| 7197 | /* reserved (1 byte) */ |
| 7198 | add_reserved_field(section_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 7199 | offset += 1; |
| 7200 | |
| 7201 | /* Loop over commands. Each has 8-byte common header, followed by cmd-specific payload */ |
| 7202 | proto_item *len_ti; |
| 7203 | for (uint32_t n=0; n < no_st4_cmds; n++) { |
| 7204 | /* Table 7.4.6-2: Section Type 4 Command common header format */ |
| 7205 | proto_item *hdr_ti = proto_tree_add_string_format(section_tree, hf_oran_st4_cmd_header, |
| 7206 | tvb, offset, 8, "", |
| 7207 | "Type 4 Command common header"); |
| 7208 | proto_tree *hdr_tree = proto_item_add_subtree(hdr_ti, ett_oran_st4_cmd_header); |
| 7209 | |
| 7210 | /* st4CmdType */ |
| 7211 | proto_tree_add_item_ret_uint(hdr_tree, hf_oran_st4_cmd_type, tvb, offset, 1, ENC_NA0x00000000, &st4_cmd_type); |
| 7212 | offset += 1; |
| 7213 | |
| 7214 | /* st4CmdLen */ |
| 7215 | len_ti = proto_tree_add_item_ret_uint(hdr_tree, hf_oran_st4_cmd_len, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &st4_cmd_len); |
| 7216 | if (st4_cmd_len == 0) { |
| 7217 | /* Meaning of 0 not yet defined (v15.00) */ |
| 7218 | proto_item_append_text(len_ti, " (reserved)"); |
| 7219 | expert_add_info(pinfo, len_ti, &ei_oran_st4_zero_len_cmd); |
| 7220 | } |
| 7221 | else { |
| 7222 | proto_item_append_text(len_ti, " (%u bytes)", st4_cmd_len*4); |
| 7223 | } |
| 7224 | offset += 2; |
| 7225 | |
| 7226 | /* numSlots */ |
| 7227 | proto_item *slots_ti = proto_tree_add_item_ret_uint(hdr_tree, hf_oran_st4_cmd_num_slots, tvb, offset, 1, ENC_NA0x00000000, &num_slots); |
| 7228 | if (num_slots == 0) { |
| 7229 | proto_item_append_text(slots_ti, " (until changed)"); |
| 7230 | } |
| 7231 | offset += 1; |
| 7232 | |
| 7233 | /* ackNackReqId */ |
| 7234 | proto_item *ack_nack_req_id_ti; |
| 7235 | ack_nack_req_id_ti = proto_tree_add_item_ret_uint(hdr_tree, hf_oran_st4_cmd_ack_nack_req_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ack_nack_req_id); |
| 7236 | offset += 2; |
| 7237 | if (ack_nack_req_id == 0) { |
| 7238 | proto_item_append_text(ack_nack_req_id_ti, " (no Section type 8 response expected)"); |
| 7239 | } |
| 7240 | |
| 7241 | /* reserved (16 bits) */ |
| 7242 | add_reserved_field(hdr_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 7243 | offset += 2; |
| 7244 | |
| 7245 | /* Set common header summary */ |
| 7246 | proto_item_append_text(hdr_ti, " (cmd=%s, len=%u, slots=%u, ackNackReqId=%u)", |
| 7247 | rval_to_str_const(st4_cmd_type, st4_cmd_type_vals, "Unknown"), |
| 7248 | st4_cmd_len, num_slots, ack_nack_req_id); |
| 7249 | |
| 7250 | col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)", |
| 7251 | rval_to_str_const(st4_cmd_type, st4_cmd_type_vals, "Unknown")); |
| 7252 | |
| 7253 | |
| 7254 | /* Subtree for this command body */ |
| 7255 | proto_item *command_ti = proto_tree_add_string_format(section_tree, hf_oran_st4_cmd, |
| 7256 | tvb, offset, 0, "", |
| 7257 | "Type 4 Command (%s)", rval_to_str_const(st4_cmd_type, st4_cmd_type_vals, "Unknown")); |
| 7258 | proto_tree *command_tree = proto_item_add_subtree(command_ti, ett_oran_st4_cmd); |
| 7259 | |
| 7260 | unsigned command_start_offset = offset; |
| 7261 | |
| 7262 | /* Check fields compatible with chosen command. */ |
| 7263 | if (st4_cmd_type==1) { |
| 7264 | if (num_slots != 0) { |
| 7265 | /* "the value of numSlots should be set to zero for this command type" */ |
| 7266 | expert_add_info_format(pinfo, slots_ti, &ei_oran_numslots_not_zero, |
| 7267 | "numSlots should be zero for ST4 command 1 - found %u", |
| 7268 | num_slots); |
| 7269 | } |
| 7270 | } |
| 7271 | |
| 7272 | if (st4_cmd_type==3 || st4_cmd_type==4) { |
| 7273 | if (startSymbolId != 0) { |
| 7274 | /* "expected reception window for the commands is the symbol zero reception window" */ |
| 7275 | expert_add_info_format(pinfo, ssid_ti, &ei_oran_start_symbol_id_not_zero, |
| 7276 | "startSymbolId should be zero for ST4 commands 3&4 - found %u", |
| 7277 | startSymbolId); |
| 7278 | } |
| 7279 | } |
| 7280 | |
| 7281 | /* Add format for this command */ |
| 7282 | switch (st4_cmd_type) { |
| 7283 | case 1: /* TIME_DOMAIN_BEAM_CONFIG */ |
| 7284 | { |
| 7285 | bool_Bool disable_tdbfns; |
| 7286 | uint32_t bfwcomphdr_iq_width, bfwcomphdr_comp_meth; |
| 7287 | |
| 7288 | /* Hidden filter for bf */ |
| 7289 | proto_item *bf_ti = proto_tree_add_item(command_tree, hf_oran_bf, tvb, 0, 0, ENC_NA0x00000000); |
| 7290 | PROTO_ITEM_SET_HIDDEN(bf_ti)proto_item_set_hidden((bf_ti)); |
| 7291 | |
| 7292 | /* reserved (2 bits) */ |
| 7293 | add_reserved_field(command_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 7294 | /* symbolMask (14 bits) */ |
| 7295 | uint32_t symbol_mask; |
| 7296 | proto_item *symbol_mask_ti; |
| 7297 | offset = dissect_symbolmask(tvb, command_tree, offset, &symbol_mask, &symbol_mask_ti); |
| 7298 | /* Symbol bits before 'startSymbolId' in Section Type 4 common header should be set to 0 by O-DU and shall be ignored by O-RU */ |
| 7299 | /* lsb is symbol 0 */ |
| 7300 | for (unsigned s=0; s < 14; s++) { |
| 7301 | if ((symbol_mask & (1 << s)) && (startSymbolId > s)) { |
| 7302 | proto_item_append_text(symbol_mask_ti, " (startSymbolId is %u, so some lower symbol bits ignored!)", startSymbolId); |
| 7303 | expert_add_info(pinfo, symbol_mask_ti, &ei_oran_start_symbol_id_bits_ignored); |
| 7304 | break; |
| 7305 | } |
| 7306 | } |
| 7307 | |
| 7308 | /* disableTDBFNs (1 bit) */ |
| 7309 | proto_tree_add_item_ret_boolean(command_tree, hf_oran_disable_tdbfns, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &disable_tdbfns); |
| 7310 | |
| 7311 | /* tdBeamNum (15 bits) */ |
| 7312 | proto_tree_add_item(command_tree, hf_oran_td_beam_num, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7313 | offset += 2; |
| 7314 | |
| 7315 | /* bfwCompHdr (2 subheaders - bfwIqWidth and bfwCompMeth)*/ |
| 7316 | offset = dissect_bfwCompHdr(tvb, command_tree, offset, |
| 7317 | &bfwcomphdr_iq_width, &bfwcomphdr_comp_meth, &comp_meth_ti); |
| 7318 | /* reserved (3 bytes) */ |
| 7319 | proto_tree_add_bits_item(command_tree, hf_oran_reserved, tvb, offset*8, 24, ENC_BIG_ENDIAN0x00000000); |
| 7320 | offset += 3; |
| 7321 | |
| 7322 | if (disable_tdbfns) { |
| 7323 | /* No beamnum information to show so get out. */ |
| 7324 | break; |
| 7325 | } |
| 7326 | |
| 7327 | /* Read beam entries until reach end of command length */ |
| 7328 | while ((offset - command_start_offset) < (st4_cmd_len * 4)) { |
| 7329 | /* Stop at the padding (fewer than 4 zero bytes) at the end of the command. |
| 7330 | An entry with BFWs does not fit there. */ |
| 7331 | unsigned remaining = command_start_offset + (st4_cmd_len * 4) - offset; |
| 7332 | bool_Bool padding = (remaining < 4); |
| 7333 | for (unsigned b=0; padding && b < remaining; b++) { |
| 7334 | padding = (tvb_get_uint8(tvb, offset+b) == 0); |
| 7335 | } |
| 7336 | if (padding) { |
| 7337 | break; |
| 7338 | } |
| 7339 | |
| 7340 | /* disableTDBFWs (1 bit) */ |
| 7341 | bool_Bool disable_tdbfws; |
| 7342 | proto_tree_add_item_ret_boolean(command_tree, hf_oran_disable_tdbfws, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &disable_tdbfws); |
| 7343 | |
| 7344 | /* tdBeamNum (15 bits) */ |
| 7345 | proto_tree_add_item(command_tree, hf_oran_td_beam_num, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7346 | offset += 2; |
| 7347 | |
| 7348 | /* Showing BFWs? */ |
| 7349 | if (!disable_tdbfws) { |
| 7350 | |
| 7351 | /* bfwCompParam */ |
| 7352 | unsigned exponent = 0; |
| 7353 | bool_Bool supported = false0; |
| 7354 | unsigned num_trx_entries; |
| 7355 | uint16_t *trx_entries; |
| 7356 | offset = dissect_bfwCompParam(tvb, command_tree, pinfo, offset, comp_meth_ti, |
| 7357 | &bfwcomphdr_comp_meth, &exponent, &supported, |
| 7358 | &num_trx_entries, &trx_entries); |
| 7359 | |
| 7360 | /* Antenna count from preference */ |
| 7361 | unsigned num_trx = pref_num_bf_antennas; |
| 7362 | int bit_offset = offset*8; |
| 7363 | |
| 7364 | for (unsigned trx=0; trx < num_trx; trx++) { |
| 7365 | /* Create antenna subtree */ |
| 7366 | int bfw_offset = bit_offset / 8; |
| 7367 | proto_item *bfw_ti = proto_tree_add_string_format(command_tree, hf_oran_bfw, |
| 7368 | tvb, bfw_offset, 0, "", "TRX %3u: (", trx+1); |
| 7369 | proto_tree *bfw_tree = proto_item_add_subtree(bfw_ti, ett_oran_bfw); |
| 7370 | |
| 7371 | /* I value */ |
| 7372 | /* Get bits, and convert to float. */ |
| 7373 | uint32_t bits = tvb_get_bits32(tvb, bit_offset, bfwcomphdr_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 7374 | float value = decompress_value(bits, bfwcomphdr_comp_meth, bfwcomphdr_iq_width, exponent, NULL((void*)0) /* no ModCompr*/, 0 /* RE */); |
| 7375 | /* Add to tree. */ |
| 7376 | proto_tree_add_float(bfw_tree, hf_oran_bfw_i, tvb, bit_offset/8, |
| 7377 | (bfwcomphdr_iq_width+7)/8, value); |
| 7378 | bit_offset += bfwcomphdr_iq_width; |
| 7379 | proto_item_append_text(bfw_ti, "I=%f ", value); |
| 7380 | |
| 7381 | /* Leave a gap between I and Q values */ |
| 7382 | proto_item_append_text(bfw_ti, " "); |
| 7383 | |
| 7384 | /* Q value */ |
| 7385 | /* Get bits, and convert to float. */ |
| 7386 | bits = tvb_get_bits32(tvb, bit_offset, bfwcomphdr_iq_width, ENC_BIG_ENDIAN0x00000000); |
| 7387 | value = decompress_value(bits, bfwcomphdr_comp_meth, bfwcomphdr_iq_width, exponent, NULL((void*)0) /* no ModCompr*/, 0 /* RE */); |
| 7388 | /* Add to tree. */ |
| 7389 | proto_tree_add_float(bfw_tree, hf_oran_bfw_q, tvb, bit_offset/8, |
| 7390 | (bfwcomphdr_iq_width+7)/8, value); |
| 7391 | bit_offset += bfwcomphdr_iq_width; |
| 7392 | proto_item_append_text(bfw_ti, "Q=%f", value); |
| 7393 | |
| 7394 | proto_item_append_text(bfw_ti, ")"); |
| 7395 | proto_item_set_len(bfw_ti, (bit_offset+7)/8 - bfw_offset); |
| 7396 | } |
| 7397 | /* Need to round to next byte */ |
| 7398 | offset = (bit_offset+7)/8; |
| 7399 | } |
| 7400 | } |
| 7401 | break; |
| 7402 | } |
| 7403 | case 2: /* TDD_CONFIG_PATTERN */ |
| 7404 | /* reserved (2 bits) */ |
| 7405 | add_reserved_field(command_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 7406 | /* dirPattern (14 bits) */ |
| 7407 | proto_tree_add_item(command_tree, hf_oran_dir_pattern, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7408 | offset += 2; |
| 7409 | |
| 7410 | /* reserved (2 bits) */ |
| 7411 | add_reserved_field(command_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 7412 | /* guardPattern (14 bits) */ |
| 7413 | proto_tree_add_item(command_tree, hf_oran_guard_pattern, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7414 | offset += 2; |
| 7415 | break; |
| 7416 | |
| 7417 | case 3: /* TRX_CONTROL */ |
| 7418 | case 5: /* TRX_CONTROL_BIDIR */ |
| 7419 | { |
| 7420 | /* Only allowed cmdScope is ARRAY-COMMAND */ |
| 7421 | if (cmd_scope != 0) { |
| 7422 | expert_add_info(pinfo, command_tree, &ei_oran_trx_control_cmd_scope); |
| 7423 | } |
| 7424 | |
| 7425 | /* reserved (2 bits) */ |
| 7426 | add_reserved_field(command_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 7427 | /* log2MaskBits (4 bits) */ |
| 7428 | unsigned log2maskbits; |
| 7429 | proto_tree_add_item_ret_uint(command_tree, hf_oran_log2maskbits, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &log2maskbits); |
| 7430 | /* sleepMode (2 bits) */ |
| 7431 | uint32_t sleep_mode; |
| 7432 | proto_tree_add_item_ret_uint(command_tree, hf_oran_sleepmode_trx, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &sleep_mode); |
| 7433 | offset += 1; |
| 7434 | |
| 7435 | /* reserved (4 bits) */ |
| 7436 | add_reserved_field(command_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 7437 | /* numSlotsExt (20 bits) */ |
| 7438 | uint32_t num_slots_ext; |
| 7439 | proto_item *num_slots_ext_ti = proto_tree_add_item_ret_uint(command_tree, hf_oran_num_slots_ext, tvb, offset, 3, ENC_BIG_ENDIAN0x00000000, &num_slots_ext); |
| 7440 | if (num_slots==0 && num_slots_ext==0) { |
| 7441 | proto_item_append_text(num_slots_ext_ti, " (undefined sleep period)"); |
| 7442 | } |
| 7443 | else { |
| 7444 | /* Time should be rounded up according to SCS */ |
| 7445 | float total = (float)(num_slots + num_slots_ext); |
| 7446 | /* From table 7.5.2.13-3 */ |
| 7447 | const float slot_length_by_scs[16] = { 1000, 500, 250, 125, 62.5, 31.25, |
| 7448 | 0, 0, 0, 0, 0, 0, /* reserved */ |
| 7449 | 1000, 1000, 1000, 1000 }; |
| 7450 | float slot_length = slot_length_by_scs[scs]; |
| 7451 | /* Only using valid SCS. TODO: is this test ok? */ |
| 7452 | if (slot_length != 0) { |
| 7453 | /* Round up to next slot */ |
| 7454 | total = ((int)(total / slot_length) + 1) * slot_length; |
| 7455 | proto_item_append_text(num_slots_ext_ti, " (defined sleep period of %f us)", total); |
| 7456 | } |
| 7457 | } |
| 7458 | offset += 3; |
| 7459 | |
| 7460 | /* reserved (2 bits) */ |
| 7461 | add_reserved_field(command_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 7462 | |
| 7463 | /* symbolMask (14 bits) */ |
| 7464 | uint32_t symbol_mask; |
| 7465 | proto_item *sm_ti; |
| 7466 | offset = dissect_symbolmask(tvb, command_tree, offset, &symbol_mask, &sm_ti); |
| 7467 | if (symbol_mask == 0x0) { |
| 7468 | proto_item_append_text(sm_ti, " (wake)"); |
| 7469 | col_append_str(pinfo->cinfo, COL_INFO, " (wake)"); |
| 7470 | } |
| 7471 | else if (symbol_mask == 0x3fff) { |
| 7472 | proto_item_append_text(sm_ti, " (sleep)"); |
| 7473 | col_append_str(pinfo->cinfo, COL_INFO, " (sleep)"); |
| 7474 | } |
| 7475 | else { |
| 7476 | expert_add_info_format(pinfo, sm_ti, &ei_oran_bad_symbolmask, |
| 7477 | "For non-zero sleepMode (%u), symbolMask should be 0x0 or 0x3fff - found 0x%05x", |
| 7478 | sleep_mode, symbol_mask); |
| 7479 | } |
| 7480 | |
| 7481 | /* antMask (16-2048 bits). Size is lookup from log2MaskBits enum.. */ |
| 7482 | unsigned antmask_length = 2; |
| 7483 | if (log2maskbits >= 4) { |
| 7484 | antmask_length = (1 << log2maskbits) / 8; |
| 7485 | } |
| 7486 | proto_item *ant_mask_ti = proto_tree_add_item(command_tree, hf_oran_antMask_trx_control, tvb, offset, antmask_length, ENC_NA0x00000000); |
| 7487 | /* show count */ |
| 7488 | unsigned antenna_count = 0; |
| 7489 | for (unsigned b=0; b < antmask_length; b++) { |
| 7490 | uint8_t byte = tvb_get_uint8(tvb, offset+b); |
| 7491 | for (unsigned bit=0; bit < 8; bit++) { |
| 7492 | if ((1 << bit) & byte) { |
| 7493 | antenna_count++; |
| 7494 | } |
| 7495 | } |
| 7496 | } |
| 7497 | proto_item_append_text(ant_mask_ti, " (%u antennas)", antenna_count); |
| 7498 | offset += antmask_length; |
| 7499 | |
| 7500 | /* Pad to next 4-byte boundary */ |
| 7501 | offset = WS_ROUNDUP_4(offset)(((offset) + ((unsigned)(4U-1U))) & (~((unsigned)(4U-1U)) )); |
| 7502 | break; |
| 7503 | } |
| 7504 | |
| 7505 | case 4: /* ASM (advanced sleep mode) */ |
| 7506 | /* reserved (2+4=6 bits) */ |
| 7507 | add_reserved_field(command_tree, hf_oran_reserved_6bits, tvb, offset, 1); |
| 7508 | /* sleepMode (2 bits) */ |
| 7509 | uint32_t sleep_mode; |
| 7510 | proto_tree_add_item_ret_uint(command_tree, hf_oran_sleepmode_asm, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &sleep_mode); |
| 7511 | offset += 1; |
| 7512 | |
| 7513 | /* reserved (4 bits) */ |
| 7514 | add_reserved_field(command_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 7515 | /* numSlotsExt (20 bits) */ |
| 7516 | proto_tree_add_item(command_tree, hf_oran_num_slots_ext, tvb, offset, 3, ENC_BIG_ENDIAN0x00000000); |
| 7517 | offset += 3; |
| 7518 | |
| 7519 | /* reserved (2 bits) */ |
| 7520 | add_reserved_field(command_tree, hf_oran_reserved_2bits, tvb, offset, 1); |
| 7521 | /* symbolMask (14 bits) */ |
| 7522 | uint32_t symbol_mask; |
| 7523 | proto_item *sm_ti; |
| 7524 | offset = dissect_symbolmask(tvb, command_tree, offset, &symbol_mask, &sm_ti); |
| 7525 | if (symbol_mask == 0x0) { |
| 7526 | proto_item_append_text(sm_ti, " (wake)"); |
| 7527 | col_append_str(pinfo->cinfo, COL_INFO, " (wake)"); |
| 7528 | } |
| 7529 | else if (symbol_mask == 0x3fff) { |
| 7530 | proto_item_append_text(sm_ti, " (sleep)"); |
| 7531 | col_append_str(pinfo->cinfo, COL_INFO, " (sleep)"); |
| 7532 | } |
| 7533 | else { |
| 7534 | expert_add_info_format(pinfo, sm_ti, &ei_oran_bad_symbolmask, |
| 7535 | "For non-zero sleepMode (%u), symbolMask should be 0x0 or 0x3fff - found 0x%05x", |
| 7536 | sleep_mode, symbol_mask); |
| 7537 | } |
| 7538 | |
| 7539 | /* reserved (2 bytes) */ |
| 7540 | add_reserved_field(command_tree, hf_oran_reserved_16bits, tvb, offset, 2); |
| 7541 | offset += 2; |
| 7542 | break; |
| 7543 | |
| 7544 | case 6: /* MAX_POWER_CONTROL */ |
| 7545 | /* maxPrwLvllnd (8 bits) */ |
| 7546 | proto_tree_add_item(command_tree, hf_oran_max_pwr_lvl_ind, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7547 | offset += 1; |
| 7548 | /* arrayCarrierMaxPwrReduction (16 bits) - should be shown in dB */ |
| 7549 | proto_tree_add_item(command_tree, hf_oran_array_carrier_max_pwr_reduction, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7550 | offset += 2; |
| 7551 | /* reserved (8 bits) */ |
| 7552 | add_reserved_field(command_tree, hf_oran_reserved_8bits, tvb, offset, 1); |
| 7553 | offset += 1; |
| 7554 | break; |
| 7555 | |
| 7556 | default: |
| 7557 | /* Error! */ |
| 7558 | expert_add_info_format(pinfo, len_ti, &ei_oran_st4_unknown_cmd, |
| 7559 | "Dissected ST4 command (%u) not recognised", |
| 7560 | st4_cmd_type); |
| 7561 | break; |
| 7562 | } |
| 7563 | |
| 7564 | /* Check apparent size of padding (0-3 bytes ok) */ |
| 7565 | long padding_remaining = command_start_offset + (st4_cmd_len * 4) - offset; |
| 7566 | if (padding_remaining > 3) { |
| 7567 | expert_add_info_format(pinfo, len_ti, &ei_oran_st4_wrong_len_cmd, |
| 7568 | "Dissected ST4 command does not match signalled st4CmdLen - set to %u (%u bytes) but dissected %u bytes", |
| 7569 | st4_cmd_len, st4_cmd_len*4, offset-command_start_offset); |
| 7570 | } |
| 7571 | |
| 7572 | /* Advance by signalled length (needs to be aligned on 4-byte boundary) */ |
| 7573 | offset = command_start_offset + (st4_cmd_len * 4); |
| 7574 | |
| 7575 | /* Set end of command tree */ |
| 7576 | proto_item_set_end(command_ti, tvb, offset); |
| 7577 | |
| 7578 | if (ack_nack_req_id != 0 && state && state->ack_nack_requests) { |
| 7579 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 7580 | /* Add this request into conversation state on first pass */ |
| 7581 | ack_nack_request_t *request_details = wmem_new0(wmem_file_scope(), ack_nack_request_t)((ack_nack_request_t*)wmem_alloc0((wmem_file_scope()), sizeof (ack_nack_request_t))); |
| 7582 | request_details->request_frame_number = pinfo->num; |
| 7583 | request_details->request_frame_time = pinfo->abs_ts; |
| 7584 | request_details->requestType = ST4Cmd1+st4_cmd_type-1; |
| 7585 | |
| 7586 | wmem_tree_insert32(state->ack_nack_requests, |
| 7587 | ack_nack_req_id, |
| 7588 | request_details); |
| 7589 | } |
| 7590 | else { |
| 7591 | /* On later passes, try to link forward to ST8 response */ |
| 7592 | ack_nack_request_t *response = wmem_tree_lookup32(state->ack_nack_requests, |
| 7593 | ack_nack_req_id); |
| 7594 | if (response) { |
| 7595 | show_link_to_acknack_response(section_tree, tvb, pinfo, response); |
| 7596 | } |
| 7597 | } |
| 7598 | } |
| 7599 | } |
| 7600 | } |
| 7601 | /* LAA doesn't have sections either.. */ |
| 7602 | else if (sectionType == SEC_C_LAA) { /* Section Type 7 */ |
| 7603 | /* 7.2.5 Table 6.4-6 */ |
| 7604 | unsigned mcot; |
| 7605 | proto_item *mcot_ti; |
| 7606 | |
| 7607 | /* laaMsgType */ |
| 7608 | uint32_t laa_msg_type; |
| 7609 | proto_item *laa_msg_type_ti; |
| 7610 | laa_msg_type_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_laaMsgType, tvb, offset, 1, ENC_NA0x00000000, &laa_msg_type); |
| 7611 | /* laaMsgLen */ |
| 7612 | uint32_t laa_msg_len; |
| 7613 | proto_item *len_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_laaMsgLen, tvb, offset, 1, ENC_NA0x00000000, &laa_msg_len); |
| 7614 | proto_item_append_text(len_ti, " (%u bytes)", 4*laa_msg_len); |
| 7615 | if (laa_msg_len == 0) { |
| 7616 | proto_item_append_text(len_ti, " (reserved)"); |
| 7617 | } |
| 7618 | offset += 1; |
| 7619 | |
| 7620 | int payload_offset = offset; |
| 7621 | |
| 7622 | /* Payload */ |
| 7623 | switch (laa_msg_type) { |
| 7624 | case 0: |
| 7625 | /* LBT_PDSCH_REQ */ |
| 7626 | /* lbtHandle (16 bits) */ |
| 7627 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7628 | offset += 2; |
| 7629 | /* lbtOffset (10 bits) */ |
| 7630 | proto_tree_add_item(section_tree, hf_oran_lbtOffset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7631 | offset += 1; |
| 7632 | /* lbtMode (2 bits) */ |
| 7633 | proto_tree_add_bits_item(section_tree, hf_oran_lbtMode, tvb, offset*8+2, 2, ENC_BIG_ENDIAN0x00000000); |
| 7634 | /* reserved (1 bit) */ |
| 7635 | add_reserved_field(section_tree, hf_oran_reserved_bit4, tvb, offset, 1); |
| 7636 | /* lbtDeferFactor (3 bits) */ |
| 7637 | proto_tree_add_item(section_tree, hf_oran_lbtDeferFactor, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7638 | offset += 1; |
| 7639 | /* lbtBackoffCounter (10 bits) */ |
| 7640 | proto_tree_add_item(section_tree, hf_oran_lbtBackoffCounter, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7641 | offset += 1; |
| 7642 | /* MCOT (4 bits) */ |
| 7643 | mcot_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_MCOT, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000, &mcot); |
| 7644 | if (mcot<1 || mcot>10) { |
| 7645 | proto_item_append_text(mcot_ti, " (should be in range 1-10!)"); |
| 7646 | expert_add_info_format(pinfo, mcot_ti, &ei_oran_mcot_out_of_range, |
| 7647 | "MCOT seen with value %u (must be 1-10)", mcot); |
| 7648 | |
| 7649 | } |
| 7650 | /* reserved (10 bits) */ |
| 7651 | proto_tree_add_bits_item(section_tree, hf_oran_reserved, tvb, (offset*8)+6, 10, ENC_BIG_ENDIAN0x00000000); |
| 7652 | break; |
| 7653 | case 1: |
| 7654 | /* LBT_DRS_REQ */ |
| 7655 | /* lbtHandle (16 bits) */ |
| 7656 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7657 | offset += 2; |
| 7658 | /* lbtOffset (10 bits) */ |
| 7659 | proto_tree_add_item(section_tree, hf_oran_lbtOffset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7660 | offset += 1; |
| 7661 | /* lbtMode (2 bits) */ |
| 7662 | proto_tree_add_bits_item(section_tree, hf_oran_lbtMode, tvb, offset*8+2, 2, ENC_BIG_ENDIAN0x00000000); |
| 7663 | /* reserved (28 bits) */ |
| 7664 | proto_tree_add_bits_item(section_tree, hf_oran_reserved, tvb, (offset*8)+4, 28, ENC_BIG_ENDIAN0x00000000); |
| 7665 | break; |
| 7666 | case 2: |
| 7667 | /* LBT_PDSCH_RSP */ |
| 7668 | /* lbtHandle (16 bits) */ |
| 7669 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7670 | offset += 2; |
| 7671 | /* lbtPdschRes (2 bits) */ |
| 7672 | proto_tree_add_item(section_tree, hf_oran_lbtPdschRes, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7673 | /* inParSF (1 bit) */ |
| 7674 | proto_tree_add_item(section_tree, hf_oran_initialPartialSF, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7675 | /* sfStatus (1 bit) */ |
| 7676 | proto_tree_add_item(section_tree, hf_oran_sfStatus, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7677 | /* sfnSf (12 bits) */ |
| 7678 | proto_tree_add_item(section_tree, hf_oran_sfnSfEnd, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7679 | offset += 2; |
| 7680 | /* reserved (24 bits) */ |
| 7681 | proto_tree_add_bits_item(section_tree, hf_oran_reserved, tvb, (offset*8), 24, ENC_BIG_ENDIAN0x00000000); |
| 7682 | break; |
| 7683 | case 3: |
| 7684 | /* LBT_DRS_RSP */ |
| 7685 | /* lbtHandle (16 bits) */ |
| 7686 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7687 | offset += 2; |
| 7688 | /* lbtDrsRes (1 bit) */ |
| 7689 | proto_tree_add_item(section_tree, hf_oran_lbtDrsRes, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7690 | /* reserved (7 bits) */ |
| 7691 | add_reserved_field(section_tree, hf_oran_reserved_last_7bits, tvb, offset, 1); |
| 7692 | break; |
| 7693 | case 4: |
| 7694 | /* LBT_Buffer_Error */ |
| 7695 | /* lbtHandle (16 bits) */ |
| 7696 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7697 | offset += 2; |
| 7698 | /* lbtBufErr (1 bit) */ |
| 7699 | proto_tree_add_item(section_tree, hf_oran_lbtBufErr, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7700 | /* reserved (7 bits) */ |
| 7701 | add_reserved_field(section_tree, hf_oran_reserved_last_7bits, tvb, offset, 1); |
| 7702 | break; |
| 7703 | case 5: |
| 7704 | /* LBT_CWCONFIG_REQ */ |
| 7705 | /* lbtHandle (16 bits) */ |
| 7706 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7707 | offset += 2; |
| 7708 | /* lbtCWConfig_H (8 bits) */ |
| 7709 | proto_tree_add_item(section_tree, hf_oran_lbtCWConfig_H, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7710 | offset += 1; |
| 7711 | /* lbtCWConfig_T (8 bits) */ |
| 7712 | proto_tree_add_item(section_tree, hf_oran_lbtCWConfig_T, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7713 | offset += 1; |
| 7714 | /* lbtMode (2 bits) */ |
| 7715 | proto_tree_add_bits_item(section_tree, hf_oran_lbtMode, tvb, offset*8, 2, ENC_BIG_ENDIAN0x00000000); |
| 7716 | /* lbtTrafficClass (3 bits) */ |
| 7717 | proto_tree_add_item(section_tree, hf_oran_lbtTrafficClass, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7718 | /* reserved (19 bits) */ |
| 7719 | proto_tree_add_bits_item(section_tree, hf_oran_reserved, tvb, (offset*8)+5, 19, ENC_BIG_ENDIAN0x00000000); |
| 7720 | break; |
| 7721 | case 6: |
| 7722 | /* LBT_CWCONFIG_RSP */ |
| 7723 | /* lbtHandle (16 bits) */ |
| 7724 | proto_tree_add_item(section_tree, hf_oran_lbtHandle, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000); |
| 7725 | offset += 2; |
| 7726 | /* lbtCWR_Rst (1 bit) */ |
| 7727 | proto_tree_add_item(section_tree, hf_oran_lbtCWR_Rst, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000); |
| 7728 | /* reserved (7 bits) */ |
| 7729 | add_reserved_field(section_tree, hf_oran_reserved_last_7bits, tvb, offset, 1); |
| 7730 | break; |
| 7731 | |
| 7732 | default: |
| 7733 | /* Unhandled! */ |
| 7734 | expert_add_info_format(pinfo, laa_msg_type_ti, &ei_oran_laa_msg_type_unsupported, |
| 7735 | "laaMsgType %u not supported by dissector", |
| 7736 | laa_msg_type); |
| 7737 | |
| 7738 | break; |
| 7739 | } |
| 7740 | /* For now just skip indicated length of bytes */ |
| 7741 | offset = payload_offset + 4*(laa_msg_len+1); |
| 7742 | } |
| 7743 | |
| 7744 | |
| 7745 | /* Dissect each C section */ |
| 7746 | for (uint32_t i = 0; i < nSections; ++i) { |
| 7747 | tvbuff_t *section_tvb = tvb_new_subset_remaining(tvb, offset); |
| 7748 | offset += dissect_oran_c_section(section_tvb, oran_tree, pinfo, state, sectionType, tap_info, |
| 7749 | protocol_item, |
| 7750 | subframeId, frameId, slotId, startSymbolId, |
| 7751 | bit_width, ci_comp_method, ci_comp_opt, |
| 7752 | num_sinr_per_prb); |
| 7753 | } |
| 7754 | |
| 7755 | /* Expert error if we are short of tvb by > 3 bytes */ |
| 7756 | if (tvb_reported_length_remaining(tvb, offset) > 3) { |
| 7757 | expert_add_info_format(pinfo, protocol_item, &ei_oran_frame_length, |
| 7758 | "%u bytes remain at end of frame - should be 0-3", |
| 7759 | tvb_reported_length_remaining(tvb, offset)); |
| 7760 | } |
| 7761 | |
| 7762 | if (PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited) && result) { |
| 7763 | /* Show list of frames that have corresponding U-plane data */ |
| 7764 | wmem_list_frame_t *list_frame; |
| 7765 | |
| 7766 | /* Some frames may answer > 1 section, so fashion a set using wmem_tree.. */ |
| 7767 | wmem_tree_t *frames_set = wmem_tree_new(NULL((void*)0)); |
| 7768 | |
| 7769 | unsigned first_gap = 0; |
| 7770 | unsigned first_symbol = 0; |
| 7771 | unsigned first_gap_delta = 0; |
| 7772 | bool_Bool first_section = true1; |
| 7773 | |
| 7774 | for (list_frame = wmem_list_head(result->u_plane_frames); list_frame != NULL((void*)0); list_frame = wmem_list_frame_next(list_frame)) { |
| 7775 | corresponding_uplane_frame *frame = wmem_list_frame_data(list_frame); |
| 7776 | |
| 7777 | if (!wmem_tree_contains32(frames_set, frame->frame_number)) { |
| 7778 | /* Only check/show gap for first section from a given wireshark frame */ |
| 7779 | if (first_gap == 0) { |
| 7780 | first_gap = frame->gap_in_usecs; |
| 7781 | first_symbol = frame->symbol; |
| 7782 | } |
| 7783 | else { |
| 7784 | /* Compare calculated vs actual arrival times */ |
| 7785 | first_gap_delta = frame->gap_in_usecs - first_gap; |
| 7786 | unsigned expected_delta = pref_symbol_time * (frame->symbol-first_symbol); |
| 7787 | proto_item *delta_ti = proto_tree_add_int(oran_tree, |
| 7788 | (direction==0) ? hf_oran_delta_to_expected_ul_symbol_time : hf_oran_delta_to_expected_dl_symbol_time, |
| 7789 | tvb, 0, 0, first_gap_delta-expected_delta); |
| 7790 | proto_item_append_text (delta_ti, " (%u symbols since first, assuming %u\u03bcs/symbol)", frame->symbol-first_symbol, pref_symbol_time); |
| 7791 | proto_item_set_generated(delta_ti); |
| 7792 | } |
| 7793 | } |
| 7794 | |
| 7795 | /* Show link to U-plane frame */ |
| 7796 | proto_item *uplane_frame_ti = proto_tree_add_uint(oran_tree, hf_oran_corresponding_uplane_frame, tvb, 0, 0, |
| 7797 | frame->frame_number); |
| 7798 | proto_item_append_text(uplane_frame_ti, " sectionId:%2u symbol:%2u ", frame->sectionId, frame->symbol); |
| 7799 | if (frame->numPrbu > 1) { |
| 7800 | proto_item_append_text(uplane_frame_ti, "PRBs %3u->%3u", frame->startPrbu, frame->startPrbu+frame->numPrbu-1); |
| 7801 | } |
| 7802 | else { |
| 7803 | proto_item_append_text(uplane_frame_ti, "PRB: %3u", frame->startPrbu); |
| 7804 | } |
| 7805 | |
| 7806 | proto_item_set_generated(uplane_frame_ti); |
| 7807 | |
| 7808 | if (first_section) { |
| 7809 | /* Only show timings on first entry for a frame */ |
| 7810 | proto_item_append_text(uplane_frame_ti, " (in %u\u03bcs)", frame->gap_in_usecs); |
| 7811 | first_section = false0; |
| 7812 | } |
| 7813 | |
| 7814 | if (first_gap_delta) { |
| 7815 | /* Only show timings on first entry for a frame */ |
| 7816 | proto_item_append_text(uplane_frame_ti, " (in %u\u03bcs) +%u", frame->gap_in_usecs, first_gap_delta); |
| 7817 | first_gap_delta = 0; |
| 7818 | } |
| 7819 | |
| 7820 | wmem_tree_insert32(frames_set, frame->frame_number, NULL((void*)0)); |
| 7821 | } |
| 7822 | /* Also show total number of corresponding u-plane frames */ |
| 7823 | |
| 7824 | proto_item *uplane_frame_count_ti = proto_tree_add_uint(oran_tree, hf_oran_corresponding_uplane_frames_total, tvb, 0, 0, wmem_tree_count(frames_set)); |
| 7825 | proto_item_set_generated(uplane_frame_count_ti); |
| 7826 | /* No longer need this set/tree */ |
| 7827 | wmem_tree_destroy(frames_set, false0, false0); |
| 7828 | } |
| 7829 | |
| 7830 | return tvb_captured_length(tvb); |
| 7831 | } |
| 7832 | |
| 7833 | static int dissect_oran_u_re(tvbuff_t *tvb, proto_tree *tree, |
| 7834 | unsigned sample_number, int samples_offset, |
| 7835 | oran_tap_info *tap_info, |
| 7836 | unsigned sample_bit_width, |
| 7837 | int comp_meth, |
| 7838 | uint32_t exponent, |
| 7839 | section_mod_compr_config_t *mod_compr_params, |
| 7840 | uint8_t re, float * const re_power) |
| 7841 | { |
| 7842 | /* I */ |
| 7843 | unsigned i_bits = tvb_get_bits32(tvb, samples_offset, sample_bit_width, ENC_BIG_ENDIAN0x00000000); |
| 7844 | float i_value = decompress_value(i_bits, comp_meth, sample_bit_width, exponent, mod_compr_params, re); |
| 7845 | unsigned sample_len_in_bytes = ((samples_offset%8)+sample_bit_width+7)/8; |
| 7846 | proto_item *i_ti = proto_tree_add_float(tree, hf_oran_iSample, tvb, samples_offset/8, sample_len_in_bytes, i_value); |
| 7847 | proto_item_set_text(i_ti, "iSample: % 0.7f 0x%04x (RE-%2u in the PRB)", i_value, i_bits, sample_number); |
| 7848 | samples_offset += sample_bit_width; |
| 7849 | /* Q */ |
| 7850 | unsigned q_bits = tvb_get_bits32(tvb, samples_offset, sample_bit_width, ENC_BIG_ENDIAN0x00000000); |
| 7851 | float q_value = decompress_value(q_bits, comp_meth, sample_bit_width, exponent, mod_compr_params, re); |
| 7852 | sample_len_in_bytes = ((samples_offset%8)+sample_bit_width+7)/8; |
| 7853 | proto_item *q_ti = proto_tree_add_float(tree, hf_oran_qSample, tvb, samples_offset/8, sample_len_in_bytes, q_value); |
| 7854 | proto_item_set_text(q_ti, "qSample: % 0.7f 0x%04x (RE-%2u in the PRB)", q_value, q_bits, sample_number); |
| 7855 | samples_offset += sample_bit_width; |
| 7856 | *re_power = i_value*i_value + q_value*q_value; |
| 7857 | /* Update RE stats */ |
| 7858 | tap_info->num_res++; |
| 7859 | /* if (i_value == 0.0 && q_value == 0.0) { */ |
| 7860 | /* TODO: is just checking bits from frame good enough - assuming this always corresponds to a zero value? */ |
| 7861 | if (i_bits == 0 && q_bits == 0) { |
| 7862 | tap_info->num_res_zero++; |
| 7863 | } |
| 7864 | else { |
| 7865 | tap_info->non_zero_re_in_current_prb = true1; |
| 7866 | } |
| 7867 | return samples_offset; |
| 7868 | } |
| 7869 | |
| 7870 | |
| 7871 | static bool_Bool udcomplen_appears_present(bool_Bool udcomphdr_present, tvbuff_t *tvb, int offset) |
| 7872 | { |
| 7873 | if (!udcomplen_heuristic_result_set) { |
| 7874 | /* All sections will start the same way */ |
| 7875 | unsigned int section_bytes_before_field = (udcomphdr_present) ? 6 : 4; |
| 7876 | |
| 7877 | /* Move offset back to the start of the section */ |
| 7878 | offset -= section_bytes_before_field; |
| 7879 | |
| 7880 | do { |
| 7881 | /* This field appears several bytes into the U-plane section */ |
| 7882 | uint32_t length_remaining = tvb_reported_length_remaining(tvb, offset); |
| 7883 | /* Are there enough bytes to still read the length field? */ |
| 7884 | if (section_bytes_before_field+2 > length_remaining) { |
| 7885 | udcomplen_heuristic_result = false0; |
| 7886 | udcomplen_heuristic_result_set = true1; |
| 7887 | break; |
| 7888 | } |
| 7889 | |
| 7890 | /* Read the length field */ |
| 7891 | uint16_t udcomplen = tvb_get_ntohs(tvb, offset+section_bytes_before_field); |
| 7892 | |
| 7893 | /* Is this less than a valid section? Realistic minimal section will be bigger than this.. |
| 7894 | * Could take into account numPrbU, etc */ |
| 7895 | if (udcomplen < section_bytes_before_field+2) { |
| 7896 | udcomplen_heuristic_result = false0; |
| 7897 | udcomplen_heuristic_result_set = true1; |
| 7898 | break; |
| 7899 | } |
| 7900 | |
| 7901 | /* Does this section fit into the frame? */ |
| 7902 | if (udcomplen > length_remaining) { |
| 7903 | udcomplen_heuristic_result = false0; |
| 7904 | udcomplen_heuristic_result_set = true1; |
| 7905 | break; |
| 7906 | } |
| 7907 | |
| 7908 | /* Move past this section */ |
| 7909 | offset += udcomplen; |
| 7910 | |
| 7911 | /* Are we at the end of the frame? */ |
| 7912 | /* TODO: if frame is less than 60 bytes, there may be > 4 bytes, likely zeros.. */ |
| 7913 | if (tvb_reported_length_remaining(tvb, offset) < 4) { |
| 7914 | udcomplen_heuristic_result = true1; |
| 7915 | udcomplen_heuristic_result_set = true1; |
| 7916 | } |
| 7917 | } while (!udcomplen_heuristic_result_set); |
| 7918 | } |
| 7919 | return udcomplen_heuristic_result; |
| 7920 | } |
| 7921 | |
| 7922 | static bool_Bool at_udcomphdr(tvbuff_t *tvb, int offset) |
| 7923 | { |
| 7924 | if (tvb_captured_length_remaining(tvb, offset) < 2) { |
| 7925 | return false0; |
| 7926 | } |
| 7927 | uint8_t first_byte = tvb_get_uint8(tvb, offset); |
| 7928 | uint8_t reserved_byte = tvb_get_uint8(tvb, offset+1); |
| 7929 | |
| 7930 | /* - iq width could be anything, though unlikely to be signalled as (say) < 1-3? */ |
| 7931 | /* - meth should be 0-8 */ |
| 7932 | /* - reserved byte should be 0 */ |
| 7933 | return (((first_byte & 0x0f) <= MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8) && (reserved_byte == 0)); |
| 7934 | } |
| 7935 | |
| 7936 | static bool_Bool udcomphdr_appears_present(flow_state_t *flow, uint32_t direction, tvbuff_t *tvb, int offset) |
| 7937 | { |
| 7938 | /* Should really not happen, but guard against this anyway. */ |
| 7939 | if (flow == NULL((void*)0)) { |
| 7940 | /* No state to update. */ |
| 7941 | return false0; |
| 7942 | } |
| 7943 | |
| 7944 | if (direction == DIR_UPLINK0) { |
| 7945 | if (flow->udcomphdrUplink_heuristic_result_set) { |
| 7946 | /* Return cached value */ |
| 7947 | return flow->udcomphdrUplink_heuristic_result; |
| 7948 | } |
| 7949 | else { |
| 7950 | /* Work it out, and save answer for next time */ |
| 7951 | flow->udcomphdrUplink_heuristic_result_set = true1; |
| 7952 | flow->udcomphdrUplink_heuristic_result = at_udcomphdr(tvb, offset); |
| 7953 | return flow->udcomphdrUplink_heuristic_result; |
| 7954 | } |
| 7955 | } |
| 7956 | else { |
| 7957 | /* Downlink */ |
| 7958 | if (flow->udcomphdrDownlink_heuristic_result_set) { |
| 7959 | /* Return cached value */ |
| 7960 | return flow->udcomphdrDownlink_heuristic_result; |
| 7961 | } |
| 7962 | else { |
| 7963 | /* Work it out, and save answer for next time */ |
| 7964 | flow->udcomphdrDownlink_heuristic_result_set = true1; |
| 7965 | flow->udcomphdrDownlink_heuristic_result = at_udcomphdr(tvb, offset); |
| 7966 | return flow->udcomphdrDownlink_heuristic_result; |
| 7967 | } |
| 7968 | } |
| 7969 | } |
| 7970 | |
| 7971 | /* |
| 7972 | dissect_oran_u_timing_header() |
| 7973 | Table 8.3.2-1, octets 9-12.. |
| 7974 | */ |
| 7975 | static int dissect_oran_u_timing_header(tvbuff_t *tvb, packet_info *pinfo, unsigned offset, |
| 7976 | proto_item * timingHeader, oran_tap_info *tap_info, uint32_t * frameIdPtr, uint32_t * subframeIdPtr, uint32_t * slotIdPtr, |
| 7977 | uint32_t * symbolIdPtr, uint32_t * directionPtr ) |
| 7978 | { |
| 7979 | /* Now does the data combine correctly? */ |
| 7980 | /* Common header for time reference */ |
| 7981 | proto_tree *timing_header_tree = proto_item_add_subtree(timingHeader, ett_oran_u_timing); |
| 7982 | |
| 7983 | /* dataDirection */ |
| 7984 | proto_tree_add_item_ret_uint(timing_header_tree, hf_oran_data_direction, tvb, offset, 1, ENC_NA0x00000000, directionPtr); |
| 7985 | tap_info->uplink = ((*directionPtr)==0); |
| 7986 | /* payloadVersion */ |
| 7987 | dissect_payload_version(timing_header_tree, tvb, pinfo, offset); |
| 7988 | /* filterIndex */ |
| 7989 | proto_tree_add_item(timing_header_tree, hf_oran_filter_index, tvb, offset, 1, ENC_NA0x00000000); |
| 7990 | offset += 1; |
| 7991 | |
| 7992 | int ref_a_offset = offset; |
| 7993 | |
| 7994 | /* frameId */ |
| 7995 | proto_tree_add_item_ret_uint(timing_header_tree, hf_oran_frame_id, tvb, offset, 1, ENC_NA0x00000000, frameIdPtr); |
| 7996 | tap_info->frame = *frameIdPtr; |
| 7997 | offset += 1; |
| 7998 | |
| 7999 | /* subframeId */ |
| 8000 | proto_tree_add_item_ret_uint(timing_header_tree, hf_oran_subframe_id, tvb, offset, 1, ENC_NA0x00000000, subframeIdPtr); |
| 8001 | /* slotId */ |
| 8002 | proto_tree_add_item_ret_uint(timing_header_tree, hf_oran_slot_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, slotIdPtr); |
| 8003 | tap_info->slot = *slotIdPtr; |
| 8004 | offset++; |
| 8005 | /* symbolId */ |
| 8006 | proto_tree_add_item_ret_uint(timing_header_tree, hf_oran_symbolId, tvb, offset, 1, ENC_NA0x00000000, symbolIdPtr); |
| 8007 | offset++; |
| 8008 | |
| 8009 | char id[16]; |
| 8010 | snprintf(id, 16, "%u-%u-%u-%u", *frameIdPtr, *subframeIdPtr, *slotIdPtr, *symbolIdPtr); |
| 8011 | proto_item *pi = proto_tree_add_string(timing_header_tree, hf_oran_refa, tvb, ref_a_offset, 3, id); |
| 8012 | proto_item_set_generated(pi); |
| 8013 | |
| 8014 | proto_item_append_text(timingHeader, "%s, frameId: %d, subframeId: %d, slotId: %d, symbolId: %d)", |
| 8015 | val_to_str_const(*directionPtr, data_direction_vals, "Unknown"), *frameIdPtr, *subframeIdPtr, *slotIdPtr, *symbolIdPtr); |
| 8016 | return offset; |
| 8017 | } |
| 8018 | |
| 8019 | /* |
| 8020 | dissect_oran_u_section_header() |
| 8021 | Mandatory Section Header fields (darker green part) |
| 8022 | Table 8.3.2-1, octets 13-16. Optional fields handled elsewhere. |
| 8023 | */ |
| 8024 | static int dissect_oran_u_section_header(tvbuff_t *tvb, packet_info *pinfo, unsigned offset, |
| 8025 | proto_tree * section_tree, |
| 8026 | oran_tap_info *tap_info, |
| 8027 | flow_result_t *result, flow_state_t *cplane_state, |
| 8028 | uint32_t frameId, uint32_t subframeId, uint32_t slotId, uint32_t symbolId, |
| 8029 | uint32_t direction, uint32_t * sectionIdPtr, uint32_t * rbPtr, uint32_t *startPrbuPtr, uint32_t *numPrbuPtr, |
| 8030 | section_details_t **section_details_ptr) |
| 8031 | { |
| 8032 | proto_item *sectionId_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_section_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, sectionIdPtr); |
| 8033 | if (*sectionIdPtr == 4095) { |
| 8034 | proto_item_append_text(sectionId_ti, " (not default coupling C/U planes using sectionId)"); |
| 8035 | } |
| 8036 | offset++; |
| 8037 | |
| 8038 | if (tap_info->num_section_ids < MAX_SECTION_IDs32) { |
| 8039 | tap_info->section_ids[tap_info->num_section_ids++] = *sectionIdPtr; |
| 8040 | } |
| 8041 | |
| 8042 | section_details_t *section_details = NULL((void*)0); |
| 8043 | corresponding_uplane_frame *details = NULL((void*)0); |
| 8044 | |
| 8045 | /* Lookup corresponding C-plane frame/info */ |
| 8046 | if (link_planes_together) { |
| 8047 | if (result && result->cplane_seen) { |
| 8048 | |
| 8049 | expected_section_data_t *section_data = NULL((void*)0); |
| 8050 | section_data = wmem_tree_lookup32(result->expected_sections, *sectionIdPtr); |
| 8051 | |
| 8052 | if (!section_data && !PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited) && cplane_state) { |
| 8053 | /* Take a deep-copy of the C-plane state for this sectionId on first pass */ |
| 8054 | expected_section_data_t *cplane_data = wmem_tree_lookup32(cplane_state->expected_sections[direction], |
| 8055 | *sectionIdPtr); |
| 8056 | if (cplane_data) { |
| 8057 | /* Shallow copy is fine, see section_details_t */ |
| 8058 | section_data = wmem_memdup(wmem_file_scope(), cplane_data, sizeof(expected_section_data_t)); |
| 8059 | wmem_tree_insert32(result->expected_sections, *sectionIdPtr, section_data); |
| 8060 | } |
| 8061 | } |
| 8062 | |
| 8063 | if (section_data) { |
| 8064 | /* Need to work out which of 2 entries is in use for this data frame */ |
| 8065 | unsigned index_to_use = 0; |
| 8066 | |
| 8067 | /* Does the first entry match the timing for this frame? */ |
| 8068 | if (section_data->details[0].in_use && |
| 8069 | section_data->details[0].frame == frameId && |
| 8070 | section_data->details[0].subframe == subframeId && |
| 8071 | section_data->details[0].slot == slotId && |
| 8072 | /* Check that symbolId is in range */ |
| 8073 | section_data->details[0].startSymbol <= symbolId && |
| 8074 | (unsigned)symbolId < (unsigned)(section_data->details[0].startSymbol + section_data->details[0].numSymbols)) { |
| 8075 | |
| 8076 | index_to_use = 0; |
| 8077 | } |
| 8078 | else if (section_data->details[1].in_use && |
| 8079 | section_data->details[1].frame == frameId && |
| 8080 | section_data->details[1].subframe == subframeId && |
| 8081 | section_data->details[1].slot == slotId && |
| 8082 | /* Check that symbolId is in range */ |
| 8083 | section_data->details[1].startSymbol <= symbolId && |
| 8084 | (unsigned)symbolId < (unsigned)(section_data->details[1].startSymbol + section_data->details[1].numSymbols)) { |
| 8085 | |
| 8086 | index_to_use = 1; |
| 8087 | } |
| 8088 | else { |
| 8089 | /* There was a sectionId, but timing header didn't exactly match, so neither index may be used.. */ |
| 8090 | index_to_use = 2; /* invalid value */ |
| 8091 | /* Expert info */ |
| 8092 | expert_add_info_format(NULL((void*)0), sectionId_ti, |
| 8093 | &ei_oran_cplane_entry_not_found, |
| 8094 | "C-plane entry for %s sectionId %u at timing header %u-%u-%u-%u" |
| 8095 | " timing didn't match C-plane", |
| 8096 | (direction) ? "DL" : "UL", *sectionIdPtr, |
| 8097 | frameId, subframeId, slotId, symbolId); |
| 8098 | } |
| 8099 | |
| 8100 | if (index_to_use <= 1) { |
| 8101 | section_details = §ion_data->details[index_to_use]; |
| 8102 | |
| 8103 | /* Cplane frame number */ |
| 8104 | proto_item *cplane_frame_ti = proto_tree_add_uint(section_tree, hf_oran_corresponding_cplane_frame, tvb, 0, 0, |
| 8105 | section_details->frame_number); |
| 8106 | proto_item_set_generated(cplane_frame_ti); |
| 8107 | |
| 8108 | /* usecs since cplane frame */ |
| 8109 | time_t total_gap = 0; |
| 8110 | |
| 8111 | if ((pinfo->abs_ts.secs == section_details->frame_time.secs) || (pinfo->abs_ts.secs == section_details->frame_time.secs+1)) { |
| 8112 | total_gap = ((pinfo->abs_ts.secs - section_details->frame_time.secs) * 1000000) + |
| 8113 | ((pinfo->abs_ts.nsecs - section_details->frame_time.nsecs)/1000); |
| 8114 | } |
| 8115 | |
| 8116 | if (total_gap > 0) { |
| 8117 | proto_item *cplane_delta_ti = proto_tree_add_uint64(section_tree, hf_oran_corresponding_cplane_frame_time_delta, tvb, 0, 0, (uint64_t)total_gap); |
| 8118 | proto_item_set_generated(cplane_delta_ti); |
| 8119 | } |
| 8120 | |
| 8121 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 8122 | /* Look up 'result' for c-plane frame, and tell it about this frame.. */ |
| 8123 | flow_result_t *cplane_result = wmem_tree_lookup32(flow_results_table, section_details->frame_number); |
| 8124 | if (!cplane_result) { |
| 8125 | cplane_result = wmem_new0(wmem_file_scope(), flow_result_t)((flow_result_t*)wmem_alloc0((wmem_file_scope()), sizeof(flow_result_t ))); |
| 8126 | cplane_result->u_plane_frames = wmem_list_new(wmem_file_scope()); |
| 8127 | wmem_tree_insert32(flow_results_table, section_details->frame_number, cplane_result); |
| 8128 | } |
| 8129 | /* PRB range filled in below.. */ |
| 8130 | |
| 8131 | details = wmem_new(wmem_file_scope(), corresponding_uplane_frame)((corresponding_uplane_frame*)wmem_alloc((wmem_file_scope()), sizeof(corresponding_uplane_frame))); |
| 8132 | details->frame_number = pinfo->num; |
| 8133 | details->gap_in_usecs = (uint32_t)total_gap; |
| 8134 | details->sectionId = *sectionIdPtr; |
| 8135 | details->symbol = symbolId; |
| 8136 | |
| 8137 | wmem_list_append(cplane_result->u_plane_frames, details); |
| 8138 | } |
| 8139 | } |
| 8140 | } |
| 8141 | else { |
| 8142 | /* No section entry at all */ |
| 8143 | expert_add_info_format(NULL((void*)0), sectionId_ti, |
| 8144 | &ei_oran_cplane_entry_not_found, |
| 8145 | "C-plane entry for %s sectionId %u not found", |
| 8146 | (direction) ? "DL" : "UL", *sectionIdPtr); |
| 8147 | } |
| 8148 | } |
| 8149 | } |
| 8150 | |
| 8151 | /* rb */ |
| 8152 | proto_tree_add_item_ret_uint(section_tree, hf_oran_rb, tvb, offset, 1, ENC_NA0x00000000, rbPtr); |
| 8153 | /* symInc. "use of symInc=1 shall be prohibited in the U-plane" */ |
| 8154 | uint8_t syminc; |
| 8155 | proto_item *syminc_ti = proto_tree_add_item_ret_uint8(section_tree, hf_oran_symInc, tvb, offset, 1, ENC_NA0x00000000, &syminc); |
| 8156 | if (syminc) { |
| 8157 | expert_add_info(NULL((void*)0), syminc_ti, &ei_oran_syminc_set_for_uplane); |
| 8158 | } |
| 8159 | /* startPrbu */ |
| 8160 | proto_tree_add_item_ret_uint(section_tree, hf_oran_startPrbu, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, startPrbuPtr); |
| 8161 | offset += 2; |
| 8162 | |
| 8163 | /* numPrbu */ |
| 8164 | proto_tree_add_item_ret_uint(section_tree, hf_oran_numPrbu, tvb, offset, 1, ENC_NA0x00000000, numPrbuPtr); |
| 8165 | offset += 1; |
| 8166 | |
| 8167 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited) && details) { |
| 8168 | details->startPrbu = *startPrbuPtr; |
| 8169 | details->numPrbu = (*numPrbuPtr) ? (*numPrbuPtr) : 273; |
| 8170 | } |
| 8171 | |
| 8172 | *section_details_ptr = section_details; |
| 8173 | return offset; |
| 8174 | } |
| 8175 | |
| 8176 | /* unscaled_power_correction computes correction required to rescale reported power in order to report dBFS */ |
| 8177 | static float unscaled_power_correction(int sample_bit_width, unsigned compression) { |
| 8178 | /* Logic for COMP_NONE and COMP_BLOCK_FP. No adjustment required for COMP_MODULATION */ |
| 8179 | float correction = 0.0f; |
| 8180 | switch(compression) { |
| 8181 | case COMP_BLOCK_FP1: |
| 8182 | case BFP_AND_SELECTIVE_RE5: |
| 8183 | case BFP_AND_SELECTIVE_RE_WITH_MASKS7: |
| 8184 | correction = 20.0f*((float)(M_LOG10E0.43429448190325182765/M_LOG2E1.4426950408889634074))*((sample_bit_width-1) + 15); |
| 8185 | break; |
| 8186 | case COMP_NONE0: |
| 8187 | correction = 20.0f*((float)(M_LOG10E0.43429448190325182765/M_LOG2E1.4426950408889634074))*(sample_bit_width-1); |
| 8188 | break; |
| 8189 | default: |
| 8190 | break; |
| 8191 | } |
| 8192 | return correction; |
| 8193 | } |
| 8194 | |
| 8195 | static int dissect_oran_u_section(tvbuff_t *tvb, packet_info *pinfo, unsigned offset, |
| 8196 | proto_tree * oran_tree, |
| 8197 | proto_item * protocol_item, |
| 8198 | oran_tap_info *tap_info, |
| 8199 | flow_state_t *state, flow_result_t *result, flow_state_t *cplane_state, |
| 8200 | uint32_t frameId, uint32_t subframeId, uint32_t slotId, uint32_t symbolId, |
| 8201 | uint32_t direction, int includeUdCompHeader, unsigned * sample_bit_width_ptr, |
| 8202 | unsigned compression, bool_Bool ud_cmp_hdr_cplane, unsigned *nBytesPerPrbPtr) |
| 8203 | { |
| 8204 | /* Section subtree */ |
| 8205 | unsigned section_start_offset = offset; |
| 8206 | proto_item *sectionHeading = proto_tree_add_string_format(oran_tree, hf_oran_u_section, |
| 8207 | tvb, offset, 0, "", "Section"); |
| 8208 | proto_tree *section_tree = proto_item_add_subtree(sectionHeading, ett_oran_u_section); |
| 8209 | section_details_t *section_details = NULL((void*)0); |
| 8210 | |
| 8211 | /* Total (section) power and peak power */ |
| 8212 | float total_power = 0.0f; |
| 8213 | float peak_power = 0.0f; |
| 8214 | int peak_location = 0; |
| 8215 | |
| 8216 | /* Section Header fields [fixed parts] (darker green part) */ |
| 8217 | uint32_t sectionId = 0, rb, startPrbu = 0, numPrbu = 0; |
| 8218 | |
| 8219 | offset = dissect_oran_u_section_header(tvb, pinfo, offset, section_tree, tap_info, result, cplane_state, |
| 8220 | frameId, subframeId, slotId, symbolId, direction, §ionId, &rb, &startPrbu, &numPrbu, |
| 8221 | §ion_details); |
| 8222 | |
| 8223 | proto_item *ud_comp_meth_item, *ud_comp_len_ti=NULL((void*)0); |
| 8224 | uint32_t ud_comp_len = 0; |
| 8225 | |
| 8226 | /* udCompHdr (if preferences indicate will be present) */ |
| 8227 | bool_Bool included = (includeUdCompHeader==1) || /* 1 means present.. */ |
| 8228 | (includeUdCompHeader==2 && udcomphdr_appears_present(state, direction, tvb, offset)); /* heuristic */ |
| 8229 | bool_Bool udCompHdr_ignored = direction == 0 && pref_override_ul_compression; /* Ignore UL if configured to */ |
| 8230 | if (included) { |
| 8231 | /* 7.5.2.10 */ |
| 8232 | /* Extract these values to inform how wide IQ samples in each PRB will be. */ |
| 8233 | offset = dissect_udcomphdr(tvb, pinfo, section_tree, offset, false0, |
| 8234 | udCompHdr_ignored, |
| 8235 | sample_bit_width_ptr, |
| 8236 | &compression, &ud_comp_meth_item, tap_info); |
| 8237 | |
| 8238 | /* Not part of udCompHdr */ |
| 8239 | uint32_t reserved; |
| 8240 | proto_item *res_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_reserved_8bits, tvb, offset, 1, ENC_NA0x00000000, &reserved); |
| 8241 | offset += 1; |
| 8242 | if (reserved != 0) { |
| 8243 | expert_add_info_format(pinfo, res_ti, &ei_oran_reserved_not_zero, |
| 8244 | "reserved field (0x%x) not zero - perhaps udCompHdr is not really present?", |
| 8245 | reserved); |
| 8246 | } |
| 8247 | } |
| 8248 | |
| 8249 | if (!included || udCompHdr_ignored) { |
| 8250 | /* No fields to dissect - just showing comp values from prefs */ |
| 8251 | /* iqWidth */ |
| 8252 | proto_item *iq_width_item = proto_tree_add_uint(section_tree, hf_oran_udCompHdrIqWidth_pref, tvb, 0, 0, *sample_bit_width_ptr); |
| 8253 | proto_item_append_text(iq_width_item, (ud_cmp_hdr_cplane) ? " (from c-plane)" : " (from preferences)"); |
| 8254 | proto_item_set_generated(iq_width_item); |
| 8255 | |
| 8256 | /* udCompMethod */ |
| 8257 | ud_comp_meth_item = proto_tree_add_uint(section_tree, hf_oran_udCompHdrMeth_pref, tvb, 0, 0, compression); |
| 8258 | proto_item_append_text(ud_comp_meth_item, (ud_cmp_hdr_cplane) ? " (from c-plane)" : " (from preferences)"); |
| 8259 | proto_item_set_generated(ud_comp_meth_item); |
| 8260 | |
| 8261 | /* Point back to C-Plane, if used */ |
| 8262 | /* TODO: doesn't work with multiple port mappings using SE10.. */ |
| 8263 | if (ud_cmp_hdr_cplane) { |
| 8264 | proto_item *cplane_ti = proto_tree_add_uint(section_tree, hf_oran_ul_cplane_ud_comp_hdr_frame, tvb, offset, 0, result->ul_ud_comp_hdr_frame); |
| 8265 | proto_item_set_generated(cplane_ti); |
| 8266 | } |
| 8267 | |
| 8268 | /* Still adding these values to tap */ |
| 8269 | tap_info->compression_methods |= (1 << compression); |
| 8270 | tap_info->compression_width = MAX(tap_info->compression_width, *sample_bit_width_ptr)(((tap_info->compression_width) > (*sample_bit_width_ptr )) ? (tap_info->compression_width) : (*sample_bit_width_ptr )); |
| 8271 | } |
| 8272 | |
| 8273 | /* Not supported! TODO: other places where comp method is looked up (e.g., bfw?) */ |
| 8274 | switch (compression) { |
| 8275 | case COMP_NONE0: |
| 8276 | case COMP_BLOCK_FP1: |
| 8277 | case BFP_AND_SELECTIVE_RE5: |
| 8278 | case COMP_MODULATION4: |
| 8279 | case MOD_COMPR_AND_SELECTIVE_RE6: |
| 8280 | case BFP_AND_SELECTIVE_RE_WITH_MASKS7: |
| 8281 | case MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8: |
| 8282 | break; |
| 8283 | default: |
| 8284 | expert_add_info_format(pinfo, ud_comp_meth_item, &ei_oran_unsupported_compression_method, |
| 8285 | "Compression method %u (%s) not supported by dissector", |
| 8286 | compression, |
| 8287 | rval_to_str_const(compression, ud_comp_header_meth, "reserved")); |
| 8288 | } |
| 8289 | |
| 8290 | /* udCompLen (when supported, methods 5,6,7,8) */ |
| 8291 | if (compression >= BFP_AND_SELECTIVE_RE5) { |
| 8292 | bool_Bool supported = (pref_support_udcompLen==1) || /* supported */ |
| 8293 | (pref_support_udcompLen==2 && udcomplen_appears_present(included, tvb, offset)); |
| 8294 | |
| 8295 | if (supported) { |
| 8296 | ud_comp_len_ti = proto_tree_add_item_ret_uint(section_tree, hf_oran_udCompLen, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &ud_comp_len); |
| 8297 | if (ud_comp_len <= 1) { |
| 8298 | proto_item_append_text(ud_comp_len_ti, " (reserved)"); |
| 8299 | } |
| 8300 | /* TODO: report if less than a viable section in frame? */ |
| 8301 | /* Check that there is this much length left in the frame */ |
| 8302 | if (ud_comp_len > tvb_reported_length_remaining(tvb, section_start_offset)) { |
| 8303 | expert_add_info_format(pinfo, ud_comp_len_ti, &ei_oran_ud_comp_len_wrong_size, |
| 8304 | "udCompLen indicates %u bytes in section, but only %u are left in frame", |
| 8305 | ud_comp_len, tvb_reported_length_remaining(tvb, section_start_offset)); |
| 8306 | } |
| 8307 | /* Actual length of section will be checked below, at the end of the section */ |
| 8308 | offset += 2; |
| 8309 | } |
| 8310 | } |
| 8311 | |
| 8312 | /* sReSMask1 + sReSMask2 (depends upon compression method) */ |
| 8313 | uint64_t sresmask1=0, sresmask2=0; |
| 8314 | if (compression == BFP_AND_SELECTIVE_RE_WITH_MASKS7 || |
| 8315 | compression == MOD_COMPR_AND_SELECTIVE_RE_WITH_MASKS8) |
| 8316 | { |
| 8317 | static int * const sres_mask1_2_flags[] = { |
| 8318 | &hf_oran_sReSMask1_2_re12, |
| 8319 | &hf_oran_sReSMask1_2_re11, |
| 8320 | &hf_oran_sReSMask1_2_re10, |
| 8321 | &hf_oran_sReSMask1_2_re9, |
| 8322 | &hf_oran_sReSMask_re8, |
| 8323 | &hf_oran_sReSMask_re7, |
| 8324 | &hf_oran_sReSMask_re6, |
| 8325 | &hf_oran_sReSMask_re5, |
| 8326 | &hf_oran_sReSMask_re4, |
| 8327 | &hf_oran_sReSMask_re3, |
| 8328 | &hf_oran_sReSMask_re2, |
| 8329 | &hf_oran_sReSMask_re1, |
| 8330 | NULL((void*)0) |
| 8331 | }; |
| 8332 | |
| 8333 | /* reserved (4 bits) */ |
| 8334 | add_reserved_field(section_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 8335 | /* sReSMask1 (12 bits) */ |
| 8336 | proto_item *sresmask_ti; |
| 8337 | sresmask_ti = proto_tree_add_bitmask_ret_uint64(section_tree, tvb, offset, |
| 8338 | hf_oran_sReSMask1, |
| 8339 | ett_oran_sresmask, |
| 8340 | sres_mask1_2_flags, |
| 8341 | ENC_NA0x00000000, |
| 8342 | &sresmask1); |
| 8343 | offset += 2; |
| 8344 | /* Count REs present */ |
| 8345 | unsigned res = 0; |
| 8346 | for (unsigned n=0; n < 12; n++) { |
| 8347 | if ((sresmask1 >> n) & 0x1) { |
| 8348 | res++; |
| 8349 | } |
| 8350 | } |
| 8351 | proto_item_append_text(sresmask_ti, " (%u REs)", res); |
| 8352 | |
| 8353 | |
| 8354 | /* reserved (4 bits) */ |
| 8355 | add_reserved_field(section_tree, hf_oran_reserved_4bits, tvb, offset, 1); |
| 8356 | /* sReSMask2 (12 bits) */ |
| 8357 | sresmask_ti = proto_tree_add_bitmask_ret_uint64(section_tree, tvb, offset, |
| 8358 | hf_oran_sReSMask2, |
| 8359 | ett_oran_sresmask, |
| 8360 | sres_mask1_2_flags, |
| 8361 | ENC_NA0x00000000, |
| 8362 | &sresmask2); |
| 8363 | offset += 2; |
| 8364 | |
| 8365 | if (rb == 1) { |
| 8366 | proto_item_append_text(sresmask_ti, " (ignored)"); |
| 8367 | if (sresmask2 != 0) { |
| 8368 | expert_add_info(pinfo, ud_comp_len_ti, &ei_oran_sresmask2_not_zero_with_rb); |
| 8369 | } |
| 8370 | } |
| 8371 | else { |
| 8372 | /* Count REs present */ |
| 8373 | res = 0; |
| 8374 | for (unsigned n=0; n < 12; n++) { |
| 8375 | if ((sresmask2 >> n) & 0x1) { |
| 8376 | res++; |
| 8377 | } |
| 8378 | } |
| 8379 | proto_item_append_text(sresmask_ti, " (%u REs)", res); |
| 8380 | } |
| 8381 | } |
| 8382 | |
| 8383 | write_section_info(sectionHeading, pinfo, protocol_item, sectionId, startPrbu, numPrbu, rb); |
| 8384 | |
| 8385 | /* TODO: should this use the same pref as c-plane? */ |
| 8386 | if (numPrbu == 0) { |
| 8387 | /* Special case for all PRBs (NR: the total number of PRBs may be > 255) */ |
| 8388 | numPrbu = pref_data_plane_section_total_rbs; |
| 8389 | startPrbu = 0; /* may already be 0... */ |
| 8390 | } |
| 8391 | |
| 8392 | section_mod_compr_config_t* mod_compr_config = get_mod_compr_section_to_read(cplane_state, sectionId); |
| 8393 | |
| 8394 | /* Add each PRB */ |
| 8395 | for (unsigned i = 0; i < numPrbu; i++) { |
| 8396 | /* Create subtree */ |
| 8397 | proto_item *prbHeading = proto_tree_add_string_format(section_tree, hf_oran_samples_prb, |
| 8398 | tvb, offset, 0, |
| 8399 | "", "PRB"); |
| 8400 | proto_tree *rb_tree = proto_item_add_subtree(prbHeading, ett_oran_u_prb); |
| 8401 | uint32_t exponent = 0; |
| 8402 | uint16_t sresmask = 0; |
| 8403 | |
| 8404 | /* udCompParam (depends upon compression method) */ |
| 8405 | int before = offset; |
| 8406 | offset = dissect_udcompparam(tvb, pinfo, rb_tree, offset, compression, &exponent, &sresmask, false0); |
| 8407 | int udcompparam_len = offset-before; |
| 8408 | |
| 8409 | /* Show PRB number in root */ |
| 8410 | proto_item_append_text(prbHeading, " %3u", startPrbu + i*(1+rb)); |
| 8411 | |
| 8412 | /* Work out how many REs / PRB */ |
| 8413 | unsigned res_per_prb = 12; |
| 8414 | uint16_t sresmask_to_use = 0x0fff; |
| 8415 | float rb_power = 0.0f; |
| 8416 | |
| 8417 | if (compression >= BFP_AND_SELECTIVE_RE5) { |
| 8418 | /* Work out which mask should be used */ |
| 8419 | if (compression==BFP_AND_SELECTIVE_RE5 || compression==MOD_COMPR_AND_SELECTIVE_RE6) { |
| 8420 | /* Selective RE cases, use value from compModParam */ |
| 8421 | sresmask_to_use = (uint16_t)sresmask; |
| 8422 | } |
| 8423 | else { |
| 8424 | /* With masks (in section). Choose between sresmask1 and sresmask2 */ |
| 8425 | if (rb==1 || (i%2)==0) { |
| 8426 | /* Even values */ |
| 8427 | sresmask_to_use = (uint16_t)sresmask1; |
| 8428 | } |
| 8429 | else { |
| 8430 | /* Odd values */ |
| 8431 | sresmask_to_use = (uint16_t)sresmask2; |
| 8432 | } |
| 8433 | } |
| 8434 | |
| 8435 | /* Count REs present using sresmask */ |
| 8436 | res_per_prb = 0; |
| 8437 | /* Use sresmask to pick out which REs are present */ |
| 8438 | for (unsigned n=0; n<12; n++) { |
| 8439 | if (sresmask_to_use & (1<<n)) { |
| 8440 | res_per_prb++; |
| 8441 | } |
| 8442 | } |
| 8443 | } |
| 8444 | |
| 8445 | /* N.B. bytes for samples need to be padded out to next byte |
| 8446 | (certainly where there aren't 12 REs in PRB..) */ |
| 8447 | unsigned nBytesForSamples = ((*sample_bit_width_ptr) * res_per_prb * 2 + 7) / 8; |
| 8448 | *nBytesPerPrbPtr = nBytesForSamples + udcompparam_len; |
| 8449 | |
| 8450 | proto_tree_add_item(rb_tree, hf_oran_iq_user_data, tvb, offset, nBytesForSamples, ENC_NA0x00000000); |
| 8451 | |
| 8452 | if (section_details) { |
| 8453 | if ((startPrbu + i*(1+rb)) < 273) { |
| 8454 | proto_item *beamid_ti = proto_tree_add_uint(rb_tree, hf_oran_beamId, tvb, 0, 0, |
| 8455 | section_details_get_beam_id(section_details, startPrbu + i*(1+rb))); |
| 8456 | proto_item_set_generated(beamid_ti); |
| 8457 | } |
| 8458 | } |
| 8459 | |
| 8460 | |
| 8461 | tap_info->non_zero_re_in_current_prb = false0; |
| 8462 | |
| 8463 | /* Optionally trying to show I/Q RE values */ |
| 8464 | if (pref_showIQSampleValues) { |
| 8465 | /* Individual values */ |
| 8466 | unsigned samples_offset = offset*8; |
| 8467 | unsigned samples_start = offset; |
| 8468 | unsigned samples = 0; |
| 8469 | |
| 8470 | float re_power = 0.0f; |
| 8471 | if (compression >= BFP_AND_SELECTIVE_RE5) { |
| 8472 | /* Use sresmask to pick out which REs are present */ |
| 8473 | for (unsigned n=1; n<=12; n++) { |
| 8474 | if (sresmask_to_use & (1<<(n-1))) { |
| 8475 | int new_samples_offset = |
| 8476 | dissect_oran_u_re(tvb, rb_tree, n, samples_offset, tap_info, *sample_bit_width_ptr, |
| 8477 | compression, exponent, mod_compr_config, n, &re_power); |
| 8478 | rb_power += re_power; |
| 8479 | if ( re_power > peak_power ) { |
| 8480 | peak_power = re_power; |
| 8481 | peak_location = samples_offset; |
| 8482 | } |
| 8483 | samples_offset = new_samples_offset; |
| 8484 | samples++; |
| 8485 | } |
| 8486 | } |
| 8487 | } |
| 8488 | else { |
| 8489 | /* All 12 REs are present */ |
| 8490 | for (unsigned n=1; n<=12; n++) { |
| 8491 | int new_samples_offset = |
| 8492 | dissect_oran_u_re(tvb, rb_tree, n, samples_offset, tap_info, *sample_bit_width_ptr, |
| 8493 | compression, exponent, mod_compr_config, n, &re_power); |
| 8494 | rb_power += re_power; |
| 8495 | if ( re_power > peak_power ) { |
| 8496 | peak_power = re_power; |
| 8497 | peak_location = samples_offset; |
| 8498 | } |
| 8499 | samples_offset = new_samples_offset; |
| 8500 | samples++; |
| 8501 | } |
| 8502 | } |
| 8503 | proto_item_append_text(prbHeading, " (%u REs)", samples); |
| 8504 | if (section_details) { |
| 8505 | if ((startPrbu + i*(1+rb)) < 273) { |
| 8506 | proto_item_append_text(prbHeading, " [BeamId:%u]", section_details_get_beam_id(section_details, startPrbu + i*(1+rb))); |
| 8507 | } |
| 8508 | } |
| 8509 | |
| 8510 | /* Was this PRB all zeros? */ |
| 8511 | if (!tap_info->non_zero_re_in_current_prb) { |
| 8512 | tap_info->num_prbs_zero++; |
| 8513 | /* Add a filter to make zero-valued PRBs more findable */ |
| 8514 | proto_item *zero_ti = proto_tree_add_item(rb_tree, hf_oran_zero_prb, tvb, |
| 8515 | samples_start, nBytesForSamples, ENC_NA0x00000000); |
| 8516 | proto_item_set_hidden(zero_ti); |
| 8517 | proto_item_append_text(prbHeading, " (all zeros)"); |
| 8518 | } |
| 8519 | else { |
| 8520 | proto_item *nonzero_ti = proto_tree_add_item(rb_tree, hf_oran_nonzero_prb, tvb, samples_start, nBytesForSamples, ENC_NA0x00000000); |
| 8521 | proto_item_set_hidden(nonzero_ti); |
| 8522 | } |
| 8523 | if (rb_power > 0.0f ) { |
| 8524 | /* Zero bit pattern does not infer zero power (see modComp) */ |
| 8525 | rb_power = rb_power/samples; |
| 8526 | total_power += rb_power; |
| 8527 | float rb_power_dB = (float) (10.0*log10(rb_power)); |
| 8528 | if ( show_unscaled_values ) { |
| 8529 | rb_power_dB = rb_power_dB - unscaled_power_correction(*sample_bit_width_ptr,compression); |
| 8530 | } |
| 8531 | proto_item_append_text(prbHeading, " [%3.2f dBFS]", rb_power_dB); |
| 8532 | proto_item * rb_power_ti = proto_tree_add_float(rb_tree, hf_oran_u_prb_power, tvb, samples_start, nBytesForSamples, rb_power_dB); |
| 8533 | proto_item_set_generated(rb_power_ti); |
| 8534 | } |
| 8535 | } |
| 8536 | |
| 8537 | tap_info->num_prbs++; |
| 8538 | |
| 8539 | |
| 8540 | /* Advance past samples */ |
| 8541 | offset += nBytesForSamples; |
| 8542 | |
| 8543 | /* Set end of prb subtree */ |
| 8544 | proto_item_set_end(prbHeading, tvb, offset); |
| 8545 | } |
| 8546 | |
| 8547 | /* Set extent of section */ |
| 8548 | proto_item_set_len(sectionHeading, offset-section_start_offset); |
| 8549 | if (ud_comp_len_ti != NULL((void*)0) && ((offset-section_start_offset != ud_comp_len))) { |
| 8550 | expert_add_info_format(pinfo, ud_comp_len_ti, &ei_oran_ud_comp_len_wrong_size, |
| 8551 | "udCompLen indicates %u bytes in section, but dissected %u instead", |
| 8552 | ud_comp_len, offset-section_start_offset); |
| 8553 | } |
| 8554 | /* Show total power: average over full bandwidth */ |
| 8555 | if ( pref_showIQSampleValues ) { |
| 8556 | if ( total_power > 0.0f ) { |
| 8557 | float power_dBFS = (float)(10.0*log10(total_power/numPrbu)); |
| 8558 | if ( show_unscaled_values ) { |
| 8559 | power_dBFS = power_dBFS - unscaled_power_correction(*sample_bit_width_ptr,compression); |
| 8560 | } |
| 8561 | proto_item *ti = proto_tree_add_float(section_tree, hf_oran_u_total_power, tvb, section_start_offset, offset-section_start_offset, power_dBFS); |
| 8562 | proto_item_set_generated(ti); |
| 8563 | proto_item_append_text(sectionHeading, " [Mean Power %3.2f dBFS]", power_dBFS); |
| 8564 | } else { |
| 8565 | proto_item_append_text(sectionHeading, " [all zeros]"); |
| 8566 | } |
| 8567 | |
| 8568 | if ( peak_power > 0.0 ) { |
| 8569 | float peak_to_average = peak_power / ((total_power/numPrbu)); |
| 8570 | peak_to_average = (float) (10.0*log10(peak_to_average)); |
| 8571 | unsigned sample_size = (peak_location + 2*(*sample_bit_width_ptr) + 7)/8 - peak_location/8; |
| 8572 | proto_item *ti = proto_tree_add_float(section_tree, hf_oran_u_peak_power, tvb, peak_location/8, sample_size, peak_to_average); |
| 8573 | proto_item_set_generated(ti); |
| 8574 | } |
| 8575 | } |
| 8576 | return offset; |
| 8577 | } |
| 8578 | |
| 8579 | /* User plane dissector (section 8) */ |
| 8580 | static int |
| 8581 | dissect_oran_u(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, |
| 8582 | oran_tap_info *tap_info, void *data _U___attribute__((unused))) |
| 8583 | { |
| 8584 | /* Hidden filter for plane */ |
| 8585 | proto_item *plane_ti = proto_tree_add_item(tree, hf_oran_uplane, tvb, 0, 0, ENC_NA0x00000000); |
| 8586 | PROTO_ITEM_SET_HIDDEN(plane_ti)proto_item_set_hidden((plane_ti)); |
| 8587 | |
| 8588 | /* Set up structures needed to add the protocol subtree and manage it */ |
| 8589 | unsigned offset = 0; |
| 8590 | |
| 8591 | col_set_str(pinfo->cinfo, COL_PROTOCOL, "O-RAN-FH-U"); |
| 8592 | col_set_str(pinfo->cinfo, COL_INFO, "U-Plane"); |
| 8593 | |
| 8594 | tap_info->userplane = true1; |
| 8595 | |
| 8596 | /* Create display subtree for the protocol */ |
| 8597 | proto_item *protocol_item = proto_tree_add_item(tree, proto_oran, tvb, 0, -1, ENC_NA0x00000000); |
| 8598 | proto_item_append_text(protocol_item, "-U"); |
| 8599 | proto_tree *oran_tree = proto_item_add_subtree(protocol_item, ett_oran); |
| 8600 | |
| 8601 | /* Transport header */ |
| 8602 | /* Real-time control data / IQ data transfer message series identifier */ |
| 8603 | uint16_t eAxC; |
| 8604 | addPcOrRtcid(tvb, oran_tree, &offset, hf_oran_ecpri_pcid, &eAxC, tap_info); |
| 8605 | tap_info->eaxc = eAxC; |
| 8606 | |
| 8607 | /* Update/report status of conversation */ |
| 8608 | flow_state_t* state = lookup_flow(pinfo, eAxC, ORAN_U_PLANE1, false0); |
| 8609 | |
| 8610 | flow_result_t *result = NULL((void*)0); |
| 8611 | |
| 8612 | /* Message identifier */ |
| 8613 | proto_item *seqIdItem; |
| 8614 | uint32_t seqId, subSeqId, e; |
| 8615 | offset = addSeqid(tvb, oran_tree, offset, ORAN_U_PLANE1, &seqId, &seqIdItem, &subSeqId, &e); |
| 8616 | |
| 8617 | uint32_t frameId = 0, subframeId = 0, slotId = 0, symbolId = 0, direction = 0; |
| 8618 | |
| 8619 | /* Add buffer to the reassembly ahead of cycling through the options */ |
| 8620 | if (do_radio_transport_layer_reassembly && (e !=1 || subSeqId!= 0)) { |
| 8621 | /* Set fragmented flag. */ |
| 8622 | bool_Bool save_fragmented = pinfo->fragmented; |
| 8623 | pinfo->fragmented = true1; |
| 8624 | fragment_head *fh; |
| 8625 | unsigned frag_data_len = tvb_reported_length_remaining(tvb, offset); |
| 8626 | |
| 8627 | /* Add this fragment into reassembly table */ |
| 8628 | /* In the absence of information from the header [might not be present], use the MAC addresses. */ |
| 8629 | int dir = cmp_address(&pinfo->src, &pinfo->dst)>0; |
| 8630 | uint32_t reassembly_id = make_reassembly_id(seqId, eAxC, dir); |
| 8631 | fh = fragment_add_seq(&oran_reassembly_table, tvb, offset, pinfo, |
| 8632 | reassembly_id, /* id */ |
| 8633 | GUINT_TO_POINTER(reassembly_id)((gpointer) (gulong) (reassembly_id)), /* data */ |
| 8634 | subSeqId, /* frag_number */ |
| 8635 | frag_data_len, /* frag_data_len */ |
| 8636 | !e, /* more_frags */ |
| 8637 | 0); |
| 8638 | |
| 8639 | bool_Bool update_col_info = true1; |
| 8640 | |
| 8641 | /* See if this completes an SDU */ |
| 8642 | tvbuff_t *original_tvb = tvb; |
| 8643 | tvbuff_t *next_tvb = process_reassembled_data(tvb, offset, pinfo, "Reassembled O-RAN FH CUS Payload", |
| 8644 | fh, &oran_frag_items, |
| 8645 | &update_col_info, oran_tree); |
| 8646 | if (next_tvb) { |
| 8647 | /* Have reassembled data */ |
| 8648 | proto_tree_add_item(oran_tree, hf_oran_payload, next_tvb, 0, -1, ENC_NA0x00000000); |
| 8649 | col_append_fstr(pinfo->cinfo, COL_INFO, " Reassembled Data (%u bytes)", tvb_reported_length(next_tvb)); |
| 8650 | } |
| 8651 | /* Will continue with either reassembled tvb or NULL */ |
| 8652 | tvb = next_tvb; |
| 8653 | |
| 8654 | /* Restore fragmented flag */ |
| 8655 | pinfo->fragmented = save_fragmented; |
| 8656 | |
| 8657 | /* Don't dissect any more if not complete yet.. */ |
| 8658 | if (tvb == NULL((void*)0)) { |
| 8659 | /* For subseq=0 it's possible to do a partial decode to display the timing header |
| 8660 | and first section header, but not much more */ |
| 8661 | if ( subSeqId == 0 ) { |
| 8662 | if ( tvb_reported_length_remaining(original_tvb, offset) >= 4 ) { |
| 8663 | proto_item * timingHeader = proto_tree_add_string_format(oran_tree, hf_oran_timing_header, |
| 8664 | original_tvb, offset, 4, "", "Timing Header ("); |
| 8665 | offset = dissect_oran_u_timing_header(original_tvb, pinfo, offset, timingHeader, tap_info, &frameId, &subframeId, &slotId, &symbolId, &direction); |
| 8666 | |
| 8667 | if ( tvb_reported_length_remaining(original_tvb, offset) >= 4 ) { |
| 8668 | uint32_t sectionId, rb, startPrbu, numPrbu; |
| 8669 | section_details_t *section_details = NULL((void*)0); |
| 8670 | proto_item *sectionHeading = proto_tree_add_string_format(oran_tree, hf_oran_u_section, |
| 8671 | original_tvb, offset, 0, "", "Section"); |
| 8672 | proto_tree *section_tree = proto_item_add_subtree(sectionHeading, ett_oran_u_section); |
| 8673 | |
| 8674 | /* No C-plane linking for a partial decode */ |
| 8675 | offset = dissect_oran_u_section_header(original_tvb, pinfo, offset, section_tree, tap_info, NULL((void*)0), NULL((void*)0), |
| 8676 | frameId, subframeId, slotId, symbolId, direction, §ionId, &rb, |
| 8677 | &startPrbu, &numPrbu, §ion_details); |
| 8678 | } |
| 8679 | } |
| 8680 | } |
| 8681 | return tvb_captured_length(original_tvb); |
| 8682 | } |
| 8683 | offset = 0; /* This sorts out the reading of the timing header and the first section header */ |
| 8684 | } |
| 8685 | |
| 8686 | proto_item * timingHeader = proto_tree_add_string_format(oran_tree, hf_oran_timing_header, |
| 8687 | tvb, offset, 4, "", "Timing Header ("); |
| 8688 | offset = dissect_oran_u_timing_header(tvb, pinfo, offset, timingHeader, tap_info, &frameId, &subframeId, &slotId, &symbolId, &direction); |
| 8689 | |
| 8690 | unsigned sample_bit_width; |
| 8691 | unsigned compression; |
| 8692 | int includeUdCompHeader; |
| 8693 | |
| 8694 | /* Also lookup C-PLANE state (sent in opposite direction for UL) so may check current compression settings */ |
| 8695 | flow_state_t* cplane_state = lookup_flow(pinfo, eAxC, ORAN_C_PLANE0, direction == 0); |
| 8696 | |
| 8697 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 8698 | /* Create state/conversation if doesn't exist yet */ |
| 8699 | if (!state) { |
| 8700 | /* Allocate new state */ |
| 8701 | state = wmem_new0(wmem_file_scope(), flow_state_t)((flow_state_t*)wmem_alloc0((wmem_file_scope()), sizeof(flow_state_t ))); |
| 8702 | state->ack_nack_requests = wmem_tree_new(wmem_file_scope()); |
| 8703 | state->expected_sections[0] = wmem_tree_new(wmem_file_scope()); |
| 8704 | state->expected_sections[1] = wmem_tree_new(wmem_file_scope()); |
| 8705 | store_flow(pinfo, eAxC, ORAN_U_PLANE1, false0, state); |
| 8706 | } |
| 8707 | |
| 8708 | result = wmem_new0(wmem_file_scope(), flow_result_t)((flow_result_t*)wmem_alloc0((wmem_file_scope()), sizeof(flow_result_t ))); |
| 8709 | result->expected_sections = wmem_tree_new(wmem_file_scope()); |
| 8710 | result->u_plane_frames = wmem_list_new(wmem_file_scope()); |
| 8711 | result->cplane_seen = (cplane_state != NULL((void*)0)); |
| 8712 | |
| 8713 | wmem_tree_insert32(flow_results_table, pinfo->num, result); |
| 8714 | |
| 8715 | /* Check sequence analysis status (but not if later part of radio layer fragmentation) */ |
| 8716 | if (state->last_frame_seen[direction] && (subSeqId==0) && (seqId != state->next_expected_sequence_number[direction])) { |
| 8717 | /* Store this result */ |
| 8718 | result->unexpected_seq_number = true1; |
| 8719 | result->expected_sequence_number = state->next_expected_sequence_number[direction]; |
| 8720 | result->previous_frame = state->last_frame[direction]; |
| 8721 | } |
| 8722 | /* Update sequence analysis state */ |
| 8723 | state->last_frame[direction] = pinfo->num; |
| 8724 | state->last_frame_seen[direction] = true1; |
| 8725 | state->next_expected_sequence_number[direction] = (seqId+1) % 256; |
| 8726 | } |
| 8727 | |
| 8728 | /* Show any issues associated with this frame number */ |
| 8729 | result = wmem_tree_lookup32(flow_results_table, pinfo->num); |
| 8730 | if (result) { |
| 8731 | if (result->unexpected_seq_number) { |
| 8732 | expert_add_info_format(pinfo, seqIdItem, |
| 8733 | (direction == DIR_UPLINK0) ? |
| 8734 | &ei_oran_uplane_unexpected_sequence_number_ul : |
| 8735 | &ei_oran_uplane_unexpected_sequence_number_dl, |
| 8736 | "Sequence number %u expected, but got %u", |
| 8737 | result->expected_sequence_number, seqId); |
| 8738 | tap_info->missing_sns = (256 + seqId - result->expected_sequence_number) % 256; |
| 8739 | |
| 8740 | /* Show link back to previous frame in stream */ |
| 8741 | proto_item *prev_ti = proto_tree_add_uint(proto_item_get_subtree(proto_item_get_parent(seqIdItem)), |
| 8742 | hf_oran_previous_frame, tvb, 0, 0, result->previous_frame); |
| 8743 | proto_item_set_generated(prev_ti); |
| 8744 | } |
| 8745 | } |
| 8746 | |
| 8747 | /* Checking UL timing within current slot. Disabled if limit set to 0. */ |
| 8748 | /* N.B., timing is relative to first seen frame, |
| 8749 | not some notion of the beginning of the slot from sync, offset by some timing.. */ |
| 8750 | if (direction == DIR_UPLINK0 && us_allowed_for_ul_in_symbol > 0) { |
| 8751 | uint32_t timing_key = get_timing_key(frameId, subframeId, slotId, symbolId); |
| 8752 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited)) { |
| 8753 | /* Set state on first pass */ |
| 8754 | ul_timing_for_slot* timing = (ul_timing_for_slot*)wmem_tree_lookup32(ul_symbol_timing, timing_key); |
| 8755 | if (!timing) { |
| 8756 | /* Allocate new state */ |
| 8757 | timing = wmem_new0(wmem_file_scope(), ul_timing_for_slot)((ul_timing_for_slot*)wmem_alloc0((wmem_file_scope()), sizeof (ul_timing_for_slot))); |
| 8758 | timing->first_frame = pinfo->num; |
| 8759 | timing->first_frame_time = pinfo->abs_ts; |
| 8760 | timing->frames_seen_in_symbol = 1; |
| 8761 | timing->last_frame_in_symbol = pinfo->num; |
| 8762 | wmem_tree_insert32(ul_symbol_timing, timing_key, timing); |
| 8763 | } |
| 8764 | else { |
| 8765 | /* Update existing state */ |
| 8766 | timing->frames_seen_in_symbol++; |
| 8767 | timing->last_frame_in_symbol = pinfo->num; |
| 8768 | } |
| 8769 | } |
| 8770 | else { |
| 8771 | /* Subsequent passes - look up result */ |
| 8772 | ul_timing_for_slot* timing = (ul_timing_for_slot*)wmem_tree_lookup32(ul_symbol_timing, timing_key); |
| 8773 | if (timing) { /* Really shouldn't fail! */ |
| 8774 | if (timing->frames_seen_in_symbol > 1) { |
| 8775 | /* Work out gap between frames (in microseconds) back to frame carrying first seen symbol */ |
| 8776 | uint32_t total_gap = time_gap(&pinfo->abs_ts, &timing->first_frame_time, 1000); |
| 8777 | |
| 8778 | /* Show how long it has been */ |
| 8779 | proto_item *ti = NULL((void*)0); |
| 8780 | if (pinfo->num != timing->first_frame) { |
| 8781 | ti = proto_tree_add_uint(timingHeader, hf_oran_u_section_ul_symbol_time, tvb, 0, 0, total_gap); |
| 8782 | proto_item_set_generated(ti); |
| 8783 | } |
| 8784 | |
| 8785 | if (total_gap > us_allowed_for_ul_in_symbol) { |
| 8786 | expert_add_info_format(pinfo, ti, &ei_oran_ul_uplane_symbol_too_long, |
| 8787 | "UL U-Plane Tx took longer (%u\u03bcs) than limit set in preferences (%u\u03bcs)", |
| 8788 | total_gap, us_allowed_for_ul_in_symbol); |
| 8789 | proto_item_append_text(timingHeader, " (%u\u03bcs since first frame seen for symbol)", total_gap); |
| 8790 | } |
| 8791 | |
| 8792 | /* Show how many frames were received */ |
| 8793 | ti = proto_tree_add_uint(timingHeader, hf_oran_u_section_ul_symbol_frames, tvb, 0, 0, timing->frames_seen_in_symbol); |
| 8794 | proto_item_set_generated(ti); |
| 8795 | |
| 8796 | /* Link to first frame for this symbol */ |
| 8797 | if (pinfo->num != timing->first_frame) { |
| 8798 | ti = proto_tree_add_uint(timingHeader, hf_oran_u_section_ul_symbol_first_frame, tvb, 0, 0, timing->first_frame); |
| 8799 | proto_item_set_generated(ti); |
| 8800 | } |
| 8801 | |
| 8802 | /* And also last frame */ |
| 8803 | if (pinfo->num != timing->last_frame_in_symbol) { |
| 8804 | ti = proto_tree_add_uint(timingHeader, hf_oran_u_section_ul_symbol_last_frame, tvb, 0, 0, timing->last_frame_in_symbol); |
| 8805 | proto_item_set_generated(ti); |
| 8806 | } |
| 8807 | |
| 8808 | tap_info->ul_delay_in_us = total_gap; |
| 8809 | } |
| 8810 | } |
| 8811 | } |
| 8812 | } |
| 8813 | |
| 8814 | |
| 8815 | /* Look up preferences for samples */ |
| 8816 | if (direction == DIR_UPLINK0) { |
| 8817 | sample_bit_width = pref_sample_bit_width_uplink; |
| 8818 | compression = pref_iqCompressionUplink; |
| 8819 | includeUdCompHeader = pref_includeUdCompHeaderUplink; |
| 8820 | } |
| 8821 | else { |
| 8822 | sample_bit_width = pref_sample_bit_width_downlink; |
| 8823 | compression = pref_iqCompressionDownlink; |
| 8824 | includeUdCompHeader = pref_includeUdCompHeaderDownlink; |
| 8825 | } |
| 8826 | |
| 8827 | /* If uplink, load any udCompHdr settings written by C-Plane */ |
| 8828 | bool_Bool ud_cmp_hdr_cplane = false0; |
| 8829 | if (result && direction == 0) { |
| 8830 | /* On first pass, keep the settings the C-Plane has written so far */ |
| 8831 | if (!PINFO_FD_VISITED(pinfo)((pinfo)->fd->visited) && cplane_state && cplane_state->ul_ud_comp_hdr_set) { |
| 8832 | result->ul_ud_comp_hdr_set = true1; |
| 8833 | result->ul_ud_comp_hdr_bit_width = cplane_state->ul_ud_comp_hdr_bit_width; |
| 8834 | result->ul_ud_comp_hdr_compression = cplane_state->ul_ud_comp_hdr_compression; |
| 8835 | result->ul_ud_comp_hdr_frame = cplane_state->ul_ud_comp_hdr_frame; |
| 8836 | } |
| 8837 | /* Initialise settings from udpCompHdr from C-Plane */ |
| 8838 | if (result->ul_ud_comp_hdr_set && !pref_override_ul_compression) { |
| 8839 | sample_bit_width = result->ul_ud_comp_hdr_bit_width; |
| 8840 | compression = result->ul_ud_comp_hdr_compression; |
| 8841 | ud_cmp_hdr_cplane = true1; |
| 8842 | } |
| 8843 | } |
| 8844 | |
| 8845 | /* Need a valid value (e.g. 9, 14). 0 definitely won't work, as won't progress around loop! */ |
| 8846 | /* N.B. may yet be overwritten by udCompHdr settings in sections below! */ |
| 8847 | if (sample_bit_width == 0 || sample_bit_width > 16) { |
| 8848 | expert_add_info_format(pinfo, protocol_item, &ei_oran_invalid_sample_bit_width, |
| 8849 | "%cL Sample bit width from %s (%u) not valid, so can't decode sections", |
| 8850 | (direction == DIR_UPLINK0) ? 'U' : 'D', |
| 8851 | !ud_cmp_hdr_cplane ? "preference" : "C-Plane", |
| 8852 | sample_bit_width); |
| 8853 | return offset; |
| 8854 | } |
| 8855 | |
| 8856 | unsigned bytesLeft; |
| 8857 | unsigned number_of_sections = 0; |
| 8858 | unsigned nBytesPerPrb =0; |
| 8859 | |
| 8860 | /* Add each section (not from count, just keep parsing until payload used) */ |
| 8861 | do { |
| 8862 | offset = dissect_oran_u_section(tvb, pinfo, offset, oran_tree, protocol_item, tap_info, state, result, cplane_state, |
| 8863 | frameId, subframeId, slotId, symbolId, direction, includeUdCompHeader, |
| 8864 | &sample_bit_width, compression, ud_cmp_hdr_cplane, &nBytesPerPrb); |
| 8865 | bytesLeft = tvb_captured_length(tvb) - offset; |
| 8866 | number_of_sections++; |
| 8867 | } while (bytesLeft >= 4); /* eCPRI payload ends after the sections and 0-3 bytes of padding */ |
| 8868 | |
| 8869 | /* Show number of sections found */ |
| 8870 | proto_item *ti = proto_tree_add_uint(oran_tree, hf_oran_numberOfSections, tvb, 0, 0, number_of_sections); |
| 8871 | proto_item_set_generated(ti); |
| 8872 | |
| 8873 | return tvb_captured_length(tvb); |
| 8874 | } |
| 8875 | |
| 8876 | |
| 8877 | /**********************************************************************/ |
| 8878 | /* Main dissection function. */ |
| 8879 | /* N.B. ecpri message type passed in as 'data' arg by eCPRI dissector */ |
| 8880 | static int |
| 8881 | dissect_oran(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) |
| 8882 | { |
| 8883 | if (data == NULL((void*)0)) { |
| 8884 | return 0; |
| 8885 | } |
| 8886 | uint32_t ecpri_message_type = *(uint32_t *)data; |
| 8887 | unsigned offset = 0; |
| 8888 | |
| 8889 | /* Allocate and zero tap struct */ |
| 8890 | oran_tap_info *tap_info = wmem_new0(pinfo->pool, oran_tap_info)((oran_tap_info*)wmem_alloc0((pinfo->pool), sizeof(oran_tap_info ))); |
| 8891 | tap_info->pdu_size = pinfo->fd->pkt_len; |
| 8892 | tap_info->ul_delay_configured_max = us_allowed_for_ul_in_symbol; |
| 8893 | |
| 8894 | switch (ecpri_message_type) { |
| 8895 | case ECPRI_MT_IQ_DATA0: |
| 8896 | offset = dissect_oran_u(tvb, pinfo, tree, tap_info, data); |
| 8897 | break; |
| 8898 | case ECPRI_MT_RT_CTRL_DATA2: |
| 8899 | offset = dissect_oran_c(tvb, pinfo, tree, tap_info, data); |
| 8900 | break; |
| 8901 | default: |
| 8902 | /* Not dissecting other types - assume these are handled by eCPRI dissector */ |
| 8903 | return 0; |
| 8904 | } |
| 8905 | |
| 8906 | tap_queue_packet(oran_tap, pinfo, tap_info); |
| 8907 | |
| 8908 | return offset; |
| 8909 | } |
| 8910 | |
| 8911 | static void oran_init_protocol(void) |
| 8912 | { |
| 8913 | udcomplen_heuristic_result_set = false0; |
| 8914 | udcomplen_heuristic_result = false0; |
| 8915 | } |
| 8916 | |
| 8917 | |
| 8918 | /* Register the protocol with Wireshark. */ |
| 8919 | void |
| 8920 | proto_register_oran(void) |
| 8921 | { |
| 8922 | static hf_register_info hf[] = { |
| 8923 | |
| 8924 | /* Section 5.1.3.2.7 */ |
| 8925 | { &hf_oran_du_port_id, |
| 8926 | { "DU Port ID", "oran_fh_cus.du_port_id", |
| 8927 | FT_UINT16, BASE_DEC, |
| 8928 | NULL((void*)0), 0x0, |
| 8929 | "Processing unit at O-RU - width set in dissector preference", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8930 | }, |
| 8931 | |
| 8932 | /* Section 5.1.3.2.7 */ |
| 8933 | { &hf_oran_bandsector_id, |
| 8934 | { "BandSector ID", "oran_fh_cus.bandsector_id", |
| 8935 | FT_UINT16, BASE_DEC, |
| 8936 | NULL((void*)0), 0x0, |
| 8937 | "Aggregated cell identified - width set in dissector preference", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8938 | }, |
| 8939 | |
| 8940 | /* Section 5.1.3.2.7 */ |
| 8941 | { &hf_oran_cc_id, |
| 8942 | { "CC ID", "oran_fh_cus.cc_id", |
| 8943 | FT_UINT16, BASE_DEC, |
| 8944 | NULL((void*)0), 0x0, |
| 8945 | "Component Carrier - width set in dissector preference", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8946 | }, |
| 8947 | |
| 8948 | /* Section 5.1.3.2.7 */ |
| 8949 | { &hf_oran_ru_port_id, |
| 8950 | { "RU Port ID", "oran_fh_cus.ru_port_id", |
| 8951 | FT_UINT16, BASE_DEC, |
| 8952 | NULL((void*)0), 0x0, |
| 8953 | "Logical flow - width set in dissector preference", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8954 | }, |
| 8955 | |
| 8956 | /* Section 5.1.3.2.8 */ |
| 8957 | { &hf_oran_sequence_id, |
| 8958 | { "Sequence ID", "oran_fh_cus.sequence_id", |
| 8959 | FT_UINT8, BASE_DEC, |
| 8960 | NULL((void*)0), 0x0, |
| 8961 | "The Sequence ID wraps around individually per eAxC", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8962 | }, |
| 8963 | |
| 8964 | /* Section 5.1.3.2.8 */ |
| 8965 | { &hf_oran_e_bit, |
| 8966 | { "E Bit", "oran_fh_cus.e_bit", |
| 8967 | FT_UINT8, BASE_DEC, |
| 8968 | VALS(e_bit)((0 ? (const struct _value_string*)0 : ((e_bit)))), 0x80, |
| 8969 | "Indicate the last message of a subsequence (U-Plane only)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8970 | }, |
| 8971 | |
| 8972 | /* Section 5.1.3.2.8 */ |
| 8973 | { &hf_oran_subsequence_id, |
| 8974 | { "Subsequence ID", "oran_fh_cus.subsequence_id", |
| 8975 | FT_UINT8, BASE_DEC, |
| 8976 | NULL((void*)0), 0x7f, |
| 8977 | "The subsequence ID (for eCPRI layer fragmentation)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8978 | }, |
| 8979 | |
| 8980 | { &hf_oran_previous_frame, |
| 8981 | { "Previous frame in stream", "oran_fh_cus.previous-frame", |
| 8982 | FT_FRAMENUM, BASE_NONE, |
| 8983 | FRAMENUM_TYPE(FT_FRAMENUM_NONE)((gpointer) (glong) (FT_FRAMENUM_NONE)), 0x0, |
| 8984 | "Previous frame in sequence", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8985 | }, |
| 8986 | |
| 8987 | /* Section 7.5.2.1 */ |
| 8988 | { &hf_oran_data_direction, |
| 8989 | { "Data Direction", "oran_fh_cus.data_direction", |
| 8990 | FT_UINT8, BASE_DEC, |
| 8991 | VALS(data_direction_vals)((0 ? (const struct _value_string*)0 : ((data_direction_vals) ))), 0x80, |
| 8992 | "gNB data direction", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 8993 | }, |
| 8994 | |
| 8995 | /* Section 7.5.2.2 */ |
| 8996 | { &hf_oran_payload_version, |
| 8997 | { "Payload Version", "oran_fh_cus.payloadVersion", |
| 8998 | FT_UINT8, BASE_DEC, |
| 8999 | NULL((void*)0), 0x70, |
| 9000 | "Payload protocol version the following IEs", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9001 | }, |
| 9002 | |
| 9003 | /* Section 7.5.2.3 */ |
| 9004 | { &hf_oran_filter_index, |
| 9005 | { "Filter Index", "oran_fh_cus.filterIndex", |
| 9006 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 9007 | RVALS(filter_indices)((0 ? (const struct _range_string*)0 : ((filter_indices)))), 0x0f, |
| 9008 | "used between IQ data and air interface, both in DL and UL", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9009 | }, |
| 9010 | |
| 9011 | /* Section 7.5.2.4 */ |
| 9012 | { &hf_oran_frame_id, |
| 9013 | { "Frame ID", "oran_fh_cus.frameId", |
| 9014 | FT_UINT8, BASE_DEC, |
| 9015 | NULL((void*)0), 0x0, |
| 9016 | "A counter for 10 ms frames (wrapping period 2.56 seconds)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9017 | }, |
| 9018 | |
| 9019 | /* Section 7.5.2.5 */ |
| 9020 | { &hf_oran_subframe_id, |
| 9021 | { "Subframe ID", "oran_fh_cus.subframe_id", |
| 9022 | FT_UINT8, BASE_DEC, |
| 9023 | NULL((void*)0), 0xf0, |
| 9024 | "A counter for 1 ms sub-frames within 10ms frame", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9025 | }, |
| 9026 | |
| 9027 | /* Section 7.5.2.6 */ |
| 9028 | { &hf_oran_slot_id, |
| 9029 | { "Slot ID", "oran_fh_cus.slotId", |
| 9030 | FT_UINT16, BASE_DEC, |
| 9031 | NULL((void*)0), 0x0fc0, |
| 9032 | "Slot number within a 1ms sub-frame", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9033 | }, |
| 9034 | |
| 9035 | /* Generated for convenience */ |
| 9036 | { &hf_oran_slot_within_frame, |
| 9037 | { "Slot within frame", "oran_fh_cus.slot-within-frame", |
| 9038 | FT_UINT16, BASE_DEC, |
| 9039 | NULL((void*)0), 0x0, |
| 9040 | "Slot within frame, to match DCT logs", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9041 | }, |
| 9042 | |
| 9043 | /* Section 7.5.2.7 */ |
| 9044 | { &hf_oran_start_symbol_id, |
| 9045 | { "Start Symbol ID", "oran_fh_cus.startSymbolId", |
| 9046 | FT_UINT8, BASE_DEC, |
| 9047 | NULL((void*)0), 0x3f, |
| 9048 | "The first symbol number within slot affected", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9049 | }, |
| 9050 | |
| 9051 | /* Section 7.5.2.8 */ |
| 9052 | { &hf_oran_numberOfSections, |
| 9053 | { "Number of Sections", "oran_fh_cus.numberOfSections", |
| 9054 | FT_UINT8, BASE_DEC, |
| 9055 | NULL((void*)0), 0x0, |
| 9056 | "The number of section IDs included in this message", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9057 | }, |
| 9058 | |
| 9059 | /* Section 7.5.2.9 */ |
| 9060 | { &hf_oran_sectionType, |
| 9061 | { "Section Type", "oran_fh_cus.sectionType", |
| 9062 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 9063 | RVALS(section_types)((0 ? (const struct _range_string*)0 : ((section_types)))), 0x0, |
| 9064 | "Determines the characteristics of U-plane data", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9065 | }, |
| 9066 | |
| 9067 | /* Section 7.5.2.10 */ |
| 9068 | { &hf_oran_udCompHdr, |
| 9069 | { "udCompHdr", "oran_fh_cus.udCompHdr", |
| 9070 | FT_STRING, BASE_NONE, |
| 9071 | NULL((void*)0), 0x0, |
| 9072 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9073 | }, |
| 9074 | |
| 9075 | /* Section 7.5.2.11 */ |
| 9076 | { &hf_oran_numberOfUEs, |
| 9077 | { "Number Of UEs", "oran_fh_cus.numberOfUEs", |
| 9078 | FT_UINT8, BASE_DEC, |
| 9079 | NULL((void*)0), 0x0, |
| 9080 | "Indicates number of UEs for which channel info is provided", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9081 | }, |
| 9082 | |
| 9083 | /* Section 7.5.2.12 */ |
| 9084 | { &hf_oran_timeOffset, |
| 9085 | { "Time Offset", "oran_fh_cus.timeOffset", |
| 9086 | FT_UINT16, BASE_DEC, |
| 9087 | NULL((void*)0), 0x0, |
| 9088 | "from start of the slot to start of CP in samples", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9089 | }, |
| 9090 | |
| 9091 | /* Section 7.5.2.13 */ |
| 9092 | { &hf_oran_frameStructure_fft, |
| 9093 | { "FFT Size", "oran_fh_cus.frameStructure.fft", |
| 9094 | FT_UINT8, BASE_HEX | BASE_RANGE_STRING0x00000100, |
| 9095 | RVALS(frame_structure_fft)((0 ? (const struct _range_string*)0 : ((frame_structure_fft) ))), 0xf0, |
| 9096 | "The FFT/iFFT size being used for all IQ data processing related to this message", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 9097 | }, |
| 9098 | |
| 9099 | /* Section 7.5.2.13 */ |
| 9100 | { &hf_oran_frameStructure_subcarrier_spacing, |
| 9101 | { "Subcarrier Spacing", "oran_fh_cus.frameStructure.spacing", |
| 9102 | FT_UINT8, BASE_HEX | BASE_RANGE_STRING0x00000100, |
| 9103 | RVALS(subcarrier_spacings)((0 ? (const struct _range_string*)0 : ((subcarrier_spacings) ))), 0x0f, |
| 9104 | "The sub carrier spacing as well as the number of slots per 1ms sub-frame", |
| 9105 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 9106 | }, |
| 9107 | |
| 9108 | /* Section 7.5.2.14 */ |
| 9109 | { &hf_oran_cpLength, |
| 9110 | { "cpLength", "oran_fh_cus.cpLength", |
| 9111 | FT_UINT16, BASE_DEC, |
| 9112 | NULL((void*)0), 0x0, |
| 9113 | "cyclic prefix length", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9114 | }, |
| 9115 | |
| 9116 | { &hf_oran_timing_header, |
| 9117 | { "Timing Header", "oran_fh_cus.timingHeader", |
| 9118 | FT_STRING, BASE_NONE, |
| 9119 | NULL((void*)0), 0x0, |
| 9120 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9121 | }, |
| 9122 | |
| 9123 | /* Section 7.5.3.1 */ |
| 9124 | { &hf_oran_section_id, |
| 9125 | { "sectionId", "oran_fh_cus.sectionId", |
| 9126 | FT_UINT16, BASE_DEC, |
| 9127 | NULL((void*)0), 0xfff0, |
| 9128 | "section identifier of data", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9129 | }, |
| 9130 | |
| 9131 | /* Section 7.5.3.2 */ |
| 9132 | { &hf_oran_rb, |
| 9133 | { "rb", "oran_fh_cus.rb", |
| 9134 | FT_UINT8, BASE_DEC, |
| 9135 | VALS(rb_vals)((0 ? (const struct _value_string*)0 : ((rb_vals)))), 0x08, |
| 9136 | "resource block indicator", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9137 | }, |
| 9138 | |
| 9139 | /* Section 7.5.5.3 */ |
| 9140 | { &hf_oran_symInc, |
| 9141 | { "symInc", "oran_fh_cus.symInc", |
| 9142 | FT_UINT8, BASE_DEC, |
| 9143 | VALS(sym_inc_vals)((0 ? (const struct _value_string*)0 : ((sym_inc_vals)))), 0x04, |
| 9144 | "Symbol Number Increment Command", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9145 | }, |
| 9146 | |
| 9147 | /* Section 7.5.3.4 */ |
| 9148 | { &hf_oran_startPrbc, |
| 9149 | { "startPrbc", "oran_fh_cus.startPrbc", |
| 9150 | FT_UINT16, BASE_DEC, |
| 9151 | NULL((void*)0), 0x03ff, |
| 9152 | "Starting PRB of Control Plane Section", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9153 | }, |
| 9154 | |
| 9155 | /* Section 7.5.3.5 */ |
| 9156 | { &hf_oran_reMask_re1, |
| 9157 | { "RE 1", "oran_fh_cus.reMask-RE1", |
| 9158 | FT_BOOLEAN, 16, |
| 9159 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x8000, |
| 9160 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9161 | }, |
| 9162 | { &hf_oran_reMask_re2, |
| 9163 | { "RE 2", "oran_fh_cus.reMask-RE2", |
| 9164 | FT_BOOLEAN, 16, |
| 9165 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x4000, |
| 9166 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9167 | }, |
| 9168 | { &hf_oran_reMask_re3, |
| 9169 | { "RE 3", "oran_fh_cus.reMask-RE3", |
| 9170 | FT_BOOLEAN, 16, |
| 9171 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x2000, |
| 9172 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9173 | }, |
| 9174 | { &hf_oran_reMask_re4, |
| 9175 | { "RE 4", "oran_fh_cus.reMask-RE4", |
| 9176 | FT_BOOLEAN, 16, |
| 9177 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x1000, |
| 9178 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9179 | }, |
| 9180 | { &hf_oran_reMask_re5, |
| 9181 | { "RE 5", "oran_fh_cus.reMask-RE5", |
| 9182 | FT_BOOLEAN, 16, |
| 9183 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0800, |
| 9184 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9185 | }, |
| 9186 | { &hf_oran_reMask_re6, |
| 9187 | { "RE 6", "oran_fh_cus.reMask-RE6", |
| 9188 | FT_BOOLEAN, 16, |
| 9189 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0400, |
| 9190 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9191 | }, |
| 9192 | { &hf_oran_reMask_re7, |
| 9193 | { "RE 7", "oran_fh_cus.reMask-RE7", |
| 9194 | FT_BOOLEAN, 16, |
| 9195 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0200, |
| 9196 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9197 | }, |
| 9198 | { &hf_oran_reMask_re8, |
| 9199 | { "RE 8", "oran_fh_cus.reMask-RE8", |
| 9200 | FT_BOOLEAN, 16, |
| 9201 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0100, |
| 9202 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9203 | }, |
| 9204 | { &hf_oran_reMask_re9, |
| 9205 | { "RE 9", "oran_fh_cus.reMask-RE9", |
| 9206 | FT_BOOLEAN, 16, |
| 9207 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0080, |
| 9208 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9209 | }, |
| 9210 | { &hf_oran_reMask_re10, |
| 9211 | { "RE 10", "oran_fh_cus.reMask-RE10", |
| 9212 | FT_BOOLEAN, 16, |
| 9213 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0040, |
| 9214 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9215 | }, |
| 9216 | { &hf_oran_reMask_re11, |
| 9217 | { "RE 11", "oran_fh_cus.reMask-RE11", |
| 9218 | FT_BOOLEAN, 16, |
| 9219 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0020, |
| 9220 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9221 | }, |
| 9222 | { &hf_oran_reMask_re12, |
| 9223 | { "RE 12", "oran_fh_cus.reMask-RE12", |
| 9224 | FT_BOOLEAN, 16, |
| 9225 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0010, |
| 9226 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9227 | }, |
| 9228 | { &hf_oran_reMask, |
| 9229 | { "RE Mask", "oran_fh_cus.reMask", |
| 9230 | FT_UINT16, BASE_HEX, |
| 9231 | NULL((void*)0), 0xfff0, |
| 9232 | "The Resource Element (RE) mask within a PRB", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9233 | }, |
| 9234 | |
| 9235 | /* Section 7.5.3.6 */ |
| 9236 | { &hf_oran_numPrbc, |
| 9237 | { "numPrbc", "oran_fh_cus.numPrbc", |
| 9238 | FT_UINT8, BASE_DEC, |
| 9239 | NULL((void*)0), 0x0, |
| 9240 | "Number of contiguous PRBs per data section description", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9241 | }, |
| 9242 | /* Section 7.5.3.7 */ |
| 9243 | { &hf_oran_numSymbol, |
| 9244 | { "Number of Symbols", "oran_fh_cus.numSymbol", |
| 9245 | FT_UINT8, BASE_DEC, |
| 9246 | NULL((void*)0), 0x0f, |
| 9247 | "Defines number of symbols to which the section control is applicable", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9248 | }, |
| 9249 | /* Section 7.5.3.8 */ |
| 9250 | { &hf_oran_ef, |
| 9251 | { "Extension Flag", "oran_fh_cus.ef", |
| 9252 | FT_BOOLEAN, 8, |
| 9253 | NULL((void*)0), 0x80, |
| 9254 | "Indicates if more section extensions follow", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9255 | }, |
| 9256 | /* Section 7.5.3.9 */ |
| 9257 | { &hf_oran_beamId, |
| 9258 | { "Beam ID", "oran_fh_cus.beamId", |
| 9259 | FT_UINT16, BASE_DEC, |
| 9260 | NULL((void*)0), 0x7fff, |
| 9261 | "Defines the beam pattern to be applied to the U-Plane data", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9262 | }, |
| 9263 | |
| 9264 | { &hf_oran_extension, |
| 9265 | { "Extension", "oran_fh_cus.extension", |
| 9266 | FT_STRING, BASE_NONE, |
| 9267 | NULL((void*)0), 0x0, |
| 9268 | "Section extension", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9269 | }, |
| 9270 | |
| 9271 | /* Section 7.6.2.1 */ |
| 9272 | { &hf_oran_exttype, |
| 9273 | { "extType", "oran_fh_cus.extType", |
| 9274 | FT_UINT8, BASE_DEC|BASE_EXT_STRING0x00000200, |
| 9275 | &exttype_vals_ext, 0x7f, |
| 9276 | "The extension type, which provides additional parameters specific to subject data extension", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9277 | }, |
| 9278 | |
| 9279 | /* Section 7.6.2.3 */ |
| 9280 | { &hf_oran_extlen, |
| 9281 | { "extLen", "oran_fh_cus.extLen", |
| 9282 | FT_UINT16, BASE_DEC, |
| 9283 | NULL((void*)0), 0x0, |
| 9284 | "Extension length in 32-bit words", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9285 | }, |
| 9286 | |
| 9287 | /* Section 7.7.1 */ |
| 9288 | { &hf_oran_bfw, |
| 9289 | { "bfw", "oran_fh_cus.bfw", |
| 9290 | FT_STRING, BASE_NONE, |
| 9291 | NULL((void*)0), 0x0, |
| 9292 | "Set of weights for a particular antenna", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9293 | }, |
| 9294 | { &hf_oran_bfw_bundle, |
| 9295 | { "Bundle", "oran_fh_cus.bfw.bundle", |
| 9296 | FT_STRING, BASE_NONE, |
| 9297 | NULL((void*)0), 0x0, |
| 9298 | "Bundle of BFWs", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9299 | }, |
| 9300 | { &hf_oran_bfw_bundle_id, |
| 9301 | { "Bundle Id", "oran_fh_cus.bfw.bundleId", |
| 9302 | FT_UINT32, BASE_DEC, |
| 9303 | NULL((void*)0), 0x0, |
| 9304 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9305 | }, |
| 9306 | /* Section 7.7.1.4 */ |
| 9307 | { &hf_oran_bfw_i, |
| 9308 | { "bfwI", "oran_fh_cus.bfwI", |
| 9309 | FT_FLOAT, BASE_NONE, |
| 9310 | NULL((void*)0), 0x0, |
| 9311 | "In-phase", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9312 | }, |
| 9313 | /* Section 7.7.1.5 */ |
| 9314 | { &hf_oran_bfw_q, |
| 9315 | { "bfwQ", "oran_fh_cus.bfwQ", |
| 9316 | FT_FLOAT, BASE_NONE, |
| 9317 | NULL((void*)0), 0x0, |
| 9318 | "Quadrature", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9319 | }, |
| 9320 | |
| 9321 | /* Section 7.5.3.10 */ |
| 9322 | { &hf_oran_ueId, |
| 9323 | { "UE ID", "oran_fh_cus.ueId", |
| 9324 | FT_UINT16, BASE_DEC, |
| 9325 | NULL((void*)0), 0x7fff, |
| 9326 | "logical identifier for set of channel info", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9327 | }, |
| 9328 | /* Section 7.5.3.11 */ |
| 9329 | { &hf_oran_freqOffset, |
| 9330 | { "Frequency Offset", "oran_fh_cus.freqOffset", |
| 9331 | FT_UINT24, BASE_DEC, |
| 9332 | NULL((void*)0), 0x0, |
| 9333 | "with respect to the carrier center frequency before additional filtering", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9334 | }, |
| 9335 | |
| 9336 | /* Section 7.5.3.12 */ |
| 9337 | { &hf_oran_regularizationFactor, |
| 9338 | { "Regularization Factor", "oran_fh_cus.regularizationFactor", |
| 9339 | FT_INT16, BASE_DEC, |
| 9340 | NULL((void*)0), 0x0, |
| 9341 | "Signed value to support MMSE operation within O-RU", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9342 | }, |
| 9343 | /* Section 7.5.3.14 */ |
| 9344 | { &hf_oran_laaMsgType, |
| 9345 | { "LAA Message Type", "oran_fh_cus.laaMsgType", |
| 9346 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 9347 | RVALS(laaMsgTypes)((0 ? (const struct _range_string*)0 : ((laaMsgTypes)))), 0xf0, |
| 9348 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9349 | }, |
| 9350 | /* Section 7.5.3.15 */ |
| 9351 | { &hf_oran_laaMsgLen, |
| 9352 | { "LAA Message Length", "oran_fh_cus.laaMsgLen", |
| 9353 | FT_UINT8, BASE_DEC, |
| 9354 | NULL((void*)0), 0x0f, |
| 9355 | "number of 32-bit words in the LAA section", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9356 | }, |
| 9357 | /* Section 7.5.3.16 */ |
| 9358 | { &hf_oran_lbtHandle, |
| 9359 | { "LBT Handle", "oran_fh_cus.lbtHandle", |
| 9360 | FT_UINT16, BASE_HEX, |
| 9361 | NULL((void*)0), 0x0, |
| 9362 | "label to identify transaction", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9363 | }, |
| 9364 | /* Section 7.5.3.17 */ |
| 9365 | { &hf_oran_lbtDeferFactor, |
| 9366 | { "Defer Factor", "oran_fh_cus.lbtDeferFactor", |
| 9367 | FT_UINT8, BASE_DEC, |
| 9368 | NULL((void*)0), 0x07, |
| 9369 | "Defer factor in sensing slots as described in 3GPP TS 36.213 Section 15.1.1", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9370 | }, |
| 9371 | /* Section 7.5.3.18 */ |
| 9372 | { &hf_oran_lbtBackoffCounter, |
| 9373 | { "Backoff Counter", "oran_fh_cus.lbtBackoffCounter", |
| 9374 | FT_UINT16, BASE_DEC, |
| 9375 | NULL((void*)0), 0xffc0, |
| 9376 | "LBT backoff counter in sensing slots as described in 3GPP TS 36.213 Section 15.1.1", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9377 | }, |
| 9378 | /* Section 7.5.3.19 */ |
| 9379 | { &hf_oran_lbtOffset, |
| 9380 | { "LBT Offset", "oran_fh_cus.lbtOffset", |
| 9381 | FT_UINT16, BASE_DEC, |
| 9382 | NULL((void*)0), 0xffc0, |
| 9383 | "LBT start time in microseconds from the beginning of the subframe scheduled by this message", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9384 | }, |
| 9385 | /* Section 7.5.3.20 */ |
| 9386 | { &hf_oran_MCOT, |
| 9387 | { "Maximum Channel Occupancy Time", "oran_fh_cus.MCOT", |
| 9388 | FT_UINT8, BASE_DEC, |
| 9389 | NULL((void*)0), 0x3c, |
| 9390 | "LTE TXOP duration in subframes as described in 3GPP TS 36.213 Section 15.1.1", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9391 | }, |
| 9392 | /* Section 7.5.3.21 */ |
| 9393 | { &hf_oran_lbtMode, |
| 9394 | { "LBT Mode", "oran_fh_cus.lbtMode", |
| 9395 | FT_UINT8, BASE_DEC, |
| 9396 | VALS(lbtMode_vals)((0 ? (const struct _value_string*)0 : ((lbtMode_vals)))), 0x0, |
| 9397 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9398 | }, |
| 9399 | /* Section 7.5.3.22 */ |
| 9400 | { &hf_oran_lbtPdschRes, |
| 9401 | { "lbtPdschRes", "oran_fh_cus.lbtPdschRes", |
| 9402 | FT_UINT8, BASE_DEC, |
| 9403 | VALS(lbtPdschRes_vals)((0 ? (const struct _value_string*)0 : ((lbtPdschRes_vals)))), 0xc0, |
| 9404 | "LBT result of SFN/SF", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9405 | }, |
| 9406 | /* Section 7.5.3.23 */ |
| 9407 | { &hf_oran_sfStatus, |
| 9408 | { "sfStatus", "oran_fh_cus.sfStatus", |
| 9409 | FT_BOOLEAN, 8, |
| 9410 | TFS(&tfs_sfStatus)((0 ? (const struct true_false_string*)0 : ((&tfs_sfStatus )))), 0x10, |
| 9411 | "Indicates whether the subframe was dropped or transmitted", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9412 | }, |
| 9413 | /* Section 7.5.3.24 */ |
| 9414 | { &hf_oran_lbtDrsRes, |
| 9415 | { "lbtDrsRes", "oran_fh_cus.lbtDrsRes", |
| 9416 | FT_BOOLEAN, 8, |
| 9417 | TFS(&tfs_fail_success)((0 ? (const struct true_false_string*)0 : ((&tfs_fail_success )))), 0x80, |
| 9418 | "Indicates whether the subframe was dropped or transmitted", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9419 | }, |
| 9420 | /* Section 7.5.3.25 */ |
| 9421 | { &hf_oran_initialPartialSF, |
| 9422 | { "Initial partial SF", "oran_fh_cus.initialPartialSF", |
| 9423 | FT_BOOLEAN, 8, |
| 9424 | TFS(&tfs_partial_full_sf)((0 ? (const struct true_false_string*)0 : ((&tfs_partial_full_sf )))), 0x40, |
| 9425 | "Indicates whether the initial SF in the LBT process is full or partial", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9426 | }, |
| 9427 | /* Section 7.5.3.26. */ |
| 9428 | { &hf_oran_lbtBufErr, |
| 9429 | { "lbtBufErr", "oran_fh_cus.lbtBufErr", |
| 9430 | FT_BOOLEAN, 8, |
| 9431 | TFS(&tfs_lbtBufErr)((0 ? (const struct true_false_string*)0 : ((&tfs_lbtBufErr )))), 0x80, |
| 9432 | "LBT buffer error", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9433 | }, |
| 9434 | /* Section 7.5.3.27 */ |
| 9435 | { &hf_oran_sfnSfEnd, |
| 9436 | { "SFN/SF End", "oran_fh_cus.sfnSfEnd", |
| 9437 | FT_UINT16, BASE_DEC, |
| 9438 | NULL((void*)0), 0x0fff, |
| 9439 | "SFN/SF by which the DRS window must end", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9440 | }, |
| 9441 | /* Section 7.5.3.28 */ |
| 9442 | { &hf_oran_lbtCWConfig_H, |
| 9443 | { "lbtCWConfig_H", "oran_fh_cus.lbtCWConfig_H", |
| 9444 | FT_UINT8, BASE_DEC, |
| 9445 | NULL((void*)0), 0x0, |
| 9446 | "HARQ parameters for congestion window management", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9447 | }, |
| 9448 | /* Section 7.5.3.29 */ |
| 9449 | { &hf_oran_lbtCWConfig_T, |
| 9450 | { "lbtCWConfig_T", "oran_fh_cus.lbtCWConfig_T", |
| 9451 | FT_UINT8, BASE_DEC, |
| 9452 | NULL((void*)0), 0x0, |
| 9453 | "TB parameters for congestion window management", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9454 | }, |
| 9455 | /* Section 7.5.3.30 */ |
| 9456 | { &hf_oran_lbtTrafficClass, |
| 9457 | { "lbtTrafficClass", "oran_fh_cus.lbtTrafficClass", |
| 9458 | FT_UINT8, BASE_DEC, |
| 9459 | VALS(lbtTrafficClass_vals)((0 ? (const struct _value_string*)0 : ((lbtTrafficClass_vals )))), 0x38, |
| 9460 | "Traffic class priority for congestion window management", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9461 | }, |
| 9462 | /* Section 7.5.3.31 */ |
| 9463 | { &hf_oran_lbtCWR_Rst, |
| 9464 | { "lbtCWR_Rst", "oran_fh_cus.lbtCWR_Rst", |
| 9465 | FT_BOOLEAN, 8, |
| 9466 | TFS(&tfs_fail_success)((0 ? (const struct true_false_string*)0 : ((&tfs_fail_success )))), 0x80, |
| 9467 | "notification about packet reception successful or not", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9468 | }, |
| 9469 | |
| 9470 | /* Reserved fields */ |
| 9471 | { &hf_oran_reserved, |
| 9472 | { "reserved", "oran_fh_cus.reserved", |
| 9473 | FT_UINT64, BASE_HEX, |
| 9474 | NULL((void*)0), 0x0, |
| 9475 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9476 | }, |
| 9477 | { &hf_oran_reserved_1bit, |
| 9478 | { "reserved", "oran_fh_cus.reserved", |
| 9479 | FT_UINT8, BASE_HEX, |
| 9480 | NULL((void*)0), 0x80, |
| 9481 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9482 | }, |
| 9483 | { &hf_oran_reserved_2bits, |
| 9484 | { "reserved", "oran_fh_cus.reserved", |
| 9485 | FT_UINT8, BASE_HEX, |
| 9486 | NULL((void*)0), 0xc0, |
| 9487 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9488 | }, |
| 9489 | { &hf_oran_reserved_3bits, |
| 9490 | { "reserved", "oran_fh_cus.reserved", |
| 9491 | FT_UINT8, BASE_HEX, |
| 9492 | NULL((void*)0), 0xe0, |
| 9493 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9494 | }, |
| 9495 | { &hf_oran_reserved_4bits, |
| 9496 | { "reserved", "oran_fh_cus.reserved", |
| 9497 | FT_UINT8, BASE_HEX, |
| 9498 | NULL((void*)0), 0xf0, |
| 9499 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9500 | }, |
| 9501 | { &hf_oran_reserved_last_4bits, |
| 9502 | { "reserved", "oran_fh_cus.reserved", |
| 9503 | FT_UINT8, BASE_HEX, |
| 9504 | NULL((void*)0), 0x0f, |
| 9505 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9506 | }, |
| 9507 | { &hf_oran_reserved_last_5bits, |
| 9508 | { "reserved", "oran_fh_cus.reserved", |
| 9509 | FT_UINT8, BASE_HEX, |
| 9510 | NULL((void*)0), 0x1f, |
| 9511 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9512 | }, |
| 9513 | { &hf_oran_reserved_6bits, |
| 9514 | { "reserved", "oran_fh_cus.reserved", |
| 9515 | FT_UINT8, BASE_HEX, |
| 9516 | NULL((void*)0), 0xfc, |
| 9517 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9518 | }, |
| 9519 | { &hf_oran_reserved_last_6bits, |
| 9520 | { "reserved", "oran_fh_cus.reserved", |
| 9521 | FT_UINT8, BASE_HEX, |
| 9522 | NULL((void*)0), 0x3f, |
| 9523 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9524 | }, |
| 9525 | { &hf_oran_reserved_7bits, |
| 9526 | { "reserved", "oran_fh_cus.reserved", |
| 9527 | FT_UINT8, BASE_HEX, |
| 9528 | NULL((void*)0), 0xfe, |
| 9529 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9530 | }, |
| 9531 | { &hf_oran_reserved_last_7bits, |
| 9532 | { "reserved", "oran_fh_cus.reserved", |
| 9533 | FT_UINT8, BASE_HEX, |
| 9534 | NULL((void*)0), 0x7f, |
| 9535 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9536 | }, |
| 9537 | { &hf_oran_reserved_8bits, |
| 9538 | { "reserved", "oran_fh_cus.reserved", |
| 9539 | FT_UINT8, BASE_HEX, |
| 9540 | NULL((void*)0), 0x0, |
| 9541 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9542 | }, |
| 9543 | { &hf_oran_reserved_16bits, |
| 9544 | { "reserved", "oran_fh_cus.reserved", |
| 9545 | FT_UINT16, BASE_HEX, |
| 9546 | NULL((void*)0), 0x0, |
| 9547 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9548 | }, |
| 9549 | { &hf_oran_reserved_15bits, |
| 9550 | { "reserved", "oran_fh_cus.reserved", |
| 9551 | FT_UINT16, BASE_HEX, |
| 9552 | NULL((void*)0), 0x7fff, |
| 9553 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9554 | }, |
| 9555 | { &hf_oran_reserved_bit1, |
| 9556 | { "reserved", "oran_fh_cus.reserved", |
| 9557 | FT_UINT8, BASE_HEX, |
| 9558 | NULL((void*)0), 0x40, |
| 9559 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9560 | }, |
| 9561 | { &hf_oran_reserved_bit2, |
| 9562 | { "reserved", "oran_fh_cus.reserved", |
| 9563 | FT_UINT8, BASE_HEX, |
| 9564 | NULL((void*)0), 0x20, |
| 9565 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9566 | }, |
| 9567 | { &hf_oran_reserved_bit3, |
| 9568 | { "reserved", "oran_fh_cus.reserved", |
| 9569 | FT_UINT8, BASE_HEX, |
| 9570 | NULL((void*)0), 0x10, |
| 9571 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9572 | }, |
| 9573 | { &hf_oran_reserved_bit4, |
| 9574 | { "reserved", "oran_fh_cus.reserved", |
| 9575 | FT_UINT8, BASE_HEX, |
| 9576 | NULL((void*)0), 0x08, |
| 9577 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9578 | }, |
| 9579 | { &hf_oran_reserved_bit5, |
| 9580 | { "reserved", "oran_fh_cus.reserved", |
| 9581 | FT_UINT8, BASE_HEX, |
| 9582 | NULL((void*)0), 0x04, |
| 9583 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9584 | }, |
| 9585 | { &hf_oran_reserved_bits123, |
| 9586 | { "reserved", "oran_fh_cus.reserved", |
| 9587 | FT_UINT8, BASE_HEX, |
| 9588 | NULL((void*)0), 0x70, |
| 9589 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9590 | }, |
| 9591 | { &hf_oran_reserved_bits1234, |
| 9592 | { "reserved", "oran_fh_cus.reserved", |
| 9593 | FT_UINT8, BASE_HEX, |
| 9594 | NULL((void*)0), 0x78, |
| 9595 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9596 | }, |
| 9597 | { &hf_oran_reserved_bits456, |
| 9598 | { "reserved", "oran_fh_cus.reserved", |
| 9599 | FT_UINT8, BASE_HEX, |
| 9600 | NULL((void*)0), 0x0e, |
| 9601 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9602 | }, |
| 9603 | |
| 9604 | /* 7.7.11.9 */ |
| 9605 | { &hf_oran_cont_ind, |
| 9606 | { "contInd", "oran_fh_cus.contInd", |
| 9607 | FT_BOOLEAN, 8, |
| 9608 | TFS(&continuity_indication_tfs)((0 ? (const struct true_false_string*)0 : ((&continuity_indication_tfs )))), 0x80, |
| 9609 | "PRB region continuity flag", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9610 | }, |
| 9611 | /* 7.7.11.10 */ |
| 9612 | { &hf_oran_bundle_offset, |
| 9613 | { "BundleOffset", "oran_fh_cus.bundleOffset", |
| 9614 | FT_UINT8, BASE_DEC, |
| 9615 | NULL((void*)0), 0x3f, |
| 9616 | "offset between start of first PRB bundle and startPrbc", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9617 | }, |
| 9618 | |
| 9619 | /* 7.7.1.2 bfwCompHdr (beamforming weight compression header) */ |
| 9620 | { &hf_oran_bfwCompHdr, |
| 9621 | { "bfwCompHdr", "oran_fh_cus.bfwCompHdr", |
| 9622 | FT_STRING, BASE_NONE, |
| 9623 | NULL((void*)0), 0x0, |
| 9624 | "Compression method and IQ bit width for beamforming weights", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9625 | }, |
| 9626 | { &hf_oran_bfwCompHdr_iqWidth, |
| 9627 | { "IQ Bit Width", "oran_fh_cus.bfwCompHdr_iqWidth", |
| 9628 | FT_UINT8, BASE_HEX, |
| 9629 | VALS(bfw_comp_headers_iq_width)((0 ? (const struct _value_string*)0 : ((bfw_comp_headers_iq_width )))), 0xf0, |
| 9630 | "IQ bit width for the beamforming weights", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9631 | }, |
| 9632 | { &hf_oran_bfwCompHdr_compMeth, |
| 9633 | { "Compression Method", "oran_fh_cus.bfwCompHdr_compMeth", |
| 9634 | FT_UINT8, BASE_HEX, |
| 9635 | VALS(bfw_comp_headers_comp_meth)((0 ? (const struct _value_string*)0 : ((bfw_comp_headers_comp_meth )))), 0x0f, |
| 9636 | "compression method for the beamforming weights", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9637 | }, |
| 9638 | |
| 9639 | /* 7.5.3.32 */ |
| 9640 | { &hf_oran_ciCompParam, |
| 9641 | { "ciCompParam", "oran_fh_cus.ciCompParam", |
| 9642 | FT_STRING, BASE_NONE, |
| 9643 | NULL((void*)0), 0x0, |
| 9644 | "channel information compression parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9645 | }, |
| 9646 | |
| 9647 | /* Table 7.5.3.32-1 */ |
| 9648 | { &hf_oran_blockScaler, |
| 9649 | { "blockScaler", "oran_fh_cus.blockScaler", |
| 9650 | FT_UINT8, BASE_HEX, |
| 9651 | NULL((void*)0), 0x0, |
| 9652 | "unsigned, 1 integer bit, 7 fractional bits", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9653 | }, |
| 9654 | { &hf_oran_compBitWidth, |
| 9655 | { "compBitWidth", "oran_fh_cus.compBitWidth", |
| 9656 | FT_UINT8, BASE_DEC, |
| 9657 | NULL((void*)0), 0xf0, |
| 9658 | "Length of I bits and length of Q bits after compression over entire PRB", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9659 | }, |
| 9660 | { &hf_oran_compShift, |
| 9661 | { "compShift", "oran_fh_cus.compShift", |
| 9662 | FT_UINT8, BASE_DEC, |
| 9663 | NULL((void*)0), 0x0f, |
| 9664 | "The shift applied to the entire PRB", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9665 | }, |
| 9666 | |
| 9667 | { &hf_oran_active_beamspace_coefficient_n1, |
| 9668 | { "N1", "oran_fh_cus.activeBeamspace_Coefficient_n1", |
| 9669 | FT_BOOLEAN, 8, |
| 9670 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x80, |
| 9671 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9672 | }, |
| 9673 | { &hf_oran_active_beamspace_coefficient_n2, |
| 9674 | { "N2", "oran_fh_cus.activeBeamspace_Coefficient_n2", |
| 9675 | FT_BOOLEAN, 8, |
| 9676 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x40, |
| 9677 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9678 | }, |
| 9679 | { &hf_oran_active_beamspace_coefficient_n3, |
| 9680 | { "N3", "oran_fh_cus.activeBeamspace_Coefficient_n3", |
| 9681 | FT_BOOLEAN, 8, |
| 9682 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x20, |
| 9683 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9684 | }, |
| 9685 | { &hf_oran_active_beamspace_coefficient_n4, |
| 9686 | { "N4", "oran_fh_cus.activeBeamspace_Coefficient_n4", |
| 9687 | FT_BOOLEAN, 8, |
| 9688 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x10, |
| 9689 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9690 | }, |
| 9691 | { &hf_oran_active_beamspace_coefficient_n5, |
| 9692 | { "N5", "oran_fh_cus.activeBeamspace_Coefficient_n5", |
| 9693 | FT_BOOLEAN, 8, |
| 9694 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x08, |
| 9695 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9696 | }, |
| 9697 | { &hf_oran_active_beamspace_coefficient_n6, |
| 9698 | { "N6", "oran_fh_cus.activeBeamspace_Coefficient_n6", |
| 9699 | FT_BOOLEAN, 8, |
| 9700 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x04, |
| 9701 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9702 | }, |
| 9703 | { &hf_oran_active_beamspace_coefficient_n7, |
| 9704 | { "N7", "oran_fh_cus.activeBeamspace_Coefficient_n7", |
| 9705 | FT_BOOLEAN, 8, |
| 9706 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x02, |
| 9707 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9708 | }, |
| 9709 | { &hf_oran_active_beamspace_coefficient_n8, |
| 9710 | { "N8", "oran_fh_cus.activeBeamspace_Coefficient_n8", |
| 9711 | FT_BOOLEAN, 8, |
| 9712 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x01, |
| 9713 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9714 | }, |
| 9715 | |
| 9716 | { &hf_oran_activeBeamspaceCoefficientMask, |
| 9717 | { "activeBeamspaceCoefficientMask", "oran_fh_cus.activeBeamspaceCoefficientMask", |
| 9718 | FT_UINT8, BASE_HEX, |
| 9719 | NULL((void*)0), 0xff, |
| 9720 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9721 | }, |
| 9722 | { &hf_oran_activeBeamspaceCoefficientMask_bits_set, |
| 9723 | { "Array elements set", "oran_fh_cus.activeBeamspaceCoefficientMask.bits-set", |
| 9724 | FT_UINT32, BASE_DEC, |
| 9725 | NULL((void*)0), 0x0, |
| 9726 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9727 | }, |
| 9728 | |
| 9729 | /* Section 7.7.6.6 */ |
| 9730 | { &hf_oran_se6_repetition, |
| 9731 | { "repetition", "oran_fh_cus.repetition", |
| 9732 | FT_BOOLEAN, BASE_NONE, |
| 9733 | TFS(&repetition_se6_tfs)((0 ? (const struct true_false_string*)0 : ((&repetition_se6_tfs )))), 0x0, |
| 9734 | "Repetition of a highest priority data section for C-Plane", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9735 | }, |
| 9736 | /* 7.7.20.9 */ |
| 9737 | { &hf_oran_rbgSize, |
| 9738 | { "rbgSize", "oran_fh_cus.rbgSize", |
| 9739 | FT_UINT8, BASE_HEX, |
| 9740 | VALS(rbg_size_vals)((0 ? (const struct _value_string*)0 : ((rbg_size_vals)))), 0x70, |
| 9741 | "Number of PRBs of the resource block groups allocated by the bit mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9742 | }, |
| 9743 | /* 7.7.20.10 */ |
| 9744 | { &hf_oran_rbgMask, |
| 9745 | { "rbgMask", "oran_fh_cus.rbgMask", |
| 9746 | FT_UINT32, BASE_HEX, |
| 9747 | NULL((void*)0), 0x0fffffff, |
| 9748 | "Each bit indicates whether a corresponding resource block group is present", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9749 | }, |
| 9750 | /* 7.7.6.5. Also 7.7.12.3 and 7.7.19.5 */ |
| 9751 | { &hf_oran_noncontig_priority, |
| 9752 | { "priority", "oran_fh_cus.priority", |
| 9753 | FT_UINT8, BASE_HEX, |
| 9754 | VALS(priority_vals)((0 ? (const struct _value_string*)0 : ((priority_vals)))), 0xc0, |
| 9755 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9756 | }, |
| 9757 | |
| 9758 | /* 7.7.6.4 */ |
| 9759 | { &hf_oran_symbol_mask, |
| 9760 | { "symbolMask", "oran_fh_cus.symbolMask", |
| 9761 | FT_UINT16, BASE_HEX, |
| 9762 | NULL((void*)0), 0x3fff, |
| 9763 | "Each bit indicates whether the rbgMask applies to a given symbol in the slot", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9764 | }, |
| 9765 | { &hf_oran_symbol_mask_s13, |
| 9766 | { "symbol 13", "oran_fh_cus.symbolMask.symbol-13", |
| 9767 | FT_BOOLEAN, 16, |
| 9768 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x2000, |
| 9769 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9770 | }, |
| 9771 | { &hf_oran_symbol_mask_s12, |
| 9772 | { "symbol 12", "oran_fh_cus.symbolMask.symbol-12", |
| 9773 | FT_BOOLEAN, 16, |
| 9774 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x1000, |
| 9775 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9776 | }, |
| 9777 | { &hf_oran_symbol_mask_s11, |
| 9778 | { "symbol 11", "oran_fh_cus.symbolMask.symbol-11", |
| 9779 | FT_BOOLEAN, 16, |
| 9780 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0800, |
| 9781 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9782 | }, |
| 9783 | { &hf_oran_symbol_mask_s10, |
| 9784 | { "symbol 10", "oran_fh_cus.symbolMask.symbol-10", |
| 9785 | FT_BOOLEAN, 16, |
| 9786 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0400, |
| 9787 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9788 | }, |
| 9789 | { &hf_oran_symbol_mask_s9, |
| 9790 | { "symbol 9", "oran_fh_cus.symbolMask.symbol-9", |
| 9791 | FT_BOOLEAN, 16, |
| 9792 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0200, |
| 9793 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9794 | }, |
| 9795 | { &hf_oran_symbol_mask_s8, |
| 9796 | { "symbol 8", "oran_fh_cus.symbolMask.symbol-8", |
| 9797 | FT_BOOLEAN, 16, |
| 9798 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0100, |
| 9799 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9800 | }, |
| 9801 | { &hf_oran_symbol_mask_s7, |
| 9802 | { "symbol 7", "oran_fh_cus.symbolMask.symbol-7", |
| 9803 | FT_BOOLEAN, 16, |
| 9804 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0080, |
| 9805 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9806 | }, |
| 9807 | { &hf_oran_symbol_mask_s6, |
| 9808 | { "symbol 6", "oran_fh_cus.symbolMask.symbol-6", |
| 9809 | FT_BOOLEAN, 16, |
| 9810 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0040, |
| 9811 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9812 | }, |
| 9813 | { &hf_oran_symbol_mask_s5, |
| 9814 | { "symbol 5", "oran_fh_cus.symbolMask.symbol-5", |
| 9815 | FT_BOOLEAN, 16, |
| 9816 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0020, |
| 9817 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9818 | }, |
| 9819 | { &hf_oran_symbol_mask_s4, |
| 9820 | { "symbol 4", "oran_fh_cus.symbolMask.symbol-4", |
| 9821 | FT_BOOLEAN, 16, |
| 9822 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0010, |
| 9823 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9824 | }, |
| 9825 | { &hf_oran_symbol_mask_s3, |
| 9826 | { "symbol 3", "oran_fh_cus.symbolMask.symbol-3", |
| 9827 | FT_BOOLEAN, 16, |
| 9828 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0008, |
| 9829 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9830 | }, |
| 9831 | { &hf_oran_symbol_mask_s2, |
| 9832 | { "symbol 2", "oran_fh_cus.symbolMask.symbol-2", |
| 9833 | FT_BOOLEAN, 16, |
| 9834 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0004, |
| 9835 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9836 | }, |
| 9837 | { &hf_oran_symbol_mask_s1, |
| 9838 | { "symbol 1", "oran_fh_cus.symbolMask.symbol-1", |
| 9839 | FT_BOOLEAN, 16, |
| 9840 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0002, |
| 9841 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9842 | }, |
| 9843 | { &hf_oran_symbol_mask_s0, |
| 9844 | { "symbol 0", "oran_fh_cus.symbolMask.symbol-0", |
| 9845 | FT_BOOLEAN, 16, |
| 9846 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0001, |
| 9847 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9848 | }, |
| 9849 | |
| 9850 | /* 7.7.6.3 */ |
| 9851 | { &hf_oran_rbg_mask_27, |
| 9852 | { "bit 27", "oran_fh_cus.rbgMask.bit27", |
| 9853 | FT_BOOLEAN, 32, |
| 9854 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x08000000, |
| 9855 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9856 | }, |
| 9857 | { &hf_oran_rbg_mask_26, |
| 9858 | { "bit 26", "oran_fh_cus.rbgMask.bit26", |
| 9859 | FT_BOOLEAN, 32, |
| 9860 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x04000000, |
| 9861 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9862 | }, |
| 9863 | { &hf_oran_rbg_mask_25, |
| 9864 | { "bit 25", "oran_fh_cus.rbgMask.bit25", |
| 9865 | FT_BOOLEAN, 32, |
| 9866 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x02000000, |
| 9867 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9868 | }, |
| 9869 | { &hf_oran_rbg_mask_24, |
| 9870 | { "bit 24", "oran_fh_cus.rbgMask.bit24", |
| 9871 | FT_BOOLEAN, 32, |
| 9872 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x01000000, |
| 9873 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9874 | }, |
| 9875 | { &hf_oran_rbg_mask_23, |
| 9876 | { "bit 23", "oran_fh_cus.rbgMask.bit23", |
| 9877 | FT_BOOLEAN, 32, |
| 9878 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00800000, |
| 9879 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9880 | }, |
| 9881 | { &hf_oran_rbg_mask_22, |
| 9882 | { "bit 22", "oran_fh_cus.rbgMask.bit22", |
| 9883 | FT_BOOLEAN, 32, |
| 9884 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00400000, |
| 9885 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9886 | }, |
| 9887 | { &hf_oran_rbg_mask_21, |
| 9888 | { "bit 21", "oran_fh_cus.rbgMask.bit21", |
| 9889 | FT_BOOLEAN, 32, |
| 9890 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00200000, |
| 9891 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9892 | }, |
| 9893 | { &hf_oran_rbg_mask_20, |
| 9894 | { "bit 20", "oran_fh_cus.rbgMask.bit20", |
| 9895 | FT_BOOLEAN, 32, |
| 9896 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00100000, |
| 9897 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9898 | }, |
| 9899 | { &hf_oran_rbg_mask_19, |
| 9900 | { "bit 19", "oran_fh_cus.rbgMask.bit19", |
| 9901 | FT_BOOLEAN, 32, |
| 9902 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00080000, |
| 9903 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9904 | }, |
| 9905 | { &hf_oran_rbg_mask_18, |
| 9906 | { "bit 18", "oran_fh_cus.rbgMask.bit18", |
| 9907 | FT_BOOLEAN, 32, |
| 9908 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00040000, |
| 9909 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9910 | }, |
| 9911 | { &hf_oran_rbg_mask_17, |
| 9912 | { "bit 17", "oran_fh_cus.rbgMask.bit17", |
| 9913 | FT_BOOLEAN, 32, |
| 9914 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00020000, |
| 9915 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9916 | }, |
| 9917 | { &hf_oran_rbg_mask_16, |
| 9918 | { "bit 16", "oran_fh_cus.rbgMask.bit16", |
| 9919 | FT_BOOLEAN, 32, |
| 9920 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00010000, |
| 9921 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9922 | }, |
| 9923 | { &hf_oran_rbg_mask_15, |
| 9924 | { "bit 15", "oran_fh_cus.rbgMask.bit15", |
| 9925 | FT_BOOLEAN, 32, |
| 9926 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00008000, |
| 9927 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9928 | }, |
| 9929 | { &hf_oran_rbg_mask_14, |
| 9930 | { "bit 14", "oran_fh_cus.rbgMask.bit14", |
| 9931 | FT_BOOLEAN, 32, |
| 9932 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00004000, |
| 9933 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9934 | }, |
| 9935 | { &hf_oran_rbg_mask_13, |
| 9936 | { "bit 13", "oran_fh_cus.rbgMask.bit13", |
| 9937 | FT_BOOLEAN, 32, |
| 9938 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00002000, |
| 9939 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9940 | }, |
| 9941 | { &hf_oran_rbg_mask_12, |
| 9942 | { "bit 12", "oran_fh_cus.rbgMask.bit12", |
| 9943 | FT_BOOLEAN, 32, |
| 9944 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00001000, |
| 9945 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9946 | }, |
| 9947 | { &hf_oran_rbg_mask_11, |
| 9948 | { "bit 11", "oran_fh_cus.rbgMask.bit11", |
| 9949 | FT_BOOLEAN, 32, |
| 9950 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000800, |
| 9951 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9952 | }, |
| 9953 | { &hf_oran_rbg_mask_10, |
| 9954 | { "bit 10", "oran_fh_cus.rbgMask.bit10", |
| 9955 | FT_BOOLEAN, 32, |
| 9956 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000400, |
| 9957 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9958 | }, |
| 9959 | { &hf_oran_rbg_mask_9, |
| 9960 | { "bit 9", "oran_fh_cus.rbgMask.bit9", |
| 9961 | FT_BOOLEAN, 32, |
| 9962 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000200, |
| 9963 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9964 | }, |
| 9965 | { &hf_oran_rbg_mask_8, |
| 9966 | { "bit 8", "oran_fh_cus.rbgMask.bit8", |
| 9967 | FT_BOOLEAN, 32, |
| 9968 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000100, |
| 9969 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9970 | }, |
| 9971 | { &hf_oran_rbg_mask_7, |
| 9972 | { "bit 7", "oran_fh_cus.rbgMask.bit7", |
| 9973 | FT_BOOLEAN, 32, |
| 9974 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000080, |
| 9975 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9976 | }, |
| 9977 | { &hf_oran_rbg_mask_6, |
| 9978 | { "bit 6", "oran_fh_cus.rbgMask.bit6", |
| 9979 | FT_BOOLEAN, 32, |
| 9980 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000040, |
| 9981 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9982 | }, |
| 9983 | { &hf_oran_rbg_mask_5, |
| 9984 | { "bit 5", "oran_fh_cus.rbgMask.bit5", |
| 9985 | FT_BOOLEAN, 32, |
| 9986 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000020, |
| 9987 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9988 | }, |
| 9989 | { &hf_oran_rbg_mask_4, |
| 9990 | { "bit 4", "oran_fh_cus.rbgMask.bit4", |
| 9991 | FT_BOOLEAN, 32, |
| 9992 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000010, |
| 9993 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 9994 | }, |
| 9995 | { &hf_oran_rbg_mask_3, |
| 9996 | { "bit 3", "oran_fh_cus.rbgMask.bit3", |
| 9997 | FT_BOOLEAN, 32, |
| 9998 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000008, |
| 9999 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10000 | }, |
| 10001 | { &hf_oran_rbg_mask_2, |
| 10002 | { "bit 2", "oran_fh_cus.rbgMask.bit2", |
| 10003 | FT_BOOLEAN, 32, |
| 10004 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000004, |
| 10005 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10006 | }, |
| 10007 | { &hf_oran_rbg_mask_1, |
| 10008 | { "bit 1", "oran_fh_cus.rbgMask.bit1", |
| 10009 | FT_BOOLEAN, 32, |
| 10010 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000002, |
| 10011 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10012 | }, |
| 10013 | { &hf_oran_rbg_mask_0, |
| 10014 | { "bit 0", "oran_fh_cus.rbgMask.bit0", |
| 10015 | FT_BOOLEAN, 32, |
| 10016 | TFS(&tfs_allocated_not_allocated)((0 ? (const struct true_false_string*)0 : ((&tfs_allocated_not_allocated )))), 0x00000001, |
| 10017 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10018 | }, |
| 10019 | |
| 10020 | |
| 10021 | /* 7.7.22.2 */ |
| 10022 | { &hf_oran_ack_nack_req_id, |
| 10023 | { "ackNackReqId", "oran_fh_cus.ackNackReqId", |
| 10024 | FT_UINT16, BASE_HEX, |
| 10025 | NULL((void*)0), 0x0, |
| 10026 | "Indicates the ACK/NACK request ID of a section description", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10027 | }, |
| 10028 | |
| 10029 | /* Subtree for next 2 items */ |
| 10030 | { &hf_oran_frequency_range, |
| 10031 | { "Frequency Range", "oran_fh_cus.frequencyRange", |
| 10032 | FT_STRING, BASE_NONE, |
| 10033 | NULL((void*)0), 0x0, |
| 10034 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10035 | }, |
| 10036 | |
| 10037 | /* 7.7.12.4 */ |
| 10038 | { &hf_oran_off_start_prb, |
| 10039 | { "offStartPrb", "oran_fh_cus.offStartPrb", |
| 10040 | FT_UINT8, BASE_DEC, |
| 10041 | NULL((void*)0), 0x0, |
| 10042 | "Offset of PRB range start", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10043 | }, |
| 10044 | /* 7.7.12.5 */ |
| 10045 | { &hf_oran_num_prb, |
| 10046 | { "numPrb", "oran_fh_cus.numPrb", |
| 10047 | FT_UINT8, BASE_DEC, |
| 10048 | NULL((void*)0), 0x0, |
| 10049 | "Number of PRBs in PRB range", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10050 | }, |
| 10051 | |
| 10052 | /* symbolId 8.3.3.7 */ |
| 10053 | { &hf_oran_symbolId, |
| 10054 | { "Symbol Identifier", "oran_fh_cus.symbolId", |
| 10055 | FT_UINT8, BASE_DEC, |
| 10056 | NULL((void*)0), 0x3f, |
| 10057 | "Identifies a symbol number within a slot", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10058 | }, |
| 10059 | |
| 10060 | /* startPrbu 8.3.3.11 */ |
| 10061 | { &hf_oran_startPrbu, |
| 10062 | { "startPrbu", "oran_fh_cus.startPrbu", |
| 10063 | FT_UINT16, BASE_DEC, |
| 10064 | NULL((void*)0), 0x03ff, |
| 10065 | "starting PRB of user plane section", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10066 | }, |
| 10067 | |
| 10068 | /* numPrbu 8.3.3.12 */ |
| 10069 | { &hf_oran_numPrbu, |
| 10070 | { "numPrbu", "oran_fh_cus.numPrbu", |
| 10071 | FT_UINT8, BASE_DEC, |
| 10072 | NULL((void*)0), 0x0, |
| 10073 | "number of PRBs per user plane section", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10074 | }, |
| 10075 | |
| 10076 | /* 7.7.1.3 */ |
| 10077 | { &hf_oran_bfwCompParam, |
| 10078 | { "bfwCompParam", "oran_fh_cus.bfwCompParam", |
| 10079 | FT_STRING, BASE_NONE, |
| 10080 | NULL((void*)0), 0x0, |
| 10081 | "Beamforming weight compression parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10082 | }, |
| 10083 | |
| 10084 | /* 6.3.3.13 */ |
| 10085 | { &hf_oran_udCompHdrMeth, |
| 10086 | { "User Data Compression Method", "oran_fh_cus.udCompHdrMeth", |
| 10087 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10088 | RVALS(ud_comp_header_meth)((0 ? (const struct _range_string*)0 : ((ud_comp_header_meth) ))), 0x0f, |
| 10089 | "Defines the compression method for the user data in every section in the C-Plane message", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10090 | }, |
| 10091 | { &hf_oran_udCompHdrMeth_pref, |
| 10092 | { "User Data Compression Method", "oran_fh_cus.udCompHdrMeth", |
| 10093 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10094 | RVALS(ud_comp_header_meth)((0 ? (const struct _range_string*)0 : ((ud_comp_header_meth) ))), 0x0, |
| 10095 | "Defines the compression method for the user data in every section in the C-Plane message", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10096 | }, |
| 10097 | /* 8.3.3.18 */ |
| 10098 | { &hf_oran_udCompLen, |
| 10099 | { "udCompLen", "oran_fh_cus.udCompLen", |
| 10100 | FT_UINT16, BASE_DEC, |
| 10101 | NULL((void*)0), 0x0, |
| 10102 | "PRB field length in octets", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10103 | }, |
| 10104 | |
| 10105 | /* 7.5.2.10 */ |
| 10106 | { &hf_oran_udCompHdrIqWidth, |
| 10107 | { "User Data IQ width", "oran_fh_cus.udCompHdrWidth", |
| 10108 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10109 | RVALS(ud_comp_header_width)((0 ? (const struct _range_string*)0 : ((ud_comp_header_width )))), 0xf0, |
| 10110 | "Defines the IQ bit width for the user data in every section in the C-Plane message", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10111 | }, |
| 10112 | { &hf_oran_udCompHdrIqWidth_pref, |
| 10113 | { "User Data IQ width", "oran_fh_cus.udCompHdrWidth.pref", |
| 10114 | FT_UINT8, BASE_DEC, |
| 10115 | NULL((void*)0), 0x0, |
| 10116 | "IQ bit width for the user data in every section in the C-Plane message, from preference", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10117 | }, |
| 10118 | |
| 10119 | { &hf_oran_sinrCompHdrIqWidth_pref, |
| 10120 | { "SINR IQ width", "oran_fh_cus.sinrCompHdrWidth", |
| 10121 | FT_UINT8, BASE_DEC, |
| 10122 | NULL((void*)0), 0x0, |
| 10123 | "Defines the IQ bit width for SINR data in section type 9", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10124 | }, |
| 10125 | { &hf_oran_sinrCompHdrMeth_pref, |
| 10126 | { "SINR Compression Method", "oran_fh_cus.sinrCompHdrMeth", |
| 10127 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10128 | RVALS(ud_comp_header_meth)((0 ? (const struct _range_string*)0 : ((ud_comp_header_meth) ))), 0x0, |
| 10129 | "Defines the compression method for SINR data in section type 9", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10130 | }, |
| 10131 | |
| 10132 | /* Section 8.3.3.15 (not always present - depends upon meth) */ |
| 10133 | { &hf_oran_udCompParam, |
| 10134 | { "User Data Compression Parameter", "oran_fh_cus.udCompParam", |
| 10135 | FT_STRING, BASE_NONE, |
| 10136 | NULL((void*)0), 0x0, |
| 10137 | "Applies to whatever compression method is specified by the associated sectionID's compMeth value", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10138 | }, |
| 10139 | /* 8.3.3.18 */ |
| 10140 | { &hf_oran_sReSMask, |
| 10141 | { "sReSMask", "oran_fh_cus.sReSMask", |
| 10142 | FT_UINT16, BASE_HEX, |
| 10143 | NULL((void*)0), 0xf0ff, |
| 10144 | "selective RE sending mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10145 | }, |
| 10146 | |
| 10147 | { &hf_oran_sReSMask_re12, |
| 10148 | { "RE-12", "oran_fh_cus.sReSMask-re12", |
| 10149 | FT_BOOLEAN, 16, |
| 10150 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x8000, |
| 10151 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10152 | }, |
| 10153 | { &hf_oran_sReSMask_re11, |
| 10154 | { "RE-11", "oran_fh_cus.sReSMask-re11", |
| 10155 | FT_BOOLEAN, 16, |
| 10156 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x4000, |
| 10157 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10158 | }, |
| 10159 | { &hf_oran_sReSMask_re10, |
| 10160 | { "RE-10", "oran_fh_cus.sReSMask-re10", |
| 10161 | FT_BOOLEAN, 16, |
| 10162 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x2000, |
| 10163 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10164 | }, |
| 10165 | { &hf_oran_sReSMask_re9, |
| 10166 | { "RE-9", "oran_fh_cus.sReSMask-re9", |
| 10167 | FT_BOOLEAN, 16, |
| 10168 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x1000, |
| 10169 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10170 | }, |
| 10171 | { &hf_oran_sReSMask_re8, |
| 10172 | { "RE-8", "oran_fh_cus.sReSMask-re8", |
| 10173 | FT_BOOLEAN, 16, |
| 10174 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0080, |
| 10175 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10176 | }, |
| 10177 | { &hf_oran_sReSMask_re7, |
| 10178 | { "RE-7", "oran_fh_cus.sReSMask-re7", |
| 10179 | FT_BOOLEAN, 16, |
| 10180 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0040, |
| 10181 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10182 | }, |
| 10183 | { &hf_oran_sReSMask_re6, |
| 10184 | { "RE-6", "oran_fh_cus.sReSMask-re6", |
| 10185 | FT_BOOLEAN, 16, |
| 10186 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0020, |
| 10187 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10188 | }, |
| 10189 | { &hf_oran_sReSMask_re5, |
| 10190 | { "RE-5", "oran_fh_cus.sReSMask-re5", |
| 10191 | FT_BOOLEAN, 16, |
| 10192 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0010, |
| 10193 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10194 | }, |
| 10195 | { &hf_oran_sReSMask_re4, |
| 10196 | { "RE-4", "oran_fh_cus.sReSMask-re4", |
| 10197 | FT_BOOLEAN, 16, |
| 10198 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0008, |
| 10199 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10200 | }, |
| 10201 | { &hf_oran_sReSMask_re3, |
| 10202 | { "RE-3", "oran_fh_cus.sReSMask-re3", |
| 10203 | FT_BOOLEAN, 16, |
| 10204 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0004, |
| 10205 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10206 | }, |
| 10207 | { &hf_oran_sReSMask_re2, |
| 10208 | { "RE-2", "oran_fh_cus.sReSMask-re2", |
| 10209 | FT_BOOLEAN, 16, |
| 10210 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0002, |
| 10211 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10212 | }, |
| 10213 | { &hf_oran_sReSMask_re1, |
| 10214 | { "RE-1", "oran_fh_cus.sReSMask-re1", |
| 10215 | FT_BOOLEAN, 16, |
| 10216 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0001, |
| 10217 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10218 | }, |
| 10219 | |
| 10220 | /* 8.3.3.20 */ |
| 10221 | { &hf_oran_sReSMask1, |
| 10222 | { "sReSMask1", "oran_fh_cus.sReSMask1", |
| 10223 | FT_UINT16, BASE_HEX, |
| 10224 | NULL((void*)0), 0x0fff, |
| 10225 | "selective RE sending mask 1", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10226 | }, |
| 10227 | /* 8.3.3.21 */ |
| 10228 | { &hf_oran_sReSMask2, |
| 10229 | { "sReSMask2", "oran_fh_cus.sReSMask2", |
| 10230 | FT_UINT16, BASE_HEX, |
| 10231 | NULL((void*)0), 0x0fff, |
| 10232 | "selective RE sending mask 2", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10233 | }, |
| 10234 | |
| 10235 | { &hf_oran_sReSMask1_2_re12, |
| 10236 | { "RE-12", "oran_fh_cus.sReSMask-re12", |
| 10237 | FT_BOOLEAN, 16, |
| 10238 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0800, |
| 10239 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10240 | }, |
| 10241 | { &hf_oran_sReSMask1_2_re11, |
| 10242 | { "RE-11", "oran_fh_cus.sReSMask-re11", |
| 10243 | FT_BOOLEAN, 16, |
| 10244 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0400, |
| 10245 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10246 | }, |
| 10247 | { &hf_oran_sReSMask1_2_re10, |
| 10248 | { "RE-10", "oran_fh_cus.sReSMask-re10", |
| 10249 | FT_BOOLEAN, 16, |
| 10250 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0200, |
| 10251 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10252 | }, |
| 10253 | { &hf_oran_sReSMask1_2_re9, |
| 10254 | { "RE-9", "oran_fh_cus.sReSMask-re9", |
| 10255 | FT_BOOLEAN, 16, |
| 10256 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0100, |
| 10257 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10258 | }, |
| 10259 | |
| 10260 | /* Section 6.3.3.15 */ |
| 10261 | { &hf_oran_iSample, |
| 10262 | { "iSample", "oran_fh_cus.iSample", |
| 10263 | FT_FLOAT, BASE_NONE, |
| 10264 | NULL((void*)0), 0x0, |
| 10265 | "In-phase Sample value", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10266 | }, |
| 10267 | |
| 10268 | /* Section 6.3.3.16 */ |
| 10269 | { &hf_oran_qSample, |
| 10270 | { "qSample", "oran_fh_cus.qSample", |
| 10271 | FT_FLOAT, BASE_NONE, |
| 10272 | NULL((void*)0), 0x0, |
| 10273 | "Quadrature Sample value", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10274 | }, |
| 10275 | |
| 10276 | { &hf_oran_exponent, |
| 10277 | { "Exponent", "oran_fh_cus.exponent", |
| 10278 | FT_UINT8, BASE_DEC, |
| 10279 | NULL((void*)0), 0x0f, |
| 10280 | "Exponent applicable to the I & Q mantissas", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10281 | }, |
| 10282 | |
| 10283 | { &hf_oran_iq_user_data, |
| 10284 | { "IQ User Data", "oran_fh_cus.iq_user_data", |
| 10285 | FT_BYTES, BASE_NONE, |
| 10286 | NULL((void*)0), 0x0, |
| 10287 | "Used for the In-phase and Quadrature sample mantissa", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10288 | }, |
| 10289 | |
| 10290 | |
| 10291 | { &hf_oran_u_section_ul_symbol_time, |
| 10292 | { "Microseconds since first UL U-plane frame for this symbol", "oran_fh_cus.us-since-first-ul-frame", |
| 10293 | FT_UINT32, BASE_DEC, |
| 10294 | NULL((void*)0), 0x0, |
| 10295 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10296 | }, |
| 10297 | { &hf_oran_u_section_ul_symbol_frames, |
| 10298 | { "Number of UL frames sent for this symbol", "oran_fh_cus.number-ul-frames-in-symbol", |
| 10299 | FT_UINT32, BASE_DEC, |
| 10300 | NULL((void*)0), 0x0, |
| 10301 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10302 | }, |
| 10303 | { &hf_oran_u_section_ul_symbol_first_frame, |
| 10304 | { "First UL frame for this symbol", "oran_fh_cus.first-ul-frame-in-symbol", |
| 10305 | FT_FRAMENUM, BASE_NONE, |
| 10306 | FRAMENUM_TYPE(FT_FRAMENUM_NONE)((gpointer) (glong) (FT_FRAMENUM_NONE)), 0x0, |
| 10307 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10308 | }, |
| 10309 | { &hf_oran_u_section_ul_symbol_last_frame, |
| 10310 | { "Last UL frame for this symbol", "oran_fh_cus.last-ul-frame-in-symbol", |
| 10311 | FT_FRAMENUM, BASE_NONE, |
| 10312 | FRAMENUM_TYPE(FT_FRAMENUM_NONE)((gpointer) (glong) (FT_FRAMENUM_NONE)), 0x0, |
| 10313 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10314 | }, |
| 10315 | |
| 10316 | { &hf_oran_c_eAxC_ID, |
| 10317 | { "c_eAxC_ID", "oran_fh_cus.c_eaxc_id", |
| 10318 | FT_STRING, BASE_NONE, |
| 10319 | NULL((void*)0), 0x0, |
| 10320 | "This is a calculated field for the c_eAxC ID, which identifies the message stream", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10321 | }, |
| 10322 | |
| 10323 | { &hf_oran_refa, |
| 10324 | { "RefA", "oran_fh_cus.refa", |
| 10325 | FT_STRING, BASE_NONE, |
| 10326 | NULL((void*)0), 0x0, |
| 10327 | "This is a calculated field for the RefA ID, which provides a reference in time", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10328 | }, |
| 10329 | |
| 10330 | |
| 10331 | /* Section 7.5.2.15 */ |
| 10332 | { &hf_oran_ciCompHdr, |
| 10333 | { "ciCompHdr", "oran_fh_cus.ciCompHdr", |
| 10334 | FT_STRING, BASE_NONE, |
| 10335 | NULL((void*)0), 0x0, |
| 10336 | "Channel Information Compression Header", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10337 | }, |
| 10338 | { &hf_oran_ciCompHdrMeth, |
| 10339 | { "User Data Compression Method", "oran_fh_cus.ciCompHdrMeth", |
| 10340 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10341 | RVALS(ud_comp_header_meth)((0 ? (const struct _range_string*)0 : ((ud_comp_header_meth) ))), 0x0e, |
| 10342 | "Compression method for Channel Information", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10343 | }, |
| 10344 | { &hf_oran_ciCompHdrIqWidth, |
| 10345 | { "User Data IQ width", "oran_fh_cus.ciCompHdrWidth", |
| 10346 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10347 | RVALS(ud_comp_header_width)((0 ? (const struct _range_string*)0 : ((ud_comp_header_width )))), 0xf0, |
| 10348 | "IQ bit width for Channel Information", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10349 | }, |
| 10350 | { &hf_oran_ciCompOpt, |
| 10351 | { "ciCompOpt", "oran_fh_cus.ciCompOpt", |
| 10352 | FT_UINT8, BASE_DEC, |
| 10353 | VALS(ci_comp_opt_vals)((0 ? (const struct _value_string*)0 : ((ci_comp_opt_vals)))), 0x01, |
| 10354 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10355 | }, |
| 10356 | |
| 10357 | /* 7.7.11.7 */ |
| 10358 | { &hf_oran_disable_bfws, |
| 10359 | { "disableBFWs", "oran_fh_cus.disableBFWs", |
| 10360 | FT_BOOLEAN, 8, |
| 10361 | NULL((void*)0), 0x80, |
| 10362 | "Indicate if BFWs under section extension are disabled", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10363 | }, |
| 10364 | /* 7.7.11.8 */ |
| 10365 | { &hf_oran_rad, |
| 10366 | { "RAD", "oran_fh_cus.rad", |
| 10367 | FT_BOOLEAN, 8, |
| 10368 | NULL((void*)0), 0x40, |
| 10369 | "Reset After PRB Discontinuity", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10370 | }, |
| 10371 | /* 7.7.11.4 */ |
| 10372 | { &hf_oran_num_bund_prbs, |
| 10373 | { "numBundPrb", "oran_fh_cus.numBundPrb", |
| 10374 | FT_UINT8, BASE_DEC, |
| 10375 | NULL((void*)0), 0x0, |
| 10376 | "Number of bundled PRBs per BFWs", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10377 | }, |
| 10378 | { &hf_oran_beam_id, |
| 10379 | { "beamId", "oran_fh_cus.beamId", |
| 10380 | FT_UINT16, BASE_DEC, |
| 10381 | NULL((void*)0), 0x7fff, |
| 10382 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10383 | }, |
| 10384 | { &hf_oran_num_weights_per_bundle, |
| 10385 | { "Num weights per bundle", "oran_fh_cus.num_weights_per_bundle", |
| 10386 | FT_UINT16, BASE_DEC, |
| 10387 | NULL((void*)0), 0x0, |
| 10388 | "From dissector preference", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10389 | }, |
| 10390 | |
| 10391 | { &hf_oran_samples_prb, |
| 10392 | {"PRB", "oran_fh_cus.prb", |
| 10393 | FT_STRING, BASE_NONE, |
| 10394 | NULL((void*)0), 0x0, |
| 10395 | "Grouping of samples for a particular Physical Resource Block", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10396 | }, |
| 10397 | |
| 10398 | /* 7.5.3.13 */ |
| 10399 | { &hf_oran_ciSample, |
| 10400 | { "ciSample", "oran_fh_cus.ciSample", |
| 10401 | FT_STRING, BASE_NONE, |
| 10402 | NULL((void*)0), 0x0, |
| 10403 | "Sample (I and Q values)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10404 | }, |
| 10405 | { &hf_oran_ciIsample, |
| 10406 | { "ciIsample", "oran_fh_cus.ciISample", |
| 10407 | FT_FLOAT, BASE_NONE, |
| 10408 | NULL((void*)0), 0x0, |
| 10409 | "Channel information complex value - I part", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10410 | }, |
| 10411 | { &hf_oran_ciQsample, |
| 10412 | { "ciQsample", "oran_fh_cus.ciQSample", |
| 10413 | FT_FLOAT, BASE_NONE, |
| 10414 | NULL((void*)0), 0x0, |
| 10415 | "Channel information complex value - Q part", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10416 | }, |
| 10417 | |
| 10418 | /* 7.7.10 */ |
| 10419 | { &hf_oran_se10_port, |
| 10420 | { "Port entry", "oran_fh_cus.portEntry", |
| 10421 | FT_NONE, BASE_NONE, |
| 10422 | NULL((void*)0), 0x0, |
| 10423 | "SE10 port entry", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10424 | }, |
| 10425 | /* 7.7.10.2 */ |
| 10426 | { &hf_oran_beamGroupType, |
| 10427 | { "beamGroupType", "oran_fh_cus.beamGroupType", |
| 10428 | FT_UINT8, BASE_DEC, |
| 10429 | VALS(beam_group_type_vals)((0 ? (const struct _value_string*)0 : ((beam_group_type_vals )))), 0xc0, |
| 10430 | "The type of beam grouping", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10431 | }, |
| 10432 | /* 7.7.10.3 */ |
| 10433 | { &hf_oran_numPortc, |
| 10434 | { "numPortc", "oran_fh_cus.numPortc", |
| 10435 | FT_UINT8, BASE_DEC, |
| 10436 | NULL((void*)0), 0x3f, |
| 10437 | "The number of eAxC ports", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10438 | }, |
| 10439 | |
| 10440 | /* 7.7.4.2 (1 bit) */ |
| 10441 | { &hf_oran_csf, |
| 10442 | { "csf", "oran_fh_cus.csf", |
| 10443 | FT_BOOLEAN, BASE_NONE, |
| 10444 | NULL((void*)0), 0x0, |
| 10445 | "constellation shift flag", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10446 | }, |
| 10447 | /* 7.7.4.3 */ |
| 10448 | { &hf_oran_modcompscaler, |
| 10449 | { "modCompScaler", "oran_fh_cus.modcompscaler", |
| 10450 | FT_UINT16, BASE_DEC, |
| 10451 | NULL((void*)0), 0x7fff, |
| 10452 | "modulation compression scaler value", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10453 | }, |
| 10454 | |
| 10455 | /* 7.7.5.1 */ |
| 10456 | { &hf_oran_modcomp_param_set, |
| 10457 | { "Set", "oran_fh_cus.modcomp-param-set", |
| 10458 | FT_STRING, BASE_NONE, |
| 10459 | NULL((void*)0), 0x0, |
| 10460 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10461 | }, |
| 10462 | |
| 10463 | |
| 10464 | |
| 10465 | /* mcScaleReMask 7.7.5.2 (12 bits) */ |
| 10466 | |
| 10467 | /* First entry (starts with msb within byte) */ |
| 10468 | { &hf_oran_mc_scale_re_mask_re1, |
| 10469 | { "RE 1", "oran_fh_cus.mcscalermask-RE1", |
| 10470 | FT_BOOLEAN, 16, |
| 10471 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x8000, |
| 10472 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10473 | }, |
| 10474 | { &hf_oran_mc_scale_re_mask_re2, |
| 10475 | { "RE 2", "oran_fh_cus.mcscalermask-RE2", |
| 10476 | FT_BOOLEAN, 16, |
| 10477 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x4000, |
| 10478 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10479 | }, |
| 10480 | { &hf_oran_mc_scale_re_mask_re3, |
| 10481 | { "RE 3", "oran_fh_cus.mcscalermask-RE3", |
| 10482 | FT_BOOLEAN, 16, |
| 10483 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x2000, |
| 10484 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10485 | }, |
| 10486 | { &hf_oran_mc_scale_re_mask_re4, |
| 10487 | { "RE 4", "oran_fh_cus.mcscalermask-RE4", |
| 10488 | FT_BOOLEAN, 16, |
| 10489 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x1000, |
| 10490 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10491 | }, |
| 10492 | { &hf_oran_mc_scale_re_mask_re5, |
| 10493 | { "RE 5", "oran_fh_cus.mcscalermask-RE5", |
| 10494 | FT_BOOLEAN, 16, |
| 10495 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0800, |
| 10496 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10497 | }, |
| 10498 | { &hf_oran_mc_scale_re_mask_re6, |
| 10499 | { "RE 6", "oran_fh_cus.mcscalermask-RE6", |
| 10500 | FT_BOOLEAN, 16, |
| 10501 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0400, |
| 10502 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10503 | }, |
| 10504 | { &hf_oran_mc_scale_re_mask_re7, |
| 10505 | { "RE 7", "oran_fh_cus.mcscalermask-RE7", |
| 10506 | FT_BOOLEAN, 16, |
| 10507 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0200, |
| 10508 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10509 | }, |
| 10510 | { &hf_oran_mc_scale_re_mask_re8, |
| 10511 | { "RE 8", "oran_fh_cus.mcscalermask-RE8", |
| 10512 | FT_BOOLEAN, 16, |
| 10513 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0100, |
| 10514 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10515 | }, |
| 10516 | { &hf_oran_mc_scale_re_mask_re9, |
| 10517 | { "RE 9", "oran_fh_cus.mcscalermask-RE9", |
| 10518 | FT_BOOLEAN, 16, |
| 10519 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0080, |
| 10520 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10521 | }, |
| 10522 | { &hf_oran_mc_scale_re_mask_re10, |
| 10523 | { "RE 10", "oran_fh_cus.mcscalermask-RE10", |
| 10524 | FT_BOOLEAN, 16, |
| 10525 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0040, |
| 10526 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10527 | }, |
| 10528 | { &hf_oran_mc_scale_re_mask_re11, |
| 10529 | { "RE 11", "oran_fh_cus.mcscalermask-RE11", |
| 10530 | FT_BOOLEAN, 16, |
| 10531 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0020, |
| 10532 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10533 | }, |
| 10534 | { &hf_oran_mc_scale_re_mask_re12, |
| 10535 | { "RE 12", "oran_fh_cus.mcscalermask-RE12", |
| 10536 | FT_BOOLEAN, 16, |
| 10537 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0010, |
| 10538 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10539 | }, |
| 10540 | |
| 10541 | /* Even tries entry (starts with 5th bit within byte) */ |
| 10542 | { &hf_oran_mc_scale_re_mask_re1_even, |
| 10543 | { "RE 1", "oran_fh_cus.mcscalermask-RE1", |
| 10544 | FT_BOOLEAN, 16, |
| 10545 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0800, |
| 10546 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10547 | }, |
| 10548 | { &hf_oran_mc_scale_re_mask_re2_even, |
| 10549 | { "RE 2", "oran_fh_cus.mcscalermask-RE2", |
| 10550 | FT_BOOLEAN, 16, |
| 10551 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0400, |
| 10552 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10553 | }, |
| 10554 | { &hf_oran_mc_scale_re_mask_re3_even, |
| 10555 | { "RE 3", "oran_fh_cus.mcscalermask-RE3", |
| 10556 | FT_BOOLEAN, 16, |
| 10557 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0200, |
| 10558 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10559 | }, |
| 10560 | { &hf_oran_mc_scale_re_mask_re4_even, |
| 10561 | { "RE 4", "oran_fh_cus.mcscalermask-RE4", |
| 10562 | FT_BOOLEAN, 16, |
| 10563 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0100, |
| 10564 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10565 | }, |
| 10566 | { &hf_oran_mc_scale_re_mask_re5_even, |
| 10567 | { "RE 5", "oran_fh_cus.mcscalermask-RE5", |
| 10568 | FT_BOOLEAN, 16, |
| 10569 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0080, |
| 10570 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10571 | }, |
| 10572 | { &hf_oran_mc_scale_re_mask_re6_even, |
| 10573 | { "RE 6", "oran_fh_cus.mcscalermask-RE6", |
| 10574 | FT_BOOLEAN, 16, |
| 10575 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0040, |
| 10576 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10577 | }, |
| 10578 | { &hf_oran_mc_scale_re_mask_re7_even, |
| 10579 | { "RE 7", "oran_fh_cus.mcscalermask-RE7", |
| 10580 | FT_BOOLEAN, 16, |
| 10581 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0020, |
| 10582 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10583 | }, |
| 10584 | { &hf_oran_mc_scale_re_mask_re8_even, |
| 10585 | { "RE 8", "oran_fh_cus.mcscalermask-RE8", |
| 10586 | FT_BOOLEAN, 16, |
| 10587 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0010, |
| 10588 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10589 | }, |
| 10590 | { &hf_oran_mc_scale_re_mask_re9_even, |
| 10591 | { "RE 9", "oran_fh_cus.mcscalermask-RE9", |
| 10592 | FT_BOOLEAN, 16, |
| 10593 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0008, |
| 10594 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10595 | }, |
| 10596 | { &hf_oran_mc_scale_re_mask_re10_even, |
| 10597 | { "RE 10", "oran_fh_cus.mcscalermask-RE10", |
| 10598 | FT_BOOLEAN, 16, |
| 10599 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0004, |
| 10600 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10601 | }, |
| 10602 | { &hf_oran_mc_scale_re_mask_re11_even, |
| 10603 | { "RE 11", "oran_fh_cus.mcscalermask-RE11", |
| 10604 | FT_BOOLEAN, 16, |
| 10605 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0002, |
| 10606 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10607 | }, |
| 10608 | { &hf_oran_mc_scale_re_mask_re12_even, |
| 10609 | { "RE 12", "oran_fh_cus.mcscalermask-RE12", |
| 10610 | FT_BOOLEAN, 16, |
| 10611 | TFS(&tfs_applicable_not_applicable)((0 ? (const struct true_false_string*)0 : ((&tfs_applicable_not_applicable )))), 0x0001, |
| 10612 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10613 | }, |
| 10614 | |
| 10615 | { &hf_oran_mc_scale_re_mask, |
| 10616 | { "mcScaleReMask", "oran_fh_cus.mcscaleremask", |
| 10617 | FT_UINT16, BASE_HEX, |
| 10618 | NULL((void*)0), 0xfff0, |
| 10619 | "modulation compression power scale RE mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10620 | }, |
| 10621 | { &hf_oran_mc_scale_re_mask_even, |
| 10622 | { "mcScaleReMask", "oran_fh_cus.mcscaleremask", |
| 10623 | FT_UINT16, BASE_HEX, |
| 10624 | NULL((void*)0), 0x0fff, |
| 10625 | "modulation compression power scale RE mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10626 | }, |
| 10627 | |
| 10628 | /* mcScaleOffset 7.7.5.4 (15 bits) */ |
| 10629 | { &hf_oran_mc_scale_offset, |
| 10630 | { "mcScaleOffset", "oran_fh_cus.mcscaleoffset", |
| 10631 | FT_UINT24, BASE_DEC, |
| 10632 | NULL((void*)0), 0x0, |
| 10633 | "scaling value for modulation compression", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10634 | }, |
| 10635 | /* eAxCmask (7.7.7.2) */ |
| 10636 | { &hf_oran_eAxC_mask, |
| 10637 | { "eAxC Mask", "oran_fh_cus.eaxcmask", |
| 10638 | FT_UINT16, BASE_HEX, |
| 10639 | NULL((void*)0), 0xffff, |
| 10640 | "Which eAxC_ID values the C-Plane message applies to", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10641 | }, |
| 10642 | /* technology (interface name) 7.7.9.2 */ |
| 10643 | { &hf_oran_technology, |
| 10644 | { "Technology", "oran_fh_cus.technology", |
| 10645 | FT_UINT8, BASE_DEC, |
| 10646 | VALS(interface_name_vals)((0 ? (const struct _value_string*)0 : ((interface_name_vals) ))), 0x0, |
| 10647 | "Interface name (that C-PLane section applies to)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10648 | }, |
| 10649 | /* Exttype 14 (7.7.14.2) */ |
| 10650 | { &hf_oran_nullLayerInd, |
| 10651 | { "nullLayerInd", "oran_fh_cus.nulllayerind", |
| 10652 | FT_BOOLEAN, BASE_NONE, |
| 10653 | NULL((void*)0), 0x0, |
| 10654 | "Whether corresponding layer is nulling-layer or not", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10655 | }, |
| 10656 | |
| 10657 | /* Exttype 19 */ |
| 10658 | /* 7.7.19.3 */ |
| 10659 | { &hf_oran_se19_repetition, |
| 10660 | { "repetition", "oran_fh_cus.repetition", |
| 10661 | FT_BOOLEAN, BASE_NONE, |
| 10662 | TFS(&repetition_se19_tfs)((0 ? (const struct true_false_string*)0 : ((&repetition_se19_tfs )))), 0x0, |
| 10663 | "repeat port info flag", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10664 | }, |
| 10665 | /* 7.7.19.8 */ |
| 10666 | /* TODO: break down into each RE as done for 7.5.3.5 ? */ |
| 10667 | { &hf_oran_portReMask, |
| 10668 | { "portReMask", "oran_fh_cus.portReMask", |
| 10669 | FT_BOOLEAN, 16, |
| 10670 | TFS(&tfs_set_notset)((0 ? (const struct true_false_string*)0 : ((&tfs_set_notset )))), 0x0fff, |
| 10671 | "RE bitmask per port", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10672 | }, |
| 10673 | /* 7.7.19.9 */ |
| 10674 | { &hf_oran_portSymbolMask, |
| 10675 | { "portSymbolMask", "oran_fh_cus.portSymbolMask", |
| 10676 | FT_BOOLEAN, 16, |
| 10677 | TFS(&tfs_set_notset)((0 ? (const struct true_false_string*)0 : ((&tfs_set_notset )))), 0x3fff, |
| 10678 | "Symbol bitmask port port", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10679 | }, |
| 10680 | |
| 10681 | { &hf_oran_ext19_port, |
| 10682 | {"Port", "oran_fh_cus.ext19.port", |
| 10683 | FT_STRING, BASE_NONE, |
| 10684 | NULL((void*)0), 0x0, |
| 10685 | "Entry for a given port in ext19", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10686 | }, |
| 10687 | |
| 10688 | /* Ext 13 */ |
| 10689 | { &hf_oran_prb_allocation, |
| 10690 | {"PRB allocation", "oran_fh_cus.prb-allocation", |
| 10691 | FT_STRING, BASE_NONE, |
| 10692 | NULL((void*)0), 0x0, |
| 10693 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10694 | }, |
| 10695 | /* 7.7.13.2 */ |
| 10696 | { &hf_oran_nextSymbolId, |
| 10697 | { "nextSymbolId", "oran_fh_cus.nextSymbolId", |
| 10698 | FT_UINT8, BASE_DEC, |
| 10699 | NULL((void*)0), 0x3c, |
| 10700 | "offset of PRB range start", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10701 | }, |
| 10702 | /* 7.7.13.3 */ |
| 10703 | { &hf_oran_nextStartPrbc, |
| 10704 | { "nextStartPrbc", "oran_fh_cus.nextStartPrbc", |
| 10705 | FT_UINT16, BASE_DEC, |
| 10706 | NULL((void*)0), 0x03ff, |
| 10707 | "number of PRBs in PRB range", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10708 | }, |
| 10709 | |
| 10710 | /* Puncturing patters as appears in SE 20 */ |
| 10711 | { &hf_oran_puncPattern, |
| 10712 | { "puncPattern", "oran_fh_cus.puncPattern", |
| 10713 | FT_STRING, BASE_NONE, |
| 10714 | NULL((void*)0), 0x0, |
| 10715 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10716 | }, |
| 10717 | |
| 10718 | /* 7.7.20.2 numPuncPatterns */ |
| 10719 | { &hf_oran_numPuncPatterns, |
| 10720 | { "numPuncPatterns", "oran_fh_cus.numPuncPatterns", |
| 10721 | FT_UINT8, BASE_DEC, |
| 10722 | NULL((void*)0), 0x0, |
| 10723 | "number of puncturing patterns", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } |
| 10724 | }, |
| 10725 | /* 7.7.20.3 symbolMask */ |
| 10726 | { &hf_oran_symbolMask_ext20, |
| 10727 | { "symbolMask", "oran_fh_cus.symbolMask", |
| 10728 | FT_UINT16, BASE_HEX, |
| 10729 | NULL((void*)0), 0xfffc, |
| 10730 | "Bitmask where each bit indicates the symbols associated with the puncturing pattern", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10731 | }, |
| 10732 | /* 7.7.20.4 startPuncPrb */ |
| 10733 | { &hf_oran_startPuncPrb, |
| 10734 | { "startPuncPrb", "oran_fh_cus.startPuncPrb", |
| 10735 | FT_UINT16, BASE_DEC, |
| 10736 | NULL((void*)0), 0x03ff, |
| 10737 | "starting PRB to which one puncturing pattern applies", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10738 | }, |
| 10739 | /* 7.7.20.5 numPuncPrb */ |
| 10740 | { &hf_oran_numPuncPrb, |
| 10741 | { "numPuncPrb", "oran_fh_cus.numPuncPrb", |
| 10742 | FT_UINT8, BASE_DEC, |
| 10743 | NULL((void*)0), 0x0, |
| 10744 | "the number of PRBs of the puncturing pattern", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10745 | }, |
| 10746 | /* 7.7.20.6 puncReMask */ |
| 10747 | { &hf_oran_puncReMask, |
| 10748 | { "puncReMask", "oran_fh_cus.puncReMask", |
| 10749 | FT_UINT16, BASE_DEC, |
| 10750 | NULL((void*)0), 0xfff0, |
| 10751 | "puncturing pattern RE mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10752 | }, |
| 10753 | /* 7.7.20.12 multiSDScope */ |
| 10754 | { &hf_oran_multiSDScope, |
| 10755 | { "multiSDScope", "oran_fh_cus.multiSDScope", |
| 10756 | FT_BOOLEAN, 8, |
| 10757 | TFS(&multi_sd_scope_tfs)((0 ? (const struct true_false_string*)0 : ((&multi_sd_scope_tfs )))), 0x02, |
| 10758 | "multiple section description scope flag", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10759 | }, |
| 10760 | /* 7.7.20.4 rbgIncl */ |
| 10761 | { &hf_oran_RbgIncl, |
| 10762 | { "rbgIncl", "oran_fh_cus.rbgIncl", |
| 10763 | FT_BOOLEAN, 8, |
| 10764 | NULL((void*)0), 0x01, |
| 10765 | "rbg included flag", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10766 | }, |
| 10767 | |
| 10768 | /* 7.7.21.2 ciPrbGroupSize */ |
| 10769 | { &hf_oran_ci_prb_group_size, |
| 10770 | { "ciPrbGroupSize", "oran_fh_cus.ciPrbGroupSize", |
| 10771 | FT_UINT8, BASE_DEC, |
| 10772 | NULL((void*)0), 0x0, |
| 10773 | "channel information PRB group size", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10774 | }, |
| 10775 | /* 7.21.3 */ |
| 10776 | { &hf_oran_prg_size_st5, |
| 10777 | { "prgSize", "oran_fh_cus.prgSize", |
| 10778 | FT_UINT8, BASE_DEC, |
| 10779 | VALS(prg_size_st5_vals)((0 ? (const struct _value_string*)0 : ((prg_size_st5_vals))) ), 0x03, |
| 10780 | "precoding resource block group size", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10781 | }, |
| 10782 | { &hf_oran_prg_size_st6, |
| 10783 | { "prgSize", "oran_fh_cus.prgSize", |
| 10784 | FT_UINT8, BASE_DEC, |
| 10785 | VALS(prg_size_st6_vals)((0 ? (const struct _value_string*)0 : ((prg_size_st6_vals))) ), 0x03, |
| 10786 | "precoding resource block group size", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10787 | }, |
| 10788 | |
| 10789 | /* 7.7.17.2 numUeID */ |
| 10790 | { &hf_oran_num_ueid, |
| 10791 | { "numUeID", "oran_fh_cus.numUeID", |
| 10792 | FT_UINT8, BASE_DEC, |
| 10793 | NULL((void*)0), 0x0, |
| 10794 | "number of ueIDs per user", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10795 | }, |
| 10796 | |
| 10797 | /* 7.7.16.2 antMask */ |
| 10798 | { &hf_oran_antMask, |
| 10799 | { "antMask", "oran_fh_cus.antMask", |
| 10800 | FT_UINT64, BASE_HEX, |
| 10801 | NULL((void*)0), 0xffffffffffffffff, |
| 10802 | "indices of antennas to be pre-combined per RX endpoint", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10803 | }, |
| 10804 | |
| 10805 | /* 7.7.18.2 transmissionWindowOffset */ |
| 10806 | { &hf_oran_transmissionWindowOffset, |
| 10807 | { "transmissionWindowOffset", "oran_fh_cus.transmissionWindowOffset", |
| 10808 | FT_UINT16, BASE_DEC, |
| 10809 | NULL((void*)0), 0x0, |
| 10810 | "start of the transmission window as an offset to when the transmission window would have been without this parameter, i.e. (Ta3_max - Ta3_min)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10811 | }, |
| 10812 | /* 7.7.18.3 transmissionWindowSize */ |
| 10813 | { &hf_oran_transmissionWindowSize, |
| 10814 | { "transmissionWindowSize", "oran_fh_cus.transmissionWindowSize", |
| 10815 | FT_UINT16, BASE_DEC, |
| 10816 | NULL((void*)0), 0x3fff, |
| 10817 | "size of the transmission window in resolution µs", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10818 | }, |
| 10819 | /* 7.7.18.4 toT */ |
| 10820 | { &hf_oran_toT, |
| 10821 | { "toT", "oran_fh_cus.toT", |
| 10822 | FT_UINT8, BASE_DEC, |
| 10823 | VALS(type_of_transmission_vals)((0 ? (const struct _value_string*)0 : ((type_of_transmission_vals )))), 0x03, |
| 10824 | "type of transmission", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10825 | }, |
| 10826 | |
| 10827 | /* 7.7.2.2 bfaCompHdr */ |
| 10828 | { &hf_oran_bfaCompHdr, |
| 10829 | { "bfaCompHdr", "oran_fh_cus.bfaCompHdr", |
| 10830 | FT_STRING, BASE_NONE, |
| 10831 | NULL((void*)0), 0x0, |
| 10832 | "beamforming attributes compression header", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10833 | }, |
| 10834 | /* 7.7.2.2-2: bfAzPtWidth */ |
| 10835 | { &hf_oran_bfAzPtWidth, |
| 10836 | { "bfAzPtWidth", "oran_fh_cus.bfAzPtWidth", |
| 10837 | FT_UINT8, BASE_DEC, |
| 10838 | VALS(bfa_bw_vals)((0 ? (const struct _value_string*)0 : ((bfa_bw_vals)))), 0x38, |
| 10839 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10840 | }, |
| 10841 | /* 7.7.2.2-3: bfZePtWidth */ |
| 10842 | { &hf_oran_bfZePtWidth, |
| 10843 | { "bfZePtWidth", "oran_fh_cus.bfZePtWidth", |
| 10844 | FT_UINT8, BASE_DEC, |
| 10845 | VALS(bfa_bw_vals)((0 ? (const struct _value_string*)0 : ((bfa_bw_vals)))), 0x07, |
| 10846 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10847 | }, |
| 10848 | /* 7.7.2.2-4: bfAz3ddWidth */ |
| 10849 | { &hf_oran_bfAz3ddWidth, |
| 10850 | { "bfAz3ddWidth", "oran_fh_cus.bfAz3ddWidth", |
| 10851 | FT_UINT8, BASE_DEC, |
| 10852 | VALS(bfa_bw_vals)((0 ? (const struct _value_string*)0 : ((bfa_bw_vals)))), 0x38, |
| 10853 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10854 | }, |
| 10855 | /* 7.7.2.2-5: bfZe3ddWidth */ |
| 10856 | { &hf_oran_bfZe3ddWidth, |
| 10857 | { "bfZe3ddWidth", "oran_fh_cus.bfZe3ddWidth", |
| 10858 | FT_UINT8, BASE_DEC, |
| 10859 | VALS(bfa_bw_vals)((0 ? (const struct _value_string*)0 : ((bfa_bw_vals)))), 0x07, |
| 10860 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10861 | }, |
| 10862 | |
| 10863 | /* 7.7.2.3 bfAzPt */ |
| 10864 | { &hf_oran_bfAzPt, |
| 10865 | { "bfAzPt", "oran_fh_cus.bfAzPt", |
| 10866 | FT_UINT8, BASE_DEC, |
| 10867 | NULL((void*)0), 0x0, |
| 10868 | "beamforming azimuth pointing parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10869 | }, |
| 10870 | /* 7.7.2.4 bfZePt */ |
| 10871 | { &hf_oran_bfZePt, |
| 10872 | { "bfZePt", "oran_fh_cus.bfZePt", |
| 10873 | FT_UINT8, BASE_DEC, |
| 10874 | NULL((void*)0), 0x0, |
| 10875 | "beamforming zenith pointing parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10876 | }, |
| 10877 | /* 7.7.2.5 bfAz3dd */ |
| 10878 | { &hf_oran_bfAz3dd, |
| 10879 | { "bfAz3dd", "oran_fh_cus.bfAz3dd", |
| 10880 | FT_UINT8, BASE_DEC, |
| 10881 | NULL((void*)0), 0x0, |
| 10882 | "beamforming azimuth beamwidth parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10883 | }, |
| 10884 | /* 7.7.2.6 bfZe3dd */ |
| 10885 | { &hf_oran_bfZe3dd, |
| 10886 | { "bfZe3dd", "oran_fh_cus.bfZe3dd", |
| 10887 | FT_UINT8, BASE_DEC, |
| 10888 | NULL((void*)0), 0x0, |
| 10889 | "beamforming zenith beamwidth parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10890 | }, |
| 10891 | |
| 10892 | /* 7.7.2.7 bfAzSl */ |
| 10893 | { &hf_oran_bfAzSl, |
| 10894 | { "bfAzSl", "oran_fh_cus.bfAzSl", |
| 10895 | FT_UINT8, BASE_DEC, |
| 10896 | VALS(sidelobe_suppression_vals)((0 ? (const struct _value_string*)0 : ((sidelobe_suppression_vals )))), 0x38, |
| 10897 | "beamforming azimuth sidelobe parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10898 | }, |
| 10899 | /* 7.7.2.8 bfZeSl */ |
| 10900 | { &hf_oran_bfZeSl, |
| 10901 | { "bfZeSl", "oran_fh_cus.bfZeSl", |
| 10902 | FT_UINT8, BASE_DEC, |
| 10903 | VALS(sidelobe_suppression_vals)((0 ? (const struct _value_string*)0 : ((sidelobe_suppression_vals )))), 0x07, |
| 10904 | "beamforming zenith sidelobe parameter", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10905 | }, |
| 10906 | |
| 10907 | /* 7.5.2.17 */ |
| 10908 | { &hf_oran_cmd_scope, |
| 10909 | { "cmdScope", "oran_fh_cus.cmdScope", |
| 10910 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10911 | RVALS(cmd_scope_vals)((0 ? (const struct _range_string*)0 : ((cmd_scope_vals)))), 0x0f, |
| 10912 | "command scope", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10913 | }, |
| 10914 | /* 7.5.2.18 */ |
| 10915 | { &hf_oran_number_of_st4_cmds, |
| 10916 | { "numberOfST4Cmds", "oran_fh_cus.numberOfST4Cmds", |
| 10917 | FT_UINT8, BASE_DEC, |
| 10918 | NULL((void*)0), 0x0, |
| 10919 | "Number of Section Type 4 commands", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10920 | }, |
| 10921 | |
| 10922 | { &hf_oran_st4_cmd_header, |
| 10923 | { "Command common header", "oran_fh_cus.st4CmdCommonHeader", |
| 10924 | FT_STRING, BASE_NONE, |
| 10925 | NULL((void*)0), 0x0, |
| 10926 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10927 | }, |
| 10928 | |
| 10929 | /* 7.5.3.38 */ |
| 10930 | { &hf_oran_st4_cmd_type, |
| 10931 | { "st4CmdType", "oran_fh_cus.st4CmdType", |
| 10932 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 10933 | RVALS(st4_cmd_type_vals)((0 ? (const struct _range_string*)0 : ((st4_cmd_type_vals))) ), 0x0, |
| 10934 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10935 | }, |
| 10936 | /* 7.5.3.39 */ |
| 10937 | { &hf_oran_st4_cmd_len, |
| 10938 | { "st4CmdLen", "oran_fh_cus.st4CmdLen", |
| 10939 | FT_UINT16, BASE_DEC, |
| 10940 | NULL((void*)0), 0x0, |
| 10941 | "Length of command in 32-bit words", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10942 | }, |
| 10943 | /* 7.5.3.40 */ |
| 10944 | { &hf_oran_st4_cmd_num_slots, |
| 10945 | { "numSlots", "oran_fh_cus.st4NumSlots", |
| 10946 | FT_UINT8, BASE_DEC, |
| 10947 | NULL((void*)0), 0x0, |
| 10948 | "Contiguous slots for which command is applicable", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10949 | }, |
| 10950 | /* 7.5.3.41 */ |
| 10951 | { &hf_oran_st4_cmd_ack_nack_req_id, |
| 10952 | { "ackNackReqId", "oran_fh_cus.ackNackReqId", |
| 10953 | FT_UINT16, BASE_DEC, |
| 10954 | NULL((void*)0), 0x0, |
| 10955 | "ACK/NACK Request Id", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10956 | }, |
| 10957 | |
| 10958 | { &hf_oran_st4_cmd, |
| 10959 | { "Command", "oran_fh_cus.st4Cmd", |
| 10960 | FT_STRING, BASE_NONE, |
| 10961 | NULL((void*)0), 0x0, |
| 10962 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10963 | }, |
| 10964 | |
| 10965 | /* 7.5.3.52 */ |
| 10966 | { &hf_oran_sleepmode_trx, |
| 10967 | { "sleepMode", "oran_fh_cus.sleepMode", |
| 10968 | FT_UINT8, BASE_HEX, |
| 10969 | VALS(sleep_mode_trx_vals)((0 ? (const struct _value_string*)0 : ((sleep_mode_trx_vals) ))), 0x03, |
| 10970 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10971 | }, |
| 10972 | { &hf_oran_sleepmode_asm, |
| 10973 | { "sleepMode", "oran_fh_cus.sleepMode", |
| 10974 | FT_UINT8, BASE_HEX, |
| 10975 | VALS(sleep_mode_asm_vals)((0 ? (const struct _value_string*)0 : ((sleep_mode_asm_vals) ))), 0x03, |
| 10976 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10977 | }, |
| 10978 | |
| 10979 | /* 7.5.3.51 */ |
| 10980 | { &hf_oran_log2maskbits, |
| 10981 | { "log2MaskBits", "oran_fh_cus.log2MaskBits", |
| 10982 | FT_UINT8, BASE_HEX, |
| 10983 | VALS(log2maskbits_vals)((0 ? (const struct _value_string*)0 : ((log2maskbits_vals))) ), 0x3c, |
| 10984 | "Number of bits to appear in antMask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10985 | }, |
| 10986 | /* 7.5.3.53 */ |
| 10987 | { &hf_oran_num_slots_ext, |
| 10988 | { "numSlotsExt", "oran_fh_cus.numSlotsExt", |
| 10989 | FT_UINT24, BASE_HEX, |
| 10990 | NULL((void*)0), 0x0fffff, |
| 10991 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10992 | }, |
| 10993 | /* 7.5.3.54 */ |
| 10994 | { &hf_oran_antMask_trx_control, |
| 10995 | { "antMask", "oran_fh_cus.trxControl.antMask", |
| 10996 | FT_BYTES, BASE_NONE, |
| 10997 | NULL((void*)0), 0x0, |
| 10998 | "which antennas should sleep or wake-up", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 10999 | }, |
| 11000 | |
| 11001 | /* 7.5.3.136 */ |
| 11002 | { &hf_oran_max_pwr_lvl_ind, |
| 11003 | { "maxPwrLvlInd", "oran_fh_cus.maxPwrLvlInd", |
| 11004 | FT_UINT8, BASE_DEC, |
| 11005 | NULL((void*)0), 0x0, |
| 11006 | "Maximum output power for tx-array", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11007 | }, |
| 11008 | /* 7.5.3.137 */ |
| 11009 | { &hf_oran_array_carrier_max_pwr_reduction, |
| 11010 | { "arrayCarrierMaxPwrReduction", "oran_fh_cus.arrayCarrierMaxPwrReduction", |
| 11011 | FT_UINT16, BASE_DEC, |
| 11012 | NULL((void*)0), 0x0, |
| 11013 | "array carrier power reduction", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11014 | }, |
| 11015 | |
| 11016 | /* 7.734.3 */ |
| 11017 | { &hf_oran_port_list_en, |
| 11018 | { "portListEn", "oran_fh_cus.portListEn", |
| 11019 | FT_BOOLEAN, 8, |
| 11020 | NULL((void*)0), 0x80, |
| 11021 | "port list enabled", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11022 | }, |
| 11023 | /* 7.7.34.4 */ |
| 11024 | { &hf_oran_tpmi_mode, |
| 11025 | { "tpmiMode", "oran_fh_cus.tpmiMode", |
| 11026 | FT_UINT8, BASE_DEC, |
| 11027 | VALS(tpmi_mode_vals)((0 ? (const struct _value_string*)0 : ((tpmi_mode_vals)))), 0x07, |
| 11028 | "TPMI mode selection", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11029 | }, |
| 11030 | /* 7.7.34.5 */ |
| 11031 | { &hf_oran_num_ueid_se34, |
| 11032 | { "numUeId", "oran_fh_cus.numUeId", |
| 11033 | FT_UINT8, BASE_DEC, |
| 11034 | NULL((void*)0), 0x3f, |
| 11035 | "Number of uplink layers", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11036 | }, |
| 11037 | { &hf_oran_ueid_se34, |
| 11038 | { "ueId", "oran_fh_cus.ueId", |
| 11039 | FT_UINT16, BASE_DEC, |
| 11040 | NULL((void*)0), 0x0, |
| 11041 | "ueId for UE layer", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11042 | }, |
| 11043 | { &hf_oran_num_port_list_index, |
| 11044 | { "numPortListIndex", "oran_fh_cus.numPortListIndex", |
| 11045 | FT_UINT8, BASE_DEC, |
| 11046 | NULL((void*)0), 0x0, |
| 11047 | "Number of portListIndex values to follow", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11048 | }, |
| 11049 | /* 7.7.34.6.2 */ |
| 11050 | { &hf_oran_chan_srs_port_mask, |
| 11051 | { "srsPortMask", "oran_fh_cus.srsPortMask", |
| 11052 | FT_UINT8, BASE_DEC, |
| 11053 | NULL((void*)0), 0x0, |
| 11054 | "SRS antenna ports used for tx of UE layer", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11055 | }, |
| 11056 | /* 7.7.34.6.3 */ |
| 11057 | { &hf_oran_tpmi_phase_7, |
| 11058 | { "tpmiPhase7", "oran_fh_cus.tpmiPhase7", |
| 11059 | FT_UINT8, BASE_DEC, |
| 11060 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0xc0, |
| 11061 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11062 | }, |
| 11063 | { &hf_oran_tpmi_phase_6, |
| 11064 | { "tpmiPhase6", "oran_fh_cus.tpmiPhase6", |
| 11065 | FT_UINT8, BASE_DEC, |
| 11066 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0x30, |
| 11067 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11068 | }, |
| 11069 | { &hf_oran_tpmi_phase_5, |
| 11070 | { "tpmiPhase5", "oran_fh_cus.tpmiPhase5", |
| 11071 | FT_UINT8, BASE_DEC, |
| 11072 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0x0c, |
| 11073 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11074 | }, |
| 11075 | { &hf_oran_tpmi_phase_4, |
| 11076 | { "tpmiPhase4", "oran_fh_cus.tpmiPhase4", |
| 11077 | FT_UINT8, BASE_DEC, |
| 11078 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0x03, |
| 11079 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11080 | }, |
| 11081 | { &hf_oran_tpmi_phase_3, |
| 11082 | { "tpmiPhase3", "oran_fh_cus.tpmiPhase3", |
| 11083 | FT_UINT8, BASE_DEC, |
| 11084 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0xc0, |
| 11085 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11086 | }, |
| 11087 | { &hf_oran_tpmi_phase_2, |
| 11088 | { "tpmiPhase2", "oran_fh_cus.tpmiPhase2", |
| 11089 | FT_UINT8, BASE_DEC, |
| 11090 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0x30, |
| 11091 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11092 | }, |
| 11093 | { &hf_oran_tpmi_phase_1, |
| 11094 | { "tpmiPhase1", "oran_fh_cus.tpmiPhase1", |
| 11095 | FT_UINT8, BASE_DEC, |
| 11096 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0x0c, |
| 11097 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11098 | }, |
| 11099 | { &hf_oran_tpmi_phase_0, |
| 11100 | { "tpmiPhase0", "oran_fh_cus.tpmiPhase0", |
| 11101 | FT_UINT8, BASE_DEC, |
| 11102 | VALS(tpmi_phase_vals)((0 ? (const struct _value_string*)0 : ((tpmi_phase_vals)))), 0x03, |
| 11103 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11104 | }, |
| 11105 | |
| 11106 | /* 7.5.3.55 */ |
| 11107 | { &hf_oran_ready, |
| 11108 | { "ready", "oran_fh_cus.ready", |
| 11109 | FT_BOOLEAN, 8, |
| 11110 | TFS(&ready_tfs)((0 ? (const struct true_false_string*)0 : ((&ready_tfs)) )), 0x01, |
| 11111 | "wake-up ready indicator", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11112 | }, |
| 11113 | /* 7.5.3.34 */ |
| 11114 | { &hf_oran_number_of_acks, |
| 11115 | { "numberOfAcks", "oran_fh_cus.numberOfAcks", |
| 11116 | FT_UINT8, BASE_DEC, |
| 11117 | NULL((void*)0), 0x0, |
| 11118 | "number of ACKs for one eAxC_ID", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11119 | }, |
| 11120 | /* 7.5.3.35 */ |
| 11121 | { &hf_oran_number_of_nacks, |
| 11122 | { "numberOfNacks", "oran_fh_cus.numberOfNacks", |
| 11123 | FT_UINT8, BASE_DEC, |
| 11124 | NULL((void*)0), 0x0, |
| 11125 | "number of NACKs for one eAxC_ID", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11126 | }, |
| 11127 | /* 7.5.3.36 */ |
| 11128 | { &hf_oran_ackid, |
| 11129 | { "ackId", "oran_fh_cus.ackId", |
| 11130 | FT_UINT16, BASE_DEC, |
| 11131 | NULL((void*)0), 0x0, |
| 11132 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11133 | }, |
| 11134 | /* 7.5.3.37 */ |
| 11135 | { &hf_oran_nackid, |
| 11136 | { "nackId", "oran_fh_cus.nackId", |
| 11137 | FT_UINT16, BASE_DEC, |
| 11138 | NULL((void*)0), 0x0, |
| 11139 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11140 | }, |
| 11141 | |
| 11142 | /* Links between acknack requests & responses */ |
| 11143 | { &hf_oran_acknack_request_frame, |
| 11144 | { "Request Frame", "oran_fh_cus.ackNackId.request-frame", |
| 11145 | FT_FRAMENUM, BASE_NONE, |
| 11146 | FRAMENUM_TYPE(FT_FRAMENUM_REQUEST)((gpointer) (glong) (FT_FRAMENUM_REQUEST)), 0x0, |
| 11147 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11148 | }, |
| 11149 | { &hf_oran_acknack_request_time, |
| 11150 | { "Time since request in ms", "oran_fh_cus.ackNackId.time-since-request", |
| 11151 | FT_UINT32, BASE_DEC, |
| 11152 | NULL((void*)0), 0x0, |
| 11153 | "Time between request and response", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11154 | }, |
| 11155 | { &hf_oran_acknack_request_type, |
| 11156 | { "Request Type", "oran_fh_cus.ackNackId.request-type", |
| 11157 | FT_UINT32, BASE_DEC, |
| 11158 | VALS(acknack_type_vals)((0 ? (const struct _value_string*)0 : ((acknack_type_vals))) ), 0x0, |
| 11159 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11160 | }, |
| 11161 | { &hf_oran_acknack_response_frame, |
| 11162 | { "Response Frame", "oran_fh_cus.ackNackId.response-frame", |
| 11163 | FT_FRAMENUM, BASE_NONE, |
| 11164 | FRAMENUM_TYPE(FT_FRAMENUM_RESPONSE)((gpointer) (glong) (FT_FRAMENUM_RESPONSE)), 0x0, |
| 11165 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11166 | }, |
| 11167 | { &hf_oran_acknack_response_time, |
| 11168 | { "Time to response in ms", "oran_fh_cus.ackNackId.time-to-response", |
| 11169 | FT_UINT32, BASE_DEC, |
| 11170 | NULL((void*)0), 0x0, |
| 11171 | "Time between request and response", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11172 | }, |
| 11173 | |
| 11174 | /* 7.5.3.43 */ |
| 11175 | { &hf_oran_disable_tdbfns, |
| 11176 | { "disableTDBFNs", "oran_fh_cus.disableTDBFNs", |
| 11177 | FT_BOOLEAN, 8, |
| 11178 | TFS(&disable_tdbfns_tfs)((0 ? (const struct true_false_string*)0 : ((&disable_tdbfns_tfs )))), 0x80, |
| 11179 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11180 | }, |
| 11181 | |
| 11182 | /* 7.5.3.44 */ |
| 11183 | { &hf_oran_td_beam_group, |
| 11184 | { "tdBeamGrp", "oran_fh_cus.tdBeamGrp", |
| 11185 | FT_UINT16, BASE_HEX, |
| 11186 | NULL((void*)0), 0x7fff, |
| 11187 | "Applies to symbolMask in command header", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11188 | }, |
| 11189 | /* 7.5.3.43 */ |
| 11190 | { &hf_oran_disable_tdbfws, |
| 11191 | { "disableTDBFWs", "oran_fh_cus.disableTDBFWs", |
| 11192 | FT_BOOLEAN, 8, |
| 11193 | TFS(&beam_numbers_included_tfs)((0 ? (const struct true_false_string*)0 : ((&beam_numbers_included_tfs )))), 0x80, |
| 11194 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11195 | }, |
| 11196 | |
| 11197 | /* 7.5.3.56 */ |
| 11198 | { &hf_oran_td_beam_num, |
| 11199 | { "tdBeamNum", "oran_fh_cus.tdBeamNum", |
| 11200 | FT_UINT16, BASE_HEX, |
| 11201 | NULL((void*)0), 0x7fff, |
| 11202 | "time-domain beam number", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11203 | }, |
| 11204 | |
| 11205 | /* 7.5.3.49 */ |
| 11206 | { &hf_oran_dir_pattern, |
| 11207 | { "dirPattern", "oran_fh_cus.dirPattern", |
| 11208 | FT_BOOLEAN, 16, |
| 11209 | TFS(&symbol_direction_tfs)((0 ? (const struct true_false_string*)0 : ((&symbol_direction_tfs )))), 0x3fff, |
| 11210 | "symbol data direction (gNB Tx/Rx) pattern", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11211 | }, |
| 11212 | /* 7.5.3.50 */ |
| 11213 | { &hf_oran_guard_pattern, |
| 11214 | { "guardPattern", "oran_fh_cus.guardPattern", |
| 11215 | FT_BOOLEAN, 16, |
| 11216 | TFS(&symbol_guard_tfs)((0 ? (const struct true_false_string*)0 : ((&symbol_guard_tfs )))), 0x3fff, |
| 11217 | "guard pattern bitmask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11218 | }, |
| 11219 | |
| 11220 | /* For convenient filtering */ |
| 11221 | { &hf_oran_cplane, |
| 11222 | { "C-Plane", "oran_fh_cus.c-plane", |
| 11223 | FT_NONE, BASE_NONE, |
| 11224 | NULL((void*)0), 0x0, |
| 11225 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11226 | }, |
| 11227 | { &hf_oran_uplane, |
| 11228 | { "U-Plane", "oran_fh_cus.u-plane", |
| 11229 | FT_NONE, BASE_NONE, |
| 11230 | NULL((void*)0), 0x0, |
| 11231 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11232 | }, |
| 11233 | { &hf_oran_bf, |
| 11234 | { "BeamForming", "oran_fh_cus.bf", |
| 11235 | FT_NONE, BASE_NONE, |
| 11236 | NULL((void*)0), 0x0, |
| 11237 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11238 | }, |
| 11239 | { &hf_oran_zero_prb, |
| 11240 | { "Zero PRB", "oran_fh_cus.zero-prb", |
| 11241 | FT_NONE, BASE_NONE, |
| 11242 | NULL((void*)0), 0x0, |
| 11243 | "All of the REs in this PRB are zero", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11244 | }, |
| 11245 | { &hf_oran_nonzero_prb, |
| 11246 | { "Non-Zero PRB", "oran_fh_cus.nonzero-prb", |
| 11247 | FT_NONE, BASE_NONE, |
| 11248 | NULL((void*)0), 0x0, |
| 11249 | "Not all of the REs in this PRB are zero", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11250 | }, |
| 11251 | /* TODO: rename, as now used in ext1 too, which doesn't really have bundles? */ |
| 11252 | { &hf_oran_bundle_weights_all_zero, |
| 11253 | { "Bundle Weights all zero", "oran_fh_cus.zero-bundle", |
| 11254 | FT_NONE, BASE_NONE, |
| 11255 | NULL((void*)0), 0x0, |
| 11256 | "All of the weights in a bundle are zero", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11257 | }, |
| 11258 | |
| 11259 | |
| 11260 | /* 5.1.3.2.7 */ |
| 11261 | { &hf_oran_ecpri_pcid, |
| 11262 | { "ecpriPcid", "oran_fh_cus.ecpriPcid", |
| 11263 | FT_NONE, BASE_NONE, |
| 11264 | NULL((void*)0), 0x0, |
| 11265 | "IQ data transfer message series identifier", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11266 | }, |
| 11267 | { &hf_oran_ecpri_rtcid, |
| 11268 | { "ecpriRtcid", "oran_fh_cus.ecpriRtcid", |
| 11269 | FT_NONE, BASE_NONE, |
| 11270 | NULL((void*)0), 0x0, |
| 11271 | "Real time control data identifier", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11272 | }, |
| 11273 | /* 5.1.3.2.8 */ |
| 11274 | { &hf_oran_ecpri_seqid, |
| 11275 | { "ecpriSeqid", "oran_fh_cus.ecpriSeqid", |
| 11276 | FT_NONE, BASE_NONE, |
| 11277 | NULL((void*)0), 0x0, |
| 11278 | "message identifier", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11279 | }, |
| 11280 | |
| 11281 | /* 7.7.23.2 */ |
| 11282 | { &hf_oran_num_sym_prb_pattern, |
| 11283 | { "numSymPrbPattern", "oran_fh_cus.numSymPrbPattern", |
| 11284 | FT_UINT8, BASE_DEC, |
| 11285 | NULL((void*)0), 0xf0, |
| 11286 | "number of symbol and resource block patterns", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11287 | }, |
| 11288 | /* 7.7.23.9 */ |
| 11289 | { &hf_oran_prb_mode, |
| 11290 | { "prbMode", "oran_fh_cus.prbMode", |
| 11291 | FT_BOOLEAN, 8, |
| 11292 | TFS(&prb_mode_tfs)((0 ? (const struct true_false_string*)0 : ((&prb_mode_tfs )))), 0x01, |
| 11293 | "PRB Mode", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11294 | }, |
| 11295 | /* 7.7.23.4 */ |
| 11296 | { &hf_oran_sym_prb_pattern, |
| 11297 | { "symPrbPattern", "oran_fh_cus.symPrbPattern", |
| 11298 | FT_STRING, BASE_NONE, |
| 11299 | NULL((void*)0), 0x0, |
| 11300 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11301 | }, |
| 11302 | /* 7.7.23.3 */ |
| 11303 | { &hf_oran_sym_mask, |
| 11304 | { "symMask", "oran_fh_cus.symMask", |
| 11305 | FT_UINT16, BASE_HEX, |
| 11306 | NULL((void*)0), 0x3fff, |
| 11307 | "symbol mask part of symPrbPattern", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11308 | }, |
| 11309 | /* 7.7.23.5 */ |
| 11310 | {&hf_oran_num_mc_scale_offset, |
| 11311 | {"numMcScaleOffset", "oran_fh_cus.numMcScaleOffset", |
| 11312 | FT_UINT8, BASE_DEC, |
| 11313 | NULL((void*)0), 0xf0, |
| 11314 | "number of modulation compression scaling value per symPrbPattern", |
| 11315 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11316 | }, |
| 11317 | /* 7.7.23.4 */ |
| 11318 | { &hf_oran_prb_pattern, |
| 11319 | { "prbPattern", "oran_fh_cus.prbPattern", |
| 11320 | FT_UINT8, BASE_DEC, |
| 11321 | NULL((void*)0), 0x0f, |
| 11322 | "size of one PRB block of one SymPrbPattern", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11323 | }, |
| 11324 | /* 7.7.23.10 */ |
| 11325 | { &hf_oran_prb_blk_offset, |
| 11326 | { "prbBlkOffset", "oran_fh_cus.prbBlkOffset", |
| 11327 | FT_UINT16, BASE_DEC, |
| 11328 | NULL((void*)0), 0x0ff0, |
| 11329 | "offset to start of PRB block", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11330 | }, |
| 11331 | |
| 11332 | /* 7.7.23.11 */ |
| 11333 | { &hf_oran_prb_blk_size, |
| 11334 | { "prbBlkSize", "oran_fh_cus.prbBlkSize", |
| 11335 | FT_UINT16, BASE_DEC, |
| 11336 | NULL((void*)0), 0x0ff0, |
| 11337 | "size of one PRB block of one SymPrbPattern", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11338 | }, |
| 11339 | |
| 11340 | /* 7.7.3.2 */ |
| 11341 | { &hf_oran_codebook_index, |
| 11342 | { "codebookIndex", "oran_fh_cus.codebookIndex", |
| 11343 | FT_UINT8, BASE_DEC, |
| 11344 | NULL((void*)0), 0x0, |
| 11345 | "precoder codebook used for transmission", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11346 | }, |
| 11347 | /* 7.7.3.3 */ |
| 11348 | { &hf_oran_layerid, |
| 11349 | { "layerID", "oran_fh_cus.layerID", |
| 11350 | FT_UINT8, BASE_DEC, |
| 11351 | NULL((void*)0), 0xf0, |
| 11352 | "Layer ID for DL transmission", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11353 | }, |
| 11354 | /* 7.7.3.5 */ |
| 11355 | { &hf_oran_numlayers, |
| 11356 | { "numLayers", "oran_fh_cus.numLayers", |
| 11357 | FT_UINT8, BASE_DEC, |
| 11358 | NULL((void*)0), 0x0f, |
| 11359 | "number of layers for DL transmission", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11360 | }, |
| 11361 | /* 7.7.3.4 */ |
| 11362 | { &hf_oran_txscheme, |
| 11363 | { "txScheme", "oran_fh_cus.txScheme", |
| 11364 | FT_UINT8, BASE_DEC, |
| 11365 | NULL((void*)0), 0xf0, |
| 11366 | "transmission scheme", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11367 | }, |
| 11368 | /* 7.7.3.6 */ |
| 11369 | { &hf_oran_crs_remask, |
| 11370 | { "crsReMask", "oran_fh_cus.crsReMask", |
| 11371 | FT_UINT16, BASE_HEX, |
| 11372 | NULL((void*)0), 0x0fff, |
| 11373 | "CRS resource element mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11374 | }, |
| 11375 | /* 7.7.3.8 */ |
| 11376 | { &hf_oran_crs_shift, |
| 11377 | { "crsShift", "oran_fh_cus.crsShift", |
| 11378 | FT_UINT8, BASE_HEX, |
| 11379 | NULL((void*)0), 0x80, |
| 11380 | "CRS resource element mask", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11381 | }, |
| 11382 | /* 7.7.3.7 */ |
| 11383 | { &hf_oran_crs_symnum, |
| 11384 | { "crsSymNum", "oran_fh_cus.crsSymNum", |
| 11385 | FT_UINT8, BASE_DEC, |
| 11386 | NULL((void*)0), 0x0f, |
| 11387 | "CRS symbol number indication", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11388 | }, |
| 11389 | /* 7.7.3.9 */ |
| 11390 | { &hf_oran_beamid_ap1, |
| 11391 | { "beamIdAP1", "oran_fh_cus.beamIdAP1", |
| 11392 | FT_UINT16, BASE_DEC, |
| 11393 | NULL((void*)0), 0x7fff, |
| 11394 | "beam id to be used for antenna port 1", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11395 | }, |
| 11396 | /* 7.7.3.10 */ |
| 11397 | { &hf_oran_beamid_ap2, |
| 11398 | { "beamIdAP2", "oran_fh_cus.beamIdAP2", |
| 11399 | FT_UINT16, BASE_DEC, |
| 11400 | NULL((void*)0), 0x7fff, |
| 11401 | "beam id to be used for antenna port 2", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11402 | }, |
| 11403 | /* 7.7.3.11 */ |
| 11404 | { &hf_oran_beamid_ap3, |
| 11405 | { "beamIdAP3", "oran_fh_cus.beamIdAP3", |
| 11406 | FT_UINT16, BASE_DEC, |
| 11407 | NULL((void*)0), 0x7fff, |
| 11408 | "beam id to be used for antenna port 3", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11409 | }, |
| 11410 | |
| 11411 | /* 7.7.10.3a */ |
| 11412 | { &hf_oran_port_list_index, |
| 11413 | { "portListIndex", "oran_fh_cus.portListIndex", |
| 11414 | FT_UINT8, BASE_DEC, |
| 11415 | NULL((void*)0), 0x0, |
| 11416 | "the index of an eAxC_ID in the port-list", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11417 | }, |
| 11418 | |
| 11419 | { &hf_oran_alpn_per_sym, |
| 11420 | { "alpnPerSym", "oran_fh_cus.alpnPerSym", |
| 11421 | FT_UINT8, BASE_HEX, |
| 11422 | VALS(alpn_per_sym_vals)((0 ? (const struct _value_string*)0 : ((alpn_per_sym_vals))) ), 0x80, |
| 11423 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11424 | }, |
| 11425 | { &hf_oran_ant_dmrs_snr, |
| 11426 | { "antDmrsSnr", "oran_fh_cus.antDmrsSnr", |
| 11427 | FT_UINT8, BASE_HEX, |
| 11428 | VALS(ant_dmrs_snr_vals)((0 ? (const struct _value_string*)0 : ((ant_dmrs_snr_vals))) ), 0x40, |
| 11429 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11430 | }, |
| 11431 | |
| 11432 | /* 7.7.24.6 */ |
| 11433 | { &hf_oran_user_group_size, |
| 11434 | { "userGroupSize", "oran_fh_cus.userGroupSize", |
| 11435 | FT_UINT8, BASE_DEC, |
| 11436 | NULL((void*)0), 0x1f, |
| 11437 | "number of UE data layers in the user group identified by userGroupId", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11438 | }, |
| 11439 | /* 7.7.24.7 */ |
| 11440 | { &hf_oran_user_group_id, |
| 11441 | { "userGroupId", "oran_fh_cus.userGroupId", |
| 11442 | FT_UINT8, BASE_DEC, |
| 11443 | NULL((void*)0), 0x0, |
| 11444 | "indicates user group described by the section", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11445 | }, |
| 11446 | /* 7.7.24.8 */ |
| 11447 | { &hf_oran_entry_type, |
| 11448 | { "entryType", "oran_fh_cus.entryType", |
| 11449 | FT_UINT8, BASE_DEC, |
| 11450 | VALS(entry_type_vals)((0 ? (const struct _value_string*)0 : ((entry_type_vals)))), 0xe0, |
| 11451 | "indicates format of the entry", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11452 | }, |
| 11453 | /* 7.7.24.9 */ |
| 11454 | { &hf_oran_dmrs_port_number, |
| 11455 | { "dmrsPortNumber", "oran_fh_cus.dmrsPortNumber", |
| 11456 | FT_UINT8, BASE_DEC, |
| 11457 | NULL((void*)0), 0x1f, |
| 11458 | "DMRS antenna port number for the associated ueId", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11459 | }, |
| 11460 | /* 7.7.24.10 */ |
| 11461 | { &hf_oran_ueid_reset, |
| 11462 | { "ueidReset", "oran_fh_cus.ueidReset", |
| 11463 | FT_BOOLEAN, 8, |
| 11464 | TFS(&tfs_ueid_reset)((0 ? (const struct true_false_string*)0 : ((&tfs_ueid_reset )))), 0x80, |
| 11465 | "same UEID as the previous slot", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11466 | }, |
| 11467 | /* 7.7.24.11 */ |
| 11468 | { &hf_oran_dmrs_symbol_mask, |
| 11469 | { "dmrsSymbolMask", "oran_fh_cus.dmrsSymbolMask", |
| 11470 | FT_UINT16, BASE_HEX, |
| 11471 | NULL((void*)0), 0x3fff, |
| 11472 | "symbols within the slot containing DMRS", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11473 | }, |
| 11474 | { &hf_oran_dmrs_symbol_mask_s13, |
| 11475 | { "symbol 13", "oran_fh_cus.dmrsSymbolMask.symbol-13", |
| 11476 | FT_BOOLEAN, 16, |
| 11477 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x2000, |
| 11478 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11479 | }, |
| 11480 | { &hf_oran_dmrs_symbol_mask_s12, |
| 11481 | { "symbol 12", "oran_fh_cus.dmrsSymbolMask.symbol-12", |
| 11482 | FT_BOOLEAN, 16, |
| 11483 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x1000, |
| 11484 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11485 | }, |
| 11486 | { &hf_oran_dmrs_symbol_mask_s11, |
| 11487 | { "symbol 11", "oran_fh_cus.dmrsSymbolMask.symbol-11", |
| 11488 | FT_BOOLEAN, 16, |
| 11489 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0800, |
| 11490 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11491 | }, |
| 11492 | { &hf_oran_dmrs_symbol_mask_s10, |
| 11493 | { "symbol 10", "oran_fh_cus.dmrsSymbolMask.symbol-10", |
| 11494 | FT_BOOLEAN, 16, |
| 11495 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0400, |
| 11496 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11497 | }, |
| 11498 | { &hf_oran_dmrs_symbol_mask_s9, |
| 11499 | { "symbol 9", "oran_fh_cus.dmrsSymbolMask.symbol-9", |
| 11500 | FT_BOOLEAN, 16, |
| 11501 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0200, |
| 11502 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11503 | }, |
| 11504 | { &hf_oran_dmrs_symbol_mask_s8, |
| 11505 | { "symbol 8", "oran_fh_cus.dmrsSymbolMask.symbol-8", |
| 11506 | FT_BOOLEAN, 16, |
| 11507 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0100, |
| 11508 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11509 | }, |
| 11510 | { &hf_oran_dmrs_symbol_mask_s7, |
| 11511 | { "symbol 7", "oran_fh_cus.dmrsSymbolMask.symbol-7", |
| 11512 | FT_BOOLEAN, 16, |
| 11513 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0080, |
| 11514 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11515 | }, |
| 11516 | { &hf_oran_dmrs_symbol_mask_s6, |
| 11517 | { "symbol 6", "oran_fh_cus.dmrsSymbolMask.symbol-6", |
| 11518 | FT_BOOLEAN, 16, |
| 11519 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0040, |
| 11520 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11521 | }, |
| 11522 | { &hf_oran_dmrs_symbol_mask_s5, |
| 11523 | { "symbol 5", "oran_fh_cus.dmrsSymbolMask.symbol-5", |
| 11524 | FT_BOOLEAN, 16, |
| 11525 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0020, |
| 11526 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11527 | }, |
| 11528 | { &hf_oran_dmrs_symbol_mask_s4, |
| 11529 | { "symbol 4", "oran_fh_cus.dmrsSymbolMask.symbol-4", |
| 11530 | FT_BOOLEAN, 16, |
| 11531 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0010, |
| 11532 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11533 | }, |
| 11534 | { &hf_oran_dmrs_symbol_mask_s3, |
| 11535 | { "symbol 3", "oran_fh_cus.dmrsSymbolMask.symbol-3", |
| 11536 | FT_BOOLEAN, 16, |
| 11537 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0008, |
| 11538 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11539 | }, |
| 11540 | { &hf_oran_dmrs_symbol_mask_s2, |
| 11541 | { "symbol 2", "oran_fh_cus.dmrsSymbolMask.symbol-2", |
| 11542 | FT_BOOLEAN, 16, |
| 11543 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0004, |
| 11544 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11545 | }, |
| 11546 | { &hf_oran_dmrs_symbol_mask_s1, |
| 11547 | { "symbol 1", "oran_fh_cus.dmrsSymbolMask.symbol-1", |
| 11548 | FT_BOOLEAN, 16, |
| 11549 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0002, |
| 11550 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11551 | }, |
| 11552 | { &hf_oran_dmrs_symbol_mask_s0, |
| 11553 | { "symbol 0", "oran_fh_cus.dmrsSymbolMask.symbol-0", |
| 11554 | FT_BOOLEAN, 16, |
| 11555 | TFS(&tfs_present_not_present)((0 ? (const struct true_false_string*)0 : ((&tfs_present_not_present )))), 0x0001, |
| 11556 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11557 | }, |
| 11558 | |
| 11559 | /* 7.7.24.12 */ |
| 11560 | { &hf_oran_scrambling, |
| 11561 | { "scrambling", "oran_fh_cus.scrambling", |
| 11562 | FT_UINT16, BASE_HEX, |
| 11563 | NULL((void*)0), 0x0, |
| 11564 | "used to calculate the seed value required to initialize pseudo-random generator", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11565 | }, |
| 11566 | /* 7.7.24.13 */ |
| 11567 | { &hf_oran_nscid, |
| 11568 | { "nscid", "oran_fh_cus.nscid", |
| 11569 | FT_UINT8, BASE_HEX, |
| 11570 | NULL((void*)0), 0x80, |
| 11571 | "used to calculate the seed value for pseudo-random generator", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11572 | }, |
| 11573 | /* 7.7.24.14 */ |
| 11574 | { &hf_oran_dtype, |
| 11575 | { "dType", "oran_fh_cus.dType", |
| 11576 | FT_UINT8, BASE_HEX, |
| 11577 | VALS(dtype_vals)((0 ? (const struct _value_string*)0 : ((dtype_vals)))), 0x40, |
| 11578 | "PUSCH DMRS configuration type", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11579 | }, |
| 11580 | /* 7.7.24.15 */ |
| 11581 | { &hf_oran_cmd_without_data, |
| 11582 | { "cmdWithoutData", "oran_fh_cus.cmdWithoutData", |
| 11583 | FT_UINT8, BASE_HEX, |
| 11584 | NULL((void*)0), 0x30, |
| 11585 | "number of DMRS CDM groups without data", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11586 | }, |
| 11587 | /* 7.7.24.16 */ |
| 11588 | { &hf_oran_lambda, |
| 11589 | { "lambda", "oran_fh_cus.lambda", |
| 11590 | FT_UINT8, BASE_HEX, |
| 11591 | NULL((void*)0), 0x0c, |
| 11592 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11593 | }, |
| 11594 | /* 7.7.24.19 */ |
| 11595 | { &hf_oran_first_prb, |
| 11596 | { "firstPrb", "oran_fh_cus.firstPrb", |
| 11597 | FT_UINT16, BASE_DEC, |
| 11598 | NULL((void*)0), 0x03fe, |
| 11599 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11600 | }, |
| 11601 | /* 7.7.24.20 */ |
| 11602 | { &hf_oran_last_prb, |
| 11603 | { "lastPrb", "oran_fh_cus.lastPrb", |
| 11604 | FT_UINT16, BASE_DEC, |
| 11605 | NULL((void*)0), 0x01ff, |
| 11606 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11607 | }, |
| 11608 | |
| 11609 | /* 7.7.24.17 */ |
| 11610 | /* TODO: add value_string */ |
| 11611 | { &hf_oran_low_papr_type, |
| 11612 | { "lowPaprType", "oran_fh_cus.lowPaprType", |
| 11613 | FT_UINT8, BASE_HEX, |
| 11614 | VALS(papr_type_vals)((0 ? (const struct _value_string*)0 : ((papr_type_vals)))), 0x30, |
| 11615 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11616 | }, |
| 11617 | /* 7.7.24.18 */ |
| 11618 | { &hf_oran_hopping_mode, |
| 11619 | { "hoppingMode", "oran_fh_cus.hoppingMode", |
| 11620 | FT_UINT8, BASE_HEX, |
| 11621 | VALS(hopping_mode_vals)((0 ? (const struct _value_string*)0 : ((hopping_mode_vals))) ), 0x0c, |
| 11622 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11623 | }, |
| 11624 | |
| 11625 | { &hf_oran_tx_win_for_on_air_symbol_l, |
| 11626 | { "txWinForOnAirSymbol", "oran_fh_cus.txWinForOnAirSymbol", |
| 11627 | FT_UINT8, BASE_DEC, |
| 11628 | NULL((void*)0), 0xf0, |
| 11629 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11630 | }, |
| 11631 | { &hf_oran_tx_win_for_on_air_symbol_r, |
| 11632 | { "txWinForOnAirSymbol", "oran_fh_cus.txWinForOnAirSymbol", |
| 11633 | FT_UINT8, BASE_DEC, |
| 11634 | NULL((void*)0), 0x0f, |
| 11635 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11636 | }, |
| 11637 | /* 7.7.26.2 */ |
| 11638 | { &hf_oran_num_fo_fb, |
| 11639 | { "numFoFb", "oran_fh_cus.numFoFb", |
| 11640 | FT_UINT8, BASE_DEC, |
| 11641 | NULL((void*)0), 0x7f, |
| 11642 | "number of frequency offset feedback", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11643 | }, |
| 11644 | /* 7.7.26.3 */ |
| 11645 | { &hf_oran_freq_offset_fb, |
| 11646 | { "freqOffsetFb", "oran_fh_cus.freqOffsetFb", |
| 11647 | FT_UINT16, BASE_HEX_DEC | BASE_RANGE_STRING0x00000100, |
| 11648 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11649 | "UE frequency offset feedback", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11650 | }, |
| 11651 | |
| 11652 | /* 7.7.28.2 */ |
| 11653 | { &hf_oran_num_ue_sinr_rpt, |
| 11654 | { "numUeSinrRpt", "oran_fh_cus.numUeSinrRpt", |
| 11655 | FT_UINT8, BASE_DEC, |
| 11656 | NULL((void*)0), 0x1f, |
| 11657 | "number of sinr reported UEs {1 - 12}", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11658 | }, |
| 11659 | |
| 11660 | /* 7.5.2.19 */ |
| 11661 | { &hf_oran_num_sinr_per_prb, |
| 11662 | { "numSinrPerPrb", "oran_fh_cus.numSinrPerPrb", |
| 11663 | FT_UINT8, BASE_DEC, |
| 11664 | VALS(num_sinr_per_prb_vals)((0 ? (const struct _value_string*)0 : ((num_sinr_per_prb_vals )))), 0x70, |
| 11665 | "number of SINR values per PRB", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11666 | }, |
| 11667 | { &hf_oran_num_sinr_per_prb_right, |
| 11668 | { "numSinrPerPrb", "oran_fh_cus.numSinrPerPrb", |
| 11669 | FT_UINT8, BASE_DEC, |
| 11670 | VALS(num_sinr_per_prb_vals)((0 ? (const struct _value_string*)0 : ((num_sinr_per_prb_vals )))), 0x07, |
| 11671 | "number of SINR values per PRB", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11672 | }, |
| 11673 | { &hf_oran_num_sinr_per_prb_st9, |
| 11674 | { "numSinrPerPrb", "oran_fh_cus.numSinrPerPrb", |
| 11675 | FT_UINT8, BASE_DEC, |
| 11676 | VALS(num_sinr_per_prb_vals)((0 ? (const struct _value_string*)0 : ((num_sinr_per_prb_vals )))), 0xe0, |
| 11677 | "number of SINR values per PRB", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11678 | }, |
| 11679 | |
| 11680 | /* 7.5.3.68 */ |
| 11681 | { &hf_oran_sinr_value, |
| 11682 | { "sinrValue", "oran_fh_cus.sinrValue", |
| 11683 | FT_FLOAT, BASE_NONE, |
| 11684 | NULL((void*)0), 0x0, |
| 11685 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11686 | }, |
| 11687 | |
| 11688 | { &hf_oran_measurement_report, |
| 11689 | { "Measurement Report", "oran_fh_cus.measurement-report", |
| 11690 | FT_STRING, BASE_NONE, |
| 11691 | NULL((void*)0), 0x0, |
| 11692 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11693 | }, |
| 11694 | /* 7.5.3.57 */ |
| 11695 | { &hf_oran_mf, |
| 11696 | { "mf", "oran_fh_cus.mf", |
| 11697 | FT_BOOLEAN, 8, |
| 11698 | TFS(&measurement_flag_tfs)((0 ? (const struct true_false_string*)0 : ((&measurement_flag_tfs )))), 0x80, |
| 11699 | "measurement flag", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11700 | }, |
| 11701 | /* 7.5.3.59 */ |
| 11702 | { &hf_oran_meas_data_size, |
| 11703 | { "measDataSize", "oran_fh_cus.measDataSize", |
| 11704 | FT_UINT16, BASE_DEC, |
| 11705 | NULL((void*)0), 0x0, |
| 11706 | "measurement data size (in words)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11707 | }, |
| 11708 | |
| 11709 | /* 7.5.3.58 */ |
| 11710 | { &hf_oran_meas_type_id, |
| 11711 | { "measTypeId", "oran_fh_cus.measTypeId", |
| 11712 | FT_UINT8, BASE_DEC, |
| 11713 | VALS(meas_type_id_vals)((0 ? (const struct _value_string*)0 : ((meas_type_id_vals))) ), 0x7F, |
| 11714 | "measurement report type identifier", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11715 | }, |
| 11716 | /* 7.5.3.66 */ |
| 11717 | { &hf_oran_num_elements, |
| 11718 | { "numElements", "oran_fh_cus.numElements", |
| 11719 | FT_UINT8, BASE_DEC, |
| 11720 | NULL((void*)0), 0x0, |
| 11721 | "measurement report type identifier", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11722 | }, |
| 11723 | /* 7.5.3.60 */ |
| 11724 | { &hf_oran_ue_tae, |
| 11725 | { "ueTae", "oran_fh_cus.ueTae", |
| 11726 | FT_UINT16, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11727 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11728 | "UE Timing Advance Error", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11729 | }, |
| 11730 | /* 7.5.3.61 */ |
| 11731 | { &hf_oran_ue_layer_power, |
| 11732 | { "ueLayerPower", "oran_fh_cus.ueLayerPower", |
| 11733 | FT_UINT16, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11734 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11735 | "UE Layer Power", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11736 | }, |
| 11737 | |
| 11738 | /* 7.5.3.62 */ |
| 11739 | { &hf_oran_ue_freq_offset, |
| 11740 | { "ueFreqOffset", "oran_fh_cus.ueFreqOffset", |
| 11741 | FT_UINT16, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11742 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11743 | "UE frequency offset", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11744 | }, |
| 11745 | /* 7.5.3.63 */ |
| 11746 | { &hf_oran_ipn_power, |
| 11747 | { "ipnPower", "oran_fh_cus.ipnPower", |
| 11748 | FT_UINT16, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11749 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11750 | "Interference plus Noise power", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11751 | }, |
| 11752 | /* 7.5.3.64 */ |
| 11753 | { &hf_oran_ant_dmrs_snr_val, |
| 11754 | { "antDmrsSnrVal", "oran_fh_cus.antDmrsSnrVal", |
| 11755 | FT_UINT16, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11756 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11757 | "antenna DMRS-SNR", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11758 | }, |
| 11759 | |
| 11760 | { &hf_oran_measurement_command, |
| 11761 | { "Measurement Command", "oran_fh_cus.measurement-command", |
| 11762 | FT_STRING, BASE_NONE, |
| 11763 | NULL((void*)0), 0x0, |
| 11764 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11765 | }, |
| 11766 | |
| 11767 | /* 7.5.27.2 */ |
| 11768 | { &hf_oran_beam_type, |
| 11769 | {"beamType", "oran_fh_cus.beamType", |
| 11770 | FT_UINT16, BASE_DEC, |
| 11771 | VALS(beam_type_vals)((0 ? (const struct _value_string*)0 : ((beam_type_vals)))), 0xc0, |
| 11772 | NULL((void*)0), |
| 11773 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11774 | }, |
| 11775 | /* 7.5.3.65 */ |
| 11776 | { &hf_oran_meas_cmd_size, |
| 11777 | {"measCmdSize", "oran_fh_cus.measCmdSize", |
| 11778 | FT_UINT16, BASE_DEC, |
| 11779 | NULL((void*)0), 0x0, |
| 11780 | "measurement command size in words", |
| 11781 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11782 | }, |
| 11783 | /* 7.5.3.73 */ |
| 11784 | { &hf_oran_curr_ue_freq_offset, |
| 11785 | { "currUeFreqOffset", "oran_fh_cus.currUeFreqOffset", |
| 11786 | FT_UINT16, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11787 | RVALS(freq_offset_fb_values)((0 ? (const struct _range_string*)0 : ((freq_offset_fb_values )))), 0x0, |
| 11788 | "Estimated UE frequency offset in current slot (Hz)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11789 | }, |
| 11790 | |
| 11791 | { &hf_oran_symbol_reordering_layer, |
| 11792 | { "Layer", "oran_fh_cus.layer", |
| 11793 | FT_STRING, BASE_NONE, |
| 11794 | NULL((void*)0), 0x0, |
| 11795 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11796 | }, |
| 11797 | { &hf_oran_dmrs_entry, |
| 11798 | { "Entry", "oran_fh_cus.dmrs-entry", |
| 11799 | FT_STRING, BASE_NONE, |
| 11800 | NULL((void*)0), 0x0, |
| 11801 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11802 | }, |
| 11803 | |
| 11804 | /* 7.7.29.3 */ |
| 11805 | { &hf_oran_cd_scg_size, |
| 11806 | {"cdScgSize", "oran_fh_cus.cdScgSize", |
| 11807 | FT_UINT8, BASE_DEC | BASE_RANGE_STRING0x00000100, |
| 11808 | RVALS(cd_scg_size_vals)((0 ? (const struct _range_string*)0 : ((cd_scg_size_vals)))), 0x0f, |
| 11809 | "Cyclic delay subcarrier group size", |
| 11810 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11811 | }, |
| 11812 | /* 7.7.29.4 */ |
| 11813 | { &hf_oran_cd_scg_phase_step, |
| 11814 | {"cdScgPhaseStep", "oran_fh_cus.cdScgPhaseStep", |
| 11815 | FT_INT8, BASE_DEC, |
| 11816 | NULL((void*)0), 0x0, |
| 11817 | "Cyclic delay subcarrier group phase step", |
| 11818 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11819 | }, |
| 11820 | |
| 11821 | { &hf_oran_sinr_prb, |
| 11822 | { "PRB", "oran_fh_cus.sinr.prb", |
| 11823 | FT_STRING, BASE_NONE, |
| 11824 | NULL((void*)0), 0x0, |
| 11825 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11826 | }, |
| 11827 | /* 7.5.2.20 */ |
| 11828 | { &hf_oran_oru_control_sinr_slot_mask_id, |
| 11829 | {"oruControlSinrSlotMaskId", "oran_fh_cus.oruControlSinrSlotMaskId", |
| 11830 | FT_UINT8, BASE_DEC, |
| 11831 | NULL((void*)0), 0x1f, |
| 11832 | "SINR time resolution", |
| 11833 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11834 | }, |
| 11835 | /* 7.7.24.21 */ |
| 11836 | { &hf_oran_pos_meas, |
| 11837 | {"posMeas", "oran_fh_cus.posMeas", |
| 11838 | FT_BOOLEAN, 8, |
| 11839 | TFS(&tfs_report_no_report_pos_meas)((0 ? (const struct true_false_string*)0 : ((&tfs_report_no_report_pos_meas )))), 0x40, |
| 11840 | "Positioning measurement report request", |
| 11841 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11842 | }, |
| 11843 | |
| 11844 | /* 7.5.3.69 */ |
| 11845 | { &hf_oran_ue_radial_speed, |
| 11846 | {"ueRadialSpeed", "oran_fh_cus.ueRadialSpeed", |
| 11847 | FT_UINT16, BASE_DEC, |
| 11848 | NULL((void*)0), 0x0, |
| 11849 | "UE radial speed", |
| 11850 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11851 | }, |
| 11852 | /* 7.5.3.70 */ |
| 11853 | { &hf_oran_ue_az_aoa, |
| 11854 | {"ueAzAoa", "oran_fh_cus.ueAzAoa", |
| 11855 | FT_UINT16, BASE_DEC, |
| 11856 | NULL((void*)0), 0x0, |
| 11857 | "UE azimuth angle of arrival", |
| 11858 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11859 | }, |
| 11860 | /* 7.5.3.71 */ |
| 11861 | { &hf_oran_ue_ze_aoa, |
| 11862 | {"ueZeAoa", "oran_fh_cus.ueZeAoa", |
| 11863 | FT_UINT16, BASE_DEC, |
| 11864 | NULL((void*)0), 0x0, |
| 11865 | "UE zenith angle of arrival", |
| 11866 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11867 | }, |
| 11868 | /* 7.5.3.72 */ |
| 11869 | { &hf_oran_ue_pos_toa_offset, |
| 11870 | {"uePosToaOffset", "oran_fh_cus.uePosToaOffset", |
| 11871 | FT_UINT16, BASE_DEC, |
| 11872 | NULL((void*)0), 0x0, |
| 11873 | "UE positioning time of arrival offset", |
| 11874 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11875 | }, |
| 11876 | |
| 11877 | /* 7.7.30.2 */ |
| 11878 | { &hf_oran_num_rep_ue, |
| 11879 | {"numRepUe", "oran_fh_cus.numRepUe", |
| 11880 | FT_UINT8, BASE_DEC, |
| 11881 | NULL((void*)0), 0x0f, |
| 11882 | "Number of UEs with PUSCH repetition", |
| 11883 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11884 | }, |
| 11885 | /* 7.7.30.3 */ |
| 11886 | { &hf_oran_rep_ueid, |
| 11887 | {"repUeId", "oran_fh_cus.repUeId", |
| 11888 | FT_UINT16, BASE_DEC, |
| 11889 | NULL((void*)0), 0x7fff, |
| 11890 | "UEId the PUSCH is part of", |
| 11891 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11892 | }, |
| 11893 | /* 7.7.30.4 */ |
| 11894 | { &hf_oran_is_last_rep, |
| 11895 | {"isLastRep", "oran_fh_cus.isLastRep", |
| 11896 | FT_BOOLEAN, 8, |
| 11897 | NULL((void*)0), 0x40, |
| 11898 | "Last transmission in the repetition", |
| 11899 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11900 | }, |
| 11901 | /* 7.7.30.5 */ |
| 11902 | { &hf_oran_rep_index, |
| 11903 | {"repIndex", "oran_fh_cus.repIndex", |
| 11904 | FT_UINT8, BASE_DEC, |
| 11905 | NULL((void*)0), 0x3f, |
| 11906 | "Repetition index of the PUSCH transmission", |
| 11907 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11908 | }, |
| 11909 | /* 7.7.30.6 */ |
| 11910 | { &hf_oran_num_reps, |
| 11911 | {"numReps", "oran_fh_cus.numReps", |
| 11912 | FT_UINT8, BASE_DEC, |
| 11913 | NULL((void*)0), 0x3f, |
| 11914 | "The number of total PUSCH repetitions", |
| 11915 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11916 | }, |
| 11917 | |
| 11918 | /* 7.7.31.2 */ |
| 11919 | { &hf_oran_mcs_table, |
| 11920 | {"mcsTable", "oran_fh_cus.mcsTable", |
| 11921 | FT_UINT8, BASE_DEC, |
| 11922 | VALS(mcs_table_vals)((0 ? (const struct _value_string*)0 : ((mcs_table_vals)))), 0x0f, |
| 11923 | "MCS index table", |
| 11924 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11925 | }, |
| 11926 | /* 7.7.31.3 */ |
| 11927 | { &hf_oran_mcs_index, |
| 11928 | {"mcsIndex", "oran_fh_cus.mcsIndex", |
| 11929 | FT_UINT8, BASE_DEC, |
| 11930 | NULL((void*)0), 0x3f, |
| 11931 | "MCS index value", |
| 11932 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11933 | }, |
| 11934 | |
| 11935 | /* 7.7.33.3 */ |
| 11936 | { &hf_oran_num_meas_req, |
| 11937 | {"numMeasReq", "oran_fh_cus.numMeasReq", |
| 11938 | FT_UINT8, BASE_DEC, |
| 11939 | NULL((void*)0), 0x1f, |
| 11940 | "Number of UEs for which meas is requested", |
| 11941 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11942 | }, |
| 11943 | /* 7.7.32.5 */ |
| 11944 | { &hf_oran_ue_rank, |
| 11945 | {"ueRank", "oran_fh_cus.ueRank", |
| 11946 | FT_UINT8, BASE_DEC, |
| 11947 | VALS(ue_rank_vals)((0 ? (const struct _value_string*)0 : ((ue_rank_vals)))), 0x0f, |
| 11948 | "Number of UE layers under evaluation", |
| 11949 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11950 | }, |
| 11951 | /* 7.7.32.6 */ |
| 11952 | { &hf_oran_num_of_ue_ant_ports, |
| 11953 | {"numOfUeAntPorts", "oran_fh_cus.numofUeAntPorts", |
| 11954 | FT_UINT8, BASE_DEC, |
| 11955 | VALS(num_of_ue_ant_ports_vals)((0 ? (const struct _value_string*)0 : ((num_of_ue_ant_ports_vals )))), 0xf0, |
| 11956 | "Used for the PUSCH tx under evaluation", |
| 11957 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11958 | }, |
| 11959 | /* 7.7.32.8 */ |
| 11960 | { &hf_oran_codebook_subset, |
| 11961 | {"codebookSubset", "oran_fh_cus.codebookSubset", |
| 11962 | FT_UINT8, BASE_DEC, |
| 11963 | VALS(codebook_subset_vals)((0 ? (const struct _value_string*)0 : ((codebook_subset_vals )))), 0xc0, |
| 11964 | "UE capability wrt ULTPMI sets", |
| 11965 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11966 | }, |
| 11967 | /* 7.7.32.9 */ |
| 11968 | { &hf_oran_full_pwr_mode, |
| 11969 | {"fullPwrMode", "oran_fh_cus.fullPwrMode", |
| 11970 | FT_UINT8, BASE_DEC, |
| 11971 | VALS(full_pwr_mode_vals)((0 ? (const struct _value_string*)0 : ((full_pwr_mode_vals)) )), 0xc0, |
| 11972 | "Transmission mode", |
| 11973 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11974 | }, |
| 11975 | /* 7.7.32.10 */ |
| 11976 | { &hf_oran_full_pwr_mode_2_tpmi_group, |
| 11977 | {"fullPwrMode2TpmiGroup", "oran_fh_cus.fullPwrMode2TpmiGroup", |
| 11978 | FT_UINT16, BASE_HEX, |
| 11979 | NULL((void*)0), 0x3fff, |
| 11980 | "Capabilities", |
| 11981 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11982 | }, |
| 11983 | |
| 11984 | /* 7.5.3.75 */ |
| 11985 | { &hf_oran_num_cand_ranks, |
| 11986 | {"numCandRanks", "oran_fh_cus.numCandRanks", |
| 11987 | FT_UINT8, BASE_DEC, |
| 11988 | NULL((void*)0), 0xf0, |
| 11989 | NULL((void*)0), |
| 11990 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11991 | }, |
| 11992 | /* 7.5.3.76 */ |
| 11993 | { &hf_oran_ue_pref_rank, |
| 11994 | {"uePrefRank", "oran_fh_cus.uePrefRank", |
| 11995 | FT_UINT8, BASE_DEC, |
| 11996 | NULL((void*)0), 0x0f, |
| 11997 | "Most optimal UL Tx rank for UE", |
| 11998 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 11999 | }, |
| 12000 | /* 7.5.3.77 */ |
| 12001 | { &hf_oran_ue_tpmi_rank_y, |
| 12002 | {"ueTpmiRankY", "oran_fh_cus.ueTpmiRankY", |
| 12003 | FT_UINT8, BASE_DEC, |
| 12004 | NULL((void*)0), 0x0, |
| 12005 | "TPMI index for codebook-based PUSCH tx", |
| 12006 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12007 | }, |
| 12008 | /* 7.5.3.78 */ |
| 12009 | { &hf_oran_ue_tpmi_rank_y_sinr_lx, |
| 12010 | {"ueTpmiRankYSinrLX", "oran_fh_cus.ueTpmiRankYSinrLX", |
| 12011 | FT_UINT16, BASE_HEX | BASE_RANGE_STRING0x00000100, |
| 12012 | RVALS(ue_tmpi_rank_sinr_vals)((0 ? (const struct _range_string*)0 : ((ue_tmpi_rank_sinr_vals )))), 0x0, |
| 12013 | "Estimation of post-equalization SINR", |
| 12014 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12015 | }, |
| 12016 | /* 7.5.3.79 */ |
| 12017 | { &hf_oran_ue_layer_pre_eq_sinr, |
| 12018 | {"ueLayerPreEqSinr", "oran_fh_cus.ueLayerPreEqSinr", |
| 12019 | FT_UINT16, BASE_HEX, |
| 12020 | NULL((void*)0), 0x0, |
| 12021 | "Pre-equalization SINR of a UE layer", |
| 12022 | HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12023 | }, |
| 12024 | |
| 12025 | /* 7.7.33.3 */ |
| 12026 | { &hf_oran_chan_type_sel, |
| 12027 | { "chanTypeSel", "oran_fh_cus.chanTypeSel", |
| 12028 | FT_UINT8, BASE_DEC, |
| 12029 | VALS(chan_type_sel_vals)((0 ? (const struct _value_string*)0 : ((chan_type_sel_vals)) )), 0x03, |
| 12030 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12031 | }, |
| 12032 | |
| 12033 | /* 7.7.3.117 */ |
| 12034 | { &hf_oran_srs_meas_port_mask, |
| 12035 | { "srsMeasPortMask", "oran_fh_cus.srsMeasPortMask", |
| 12036 | FT_UINT16, BASE_DEC, |
| 12037 | NULL((void*)0), 0xffff, |
| 12038 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12039 | }, |
| 12040 | /* 7.7.3.106 */ |
| 12041 | { &hf_oran_srs_ue_port_wb_power, |
| 12042 | { "srsUePortWbPower", "oran_fh_cus.srsUePortWbPower", |
| 12043 | FT_UINT16, BASE_DEC, |
| 12044 | NULL((void*)0), 0x0, |
| 12045 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12046 | }, |
| 12047 | /* 7.7.3.107 */ |
| 12048 | { &hf_oran_srs_ue_port_wb_sinr, |
| 12049 | { "srsUePortWbSinr", "oran_fh_cus.srsUePortWbSinr", |
| 12050 | FT_UINT16, BASE_DEC, |
| 12051 | NULL((void*)0), 0x0, |
| 12052 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12053 | }, |
| 12054 | |
| 12055 | /* 7.5.3.80 */ |
| 12056 | { &hf_oran_srsRbgSize, |
| 12057 | { "srsRbgSize", "oran_fh_cus.srsRbgSize", |
| 12058 | FT_UINT8, BASE_DEC, |
| 12059 | VALS(srs_rbg_size_vals)((0 ? (const struct _value_string*)0 : ((srs_rbg_size_vals))) ), 0xc0, |
| 12060 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12061 | }, |
| 12062 | /* 7.5.3.81 */ |
| 12063 | { &hf_oran_srsNumRbg, |
| 12064 | { "srsNumRbg", "oran_fh_cus.srsNumRbg", |
| 12065 | FT_UINT8, BASE_DEC, |
| 12066 | NULL((void*)0), 0x0, |
| 12067 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12068 | }, |
| 12069 | /* 7.5.3.82 */ |
| 12070 | { &hf_oran_srsTxComb, |
| 12071 | { "srsTxComb", "oran_fh_cus.srsTxComb", |
| 12072 | FT_UINT8, BASE_DEC, |
| 12073 | VALS(srs_tx_comb_vals)((0 ? (const struct _value_string*)0 : ((srs_tx_comb_vals)))), 0xe0, |
| 12074 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12075 | }, |
| 12076 | /* 7.5.3.83 */ |
| 12077 | { &hf_oran_srsSymId, |
| 12078 | { "srsSymId", "oran_fh_cus.srsSymId", |
| 12079 | FT_UINT8, BASE_DEC, |
| 12080 | NULL((void*)0), 0x0f, |
| 12081 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12082 | }, |
| 12083 | /* 7.5.3.84 */ |
| 12084 | { &hf_oran_srsNumUe, |
| 12085 | { "srsNumUe", "oran_fh_cus.srsNumUe", |
| 12086 | FT_UINT8, BASE_DEC, |
| 12087 | NULL((void*)0), 0x3f, |
| 12088 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12089 | }, |
| 12090 | |
| 12091 | |
| 12092 | { &hf_oran_c_section_common, |
| 12093 | { "Common Section", "oran_fh_cus.c-plane.section.common", |
| 12094 | FT_STRING, BASE_NONE, |
| 12095 | NULL((void*)0), 0x0, |
| 12096 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12097 | }, |
| 12098 | { &hf_oran_c_section, |
| 12099 | { "Section", "oran_fh_cus.c-plane.section", |
| 12100 | FT_STRING, BASE_NONE, |
| 12101 | NULL((void*)0), 0x0, |
| 12102 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12103 | }, |
| 12104 | { &hf_oran_u_section, |
| 12105 | { "Section", "oran_fh_cus.u-plane.section", |
| 12106 | FT_STRING, BASE_NONE, |
| 12107 | NULL((void*)0), 0x0, |
| 12108 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12109 | }, |
| 12110 | |
| 12111 | { &hf_oran_u_total_power, |
| 12112 | { "Mean Power", "oran_fh_cus.power", |
| 12113 | FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, |
| 12114 | UNS(&units_decibelfs)((0 ? (const struct unit_name_string*)0 : ((&units_decibelfs )))), 0x0, |
| 12115 | "Average power of whole section (dBFS)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12116 | }, |
| 12117 | |
| 12118 | { &hf_oran_u_peak_power, |
| 12119 | { "PAPR", "oran_fh_cus.papr", |
| 12120 | FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, |
| 12121 | UNS(&units_decibels)((0 ? (const struct unit_name_string*)0 : ((&units_decibels )))), 0x0, |
| 12122 | "Peak-to-average power ratio (dB)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12123 | }, |
| 12124 | |
| 12125 | { &hf_oran_u_prb_power, |
| 12126 | { "PRB Mean Power", "oran_fh_cus.prbpower", |
| 12127 | FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, |
| 12128 | UNS(&units_decibelfs)((0 ? (const struct unit_name_string*)0 : ((&units_decibelfs )))), 0x0, |
| 12129 | "Average power of PRB (dBFS)", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12130 | }, |
| 12131 | |
| 12132 | /* Link back to UL C-plane where udCompHdr was recorded */ |
| 12133 | { &hf_oran_ul_cplane_ud_comp_hdr_frame, |
| 12134 | { "C-Plane UL udCompHdr frame", "oran_fh_cus.ul-cplane.udCompHdr", |
| 12135 | FT_FRAMENUM, BASE_NONE, |
| 12136 | FRAMENUM_TYPE(FT_FRAMENUM_REQUEST)((gpointer) (glong) (FT_FRAMENUM_REQUEST)), 0x0, |
| 12137 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12138 | }, |
| 12139 | { &hf_oran_delta_to_expected_ul_symbol_time, |
| 12140 | { "Delta to expected UL symbol time", "oran_fh_cus.delta-expected-ul-symbol-time", |
| 12141 | FT_INT32, BASE_DEC, |
| 12142 | NULL((void*)0), 0x0, |
| 12143 | "usec difference vs time predicted by first symbol timing and configurable duration", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12144 | }, |
| 12145 | { &hf_oran_delta_to_expected_dl_symbol_time, |
| 12146 | { "Delta to expected DL symbol time", "oran_fh_cus.delta-expected-dl-symbol-time", |
| 12147 | FT_INT32, BASE_DEC, |
| 12148 | NULL((void*)0), 0x0, |
| 12149 | "Difference vs time predicted by first symbol timing and configurable duration", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12150 | }, |
| 12151 | |
| 12152 | /* For ext11, where was a beamId (last) defined? */ |
| 12153 | { &hf_oran_bfws_frame_defined, |
| 12154 | { "Beam defined in frame", "oran_fh_cus.bfw-defined", |
| 12155 | FT_FRAMENUM, BASE_NONE, |
| 12156 | FRAMENUM_TYPE(FT_FRAMENUM_RETRANS_PREV)((gpointer) (glong) (FT_FRAMENUM_RETRANS_PREV)), 0x0, |
| 12157 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12158 | }, |
| 12159 | { &hf_oran_bfws_symbols_since_defined, |
| 12160 | { "Symbols since BFWs defined", "oran_fh_cus.symbols-since-bfw-defined", |
| 12161 | FT_UINT32, BASE_DEC, |
| 12162 | NULL((void*)0), 0x0, |
| 12163 | NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12164 | }, |
| 12165 | |
| 12166 | /* Corresponding C-plane frame for DL U-plane */ |
| 12167 | { &hf_oran_corresponding_cplane_frame, |
| 12168 | { "C-plane frame", "oran_fh_cus.cplane-frame", |
| 12169 | FT_FRAMENUM, BASE_NONE, |
| 12170 | FRAMENUM_TYPE(FT_FRAMENUM_REQUEST)((gpointer) (glong) (FT_FRAMENUM_REQUEST)), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12171 | }, |
| 12172 | /* Time since corresponding C-plane frame for U-plane */ |
| 12173 | { &hf_oran_corresponding_cplane_frame_time_delta, |
| 12174 | { "Time since C-plane frame", "oran_fh_cus.cplane-frame-time-delta", |
| 12175 | FT_UINT64, BASE_DEC, NULL((void*)0), 0x0, |
| 12176 | "Microseconds since C-plane frame", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12177 | }, |
| 12178 | /* Corresponding U-plane frame for C-plane */ |
| 12179 | { &hf_oran_corresponding_uplane_frame, |
| 12180 | { "U-plane frame", "oran_fh_cus.uplane-frame", |
| 12181 | FT_FRAMENUM, BASE_NONE, |
| 12182 | FRAMENUM_TYPE(FT_FRAMENUM_RESPONSE)((gpointer) (glong) (FT_FRAMENUM_RESPONSE)), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12183 | }, |
| 12184 | { &hf_oran_corresponding_uplane_frames_total, |
| 12185 | { "U-plane frames total", "oran_fh_cus.u-plane-frames-total", |
| 12186 | FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, |
| 12187 | "Number of corresponding U-plane frames", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} |
| 12188 | }, |
| 12189 | |
| 12190 | /* Reassembly */ |
| 12191 | { &hf_oran_fragment, |
| 12192 | { "Fragment", "oran_fh_cus.fragment", FT_FRAMENUM, BASE_NONE, |
| 12193 | NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12194 | { &hf_oran_fragments, |
| 12195 | { "Fragments", "oran_fh_cus.fragments", FT_BYTES, BASE_NONE, |
| 12196 | NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12197 | { &hf_oran_fragment_overlap, |
| 12198 | { "Fragment overlap", "oran_fh_cus.fragment.overlap", FT_BOOLEAN, BASE_NONE, |
| 12199 | NULL((void*)0), 0x0, "Fragment overlaps with other fragments", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12200 | { &hf_oran_fragment_overlap_conflict, |
| 12201 | { "Conflicting data in fragment overlap", "oran_fh_cus.fragment.overlap.conflict", |
| 12202 | FT_BOOLEAN, BASE_NONE, NULL((void*)0), 0x0, |
| 12203 | "Overlapping fragments contained conflicting data", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12204 | { &hf_oran_fragment_multiple_tails, |
| 12205 | { "Multiple tail fragments found", "oran_fh_cus.fragment.multipletails", |
| 12206 | FT_BOOLEAN, BASE_NONE, NULL((void*)0), 0x0, |
| 12207 | "Several tails were found when defragmenting the packet", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12208 | { &hf_oran_fragment_too_long_fragment, |
| 12209 | { "Fragment too long", "oran_fh_cus.fragment.toolongfragment", |
| 12210 | FT_BOOLEAN, BASE_NONE, NULL((void*)0), 0x0, |
| 12211 | "Fragment contained data past end of packet", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12212 | { &hf_oran_fragment_error, |
| 12213 | { "Defragmentation error", "oran_fh_cus.fragment.error", FT_FRAMENUM, BASE_NONE, |
| 12214 | NULL((void*)0), 0x0, "Defragmentation error due to illegal fragments", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12215 | { &hf_oran_fragment_count, |
| 12216 | { "Fragment count", "oran_fh_cus.fragment.count", FT_UINT32, BASE_DEC, |
| 12217 | NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12218 | { &hf_oran_reassembled_in, |
| 12219 | { "Reassembled payload in frame", "oran_fh_cus.reassembled_in", FT_FRAMENUM, BASE_NONE, |
| 12220 | NULL((void*)0), 0x0, "This payload packet is reassembled in this frame", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12221 | { &hf_oran_reassembled_length, |
| 12222 | { "Reassembled payload length", "oran_fh_cus.reassembled.length", FT_UINT32, BASE_DEC, |
| 12223 | NULL((void*)0), 0x0, "The total length of the reassembled payload", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12224 | { &hf_oran_reassembled_data, |
| 12225 | { "Reassembled data", "oran_fh_cus.reassembled.data", FT_BYTES, BASE_NONE, |
| 12226 | NULL((void*)0), 0x0, "The reassembled payload", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }}, |
| 12227 | |
| 12228 | { &hf_oran_payload, |
| 12229 | { "Payload", "oran_fh_cus.payload", FT_BYTES, BASE_SHOW_ASCII_PRINTABLE0x00010000, |
| 12230 | NULL((void*)0), 0x0, "Complete or reassembled payload", HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }} |
| 12231 | }; |
| 12232 | |
| 12233 | /* Setup protocol subtree array */ |
| 12234 | static int *ett[] = { |
| 12235 | &ett_oran, |
| 12236 | &ett_oran_ecpri_pcid, |
| 12237 | &ett_oran_ecpri_rtcid, |
| 12238 | &ett_oran_ecpri_seqid, |
| 12239 | &ett_oran_section_type, |
| 12240 | &ett_oran_u_timing, |
| 12241 | &ett_oran_u_section, |
| 12242 | &ett_oran_u_prb, |
| 12243 | &ett_oran_section, |
| 12244 | &ett_oran_iq, |
| 12245 | &ett_oran_bfw_bundle, |
| 12246 | &ett_oran_bfw, |
| 12247 | &ett_oran_frequency_range, |
| 12248 | &ett_oran_prb_cisamples, |
| 12249 | &ett_oran_cisample, |
| 12250 | &ett_oran_udcomphdr, |
| 12251 | &ett_oran_udcompparam, |
| 12252 | &ett_oran_cicomphdr, |
| 12253 | &ett_oran_cicompparam, |
| 12254 | &ett_oran_bfwcomphdr, |
| 12255 | &ett_oran_bfwcompparam, |
| 12256 | &ett_oran_ext19_port, |
| 12257 | &ett_oran_prb_allocation, |
| 12258 | &ett_oran_punc_pattern, |
| 12259 | &ett_oran_bfacomphdr, |
| 12260 | &ett_oran_modcomp_param_set, |
| 12261 | &ett_oran_st4_cmd_header, |
| 12262 | &ett_oran_st4_cmd, |
| 12263 | &ett_oran_sym_prb_pattern, |
| 12264 | &ett_oran_measurement_report, |
| 12265 | &ett_oran_measurement_command, |
| 12266 | &ett_oran_sresmask, |
| 12267 | &ett_oran_c_section_common, |
| 12268 | &ett_oran_c_section, |
| 12269 | &ett_oran_remask, |
| 12270 | &ett_oran_mc_scale_remask, |
| 12271 | &ett_oran_symbol_reordering_layer, |
| 12272 | &ett_oran_dmrs_entry, |
| 12273 | &ett_oran_dmrs_symbol_mask, |
| 12274 | &ett_oran_symbol_mask, |
| 12275 | &ett_oran_active_beamspace_coefficient_mask, |
| 12276 | &ett_oran_sinr_prb, |
| 12277 | &ett_oran_rbgMask, |
| 12278 | &ett_oran_se10_port, |
| 12279 | |
| 12280 | &ett_oran_fragment, |
| 12281 | &ett_oran_fragments |
| 12282 | }; |
| 12283 | |
| 12284 | /* Separate subtree array for extensions. Used with [ext-1] */ |
| 12285 | static int *ext_ett[HIGHEST_EXTTYPE35]; |
| 12286 | for (unsigned extno=0; extno<HIGHEST_EXTTYPE35; extno++) { |
| 12287 | ext_ett[extno] = &ett_oran_c_section_extension[extno]; |
| 12288 | } |
| 12289 | |
| 12290 | expert_module_t* expert_oran; |
| 12291 | |
| 12292 | static ei_register_info ei[] = { |
| 12293 | { &ei_oran_unsupported_bfw_compression_method, { "oran_fh_cus.unsupported_bfw_compression_method", PI_UNDECODED0x05000000, PI_WARN0x00600000, "Unsupported BFW Compression Method", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12294 | { &ei_oran_invalid_sample_bit_width, { "oran_fh_cus.invalid_sample_bit_width", PI_UNDECODED0x05000000, PI_ERROR0x00800000, "Unsupported sample bit width", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12295 | { &ei_oran_reserved_numBundPrb, { "oran_fh_cus.reserved_numBundPrb", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "Reserved value 0 for numBundPrb seen - not valid", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12296 | { &ei_oran_extlen_wrong, { "oran_fh_cus.extlen_wrong", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "extlen doesn't match number of dissected bytes", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12297 | { &ei_oran_invalid_eaxc_bit_width, { "oran_fh_cus.invalid_eaxc_bit_width", PI_UNDECODED0x05000000, PI_ERROR0x00800000, "Inconsistent eAxC bit width", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12298 | { &ei_oran_extlen_zero, { "oran_fh_cus.extlen_zero", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "extlen value of 0 is reserved", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12299 | { &ei_oran_rbg_size_reserved, { "oran_fh_cus.rbg_size_reserved", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "rbgSize value of 0 is reserved", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12300 | { &ei_oran_frame_length, { "oran_fh_cus.frame_length", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "there should be 0-3 bytes remaining after PDU in frame", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12301 | { &ei_oran_numprbc_ext21_zero, { "oran_fh_cus.numprbc_ext21_zero", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "numPrbc shall not be set to 0 when ciPrbGroupSize is configured", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12302 | { &ei_oran_ci_prb_group_size_reserved, { "oran_fh_cus.ci_prb_group_size_reserved", PI_MALFORMED0x07000000, PI_WARN0x00600000, "ciPrbGroupSize should be 2-254", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12303 | { &ei_oran_st8_nackid, { "oran_fh_cus.st8_nackid", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "operation for this ackId failed", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12304 | { &ei_oran_st4_no_cmds, { "oran_fh_cus.st4_nackid", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "Not valid for ST4 to carry no commands", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12305 | { &ei_oran_st4_zero_len_cmd, { "oran_fh_cus.st4_zero_len_cmd", PI_MALFORMED0x07000000, PI_WARN0x00600000, "ST4 cmd with length 0 is reserved", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12306 | { &ei_oran_st4_wrong_len_cmd, { "oran_fh_cus.st4_wrong_len_cmd", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "ST4 cmd with length not matching contents", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12307 | { &ei_oran_st4_unknown_cmd, { "oran_fh_cus.st4_unknown_cmd", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "ST4 cmd with unknown command code", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12308 | { &ei_oran_mcot_out_of_range, { "oran_fh_cus.mcot_out_of_range", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "MCOT should be 1-10", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12309 | { &ei_oran_se10_unknown_beamgrouptype, { "oran_fh_cus.se10_unknown_beamgrouptype", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE10 - unknown BeamGroupType value", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12310 | { &ei_oran_se10_not_allowed, { "oran_fh_cus.se10_not_allowed", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE10 - type not allowed for sectionType", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12311 | { &ei_oran_start_symbol_id_not_zero, { "oran_fh_cus.startsymbolid_shall_be_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "For ST4 commands 3&4, startSymbolId shall be 0", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12312 | { &ei_oran_trx_control_cmd_scope, { "oran_fh_cus.trx_command.bad_cmdscope", PI_MALFORMED0x07000000, PI_WARN0x00600000, "TRX command must have cmdScope of ARRAY-COMMAND", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12313 | { &ei_oran_unhandled_se, { "oran_fh_cus.se_not_handled", PI_UNDECODED0x05000000, PI_WARN0x00600000, "SE not recognised/handled by dissector", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12314 | { &ei_oran_bad_symbolmask, { "oran_fh_cus.bad_symbol_mask", PI_MALFORMED0x07000000, PI_WARN0x00600000, "For non-zero sleepMode, symbolMask must be 0x0 or 0x3ffff", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12315 | { &ei_oran_numslots_not_zero, { "oran_fh_cus.numslots_not_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "For ST4 TIME_DOMAIN_BEAM_WEIGHTS, numSlots should be 0", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12316 | { &ei_oran_version_unsupported, { "oran_fh_cus.version_unsupported", PI_UNDECODED0x05000000, PI_WARN0x00600000, "Protocol version unsupported", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12317 | { &ei_oran_laa_msg_type_unsupported, { "oran_fh_cus.laa_msg_type_unsupported", PI_UNDECODED0x05000000, PI_WARN0x00600000, "laaMsgType unsupported", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12318 | { &ei_oran_se_on_unsupported_st, { "oran_fh_cus.se_on_unsupported_st", PI_MALFORMED0x07000000, PI_WARN0x00600000, "Section Extension should not appear on this Section Type", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12319 | { &ei_oran_cplane_unexpected_sequence_number_ul, { "oran_fh_cus.unexpected_seq_no_cplane.ul", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "Unexpected sequence number seen in C-Plane UL", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12320 | { &ei_oran_cplane_unexpected_sequence_number_dl, { "oran_fh_cus.unexpected_seq_no_cplane.dl", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "Unexpected sequence number seen in C-Plane DL", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12321 | { &ei_oran_uplane_unexpected_sequence_number_ul, { "oran_fh_cus.unexpected_seq_no_uplane.ul", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "Unexpected sequence number seen in U-Plane UL", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12322 | { &ei_oran_uplane_unexpected_sequence_number_dl, { "oran_fh_cus.unexpected_seq_no_uplane.dl", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "Unexpected sequence number seen in U-Plane DL", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12323 | { &ei_oran_acknack_no_request, { "oran_fh_cus.acknack_no_request", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "Have ackNackId response, but no request", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12324 | { &ei_oran_udcomphdr_should_be_zero, { "oran_fh_cus.udcomphdr_should_be_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "C-Plane udCompHdr in DL should be set to 0", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12325 | { &ei_oran_radio_fragmentation_c_plane, { "oran_fh_cus.radio_fragmentation_c_plane", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "Radio fragmentation not allowed in C-PLane", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12326 | { &ei_oran_lastRbdid_out_of_range, { "oran_fh_cus.lastrbdid_out_of_range", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE 6 has bad rbgSize", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12327 | { &ei_oran_rbgMask_beyond_last_rbdid, { "oran_fh_cus.rbgmask_beyond_lastrbdid", PI_MALFORMED0x07000000, PI_WARN0x00600000, "rbgMask has bits set beyond lastRbgId", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12328 | { &ei_oran_unexpected_measTypeId, { "oran_fh_cus.unexpected_meastypeid", PI_MALFORMED0x07000000, PI_WARN0x00600000, "unexpected measTypeId", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12329 | { &ei_oran_unsupported_compression_method, { "oran_fh_cus.compression_type_unsupported", PI_UNDECODED0x05000000, PI_WARN0x00600000, "Unsupported compression type", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12330 | { &ei_oran_ud_comp_len_wrong_size, { "oran_fh_cus.ud_comp_len_wrong_size", PI_MALFORMED0x07000000, PI_WARN0x00600000, "udCompLen does not match length of U-Plane section", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12331 | { &ei_oran_sresmask2_not_zero_with_rb, { "oran_fh_cus.sresmask2_not_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "sReSMask2 should be zero when rb set", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12332 | { &ei_oran_st6_rb_shall_be_0, { "oran_fh_cus.st6_rb_set", PI_MALFORMED0x07000000, PI_WARN0x00600000, "rb should not be set for Section Type 6", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12333 | { &ei_oran_st9_not_ul, { "oran_fh_cus.st9_not_ul", PI_MALFORMED0x07000000, PI_WARN0x00600000, "Section Type 9 should only be sent in uplink direction", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12334 | { &ei_oran_st10_numsymbol_not_14, { "oran_fh_cus.st10_numsymbol_not_14", PI_MALFORMED0x07000000, PI_WARN0x00600000, "numSymbol should be 14 for Section Type 10", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12335 | { &ei_oran_st10_startsymbolid_not_0, { "oran_fh_cus.st10_startsymbolid_not_0", PI_MALFORMED0x07000000, PI_WARN0x00600000, "startSymbolId should be 0 for Section Type 10", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12336 | { &ei_oran_st10_not_ul, { "oran_fh_cus.st10_not_ul", PI_MALFORMED0x07000000, PI_WARN0x00600000, "Section Type 10 should only be sent in uplink direction", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12337 | { &ei_oran_se24_nothing_to_inherit, { "oran_fh_cus.se24_nothing_to_inherit", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE10 doesn't have type 2 or 3 before trying to inherit", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12338 | { &ei_oran_num_sinr_per_prb_unknown, { "oran_fh_cus.unexpected_num_sinr_per_prb", PI_MALFORMED0x07000000, PI_WARN0x00600000, "invalid numSinrPerPrb value", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12339 | { &ei_oran_start_symbol_id_bits_ignored, { "oran_fh_cus.start_symbol_id_bits_ignored", PI_MALFORMED0x07000000, PI_WARN0x00600000, "some startSymbolId lower bits ignored", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12340 | { &ei_oran_user_group_id_reserved_value, { "oran_fh_cus.user_group_id.reserved_value", PI_MALFORMED0x07000000, PI_WARN0x00600000, "userGroupId value 255 is reserved", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12341 | { &ei_oran_port_list_index_zero, { "oran_fh_cus.port_list_index.zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "portListIndex should not be zero", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12342 | { &ei_oran_ul_uplane_symbol_too_long, { "oran_fh_cus.ul_uplane_symbol_tx_too_slow", PI_RECEIVE0x0f000000, PI_WARN0x00600000, "UL U-Plane Tx took too long for symbol (limit set in preference)", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12343 | { &ei_oran_reserved_not_zero, { "oran_fh_cus.reserved_not_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "Reserved field is not zero", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12344 | { &ei_oran_too_many_symbols, { "oran_fh_cus.too_many_symbols", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "Range of symbols in slot exceeds 14", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12345 | { &ei_oran_se30_not_ul, { "oran_fh_cus.se30_not_ul", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE30 should only be sent in uplink direction", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12346 | { &ei_oran_se30_unknown_ueid, { "oran_fh_cus.se30_unknown_ue", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE30 UEId not recognised from SE10", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12347 | { &ei_oran_beamid_bfws_not_found, { "oran_fh_cus.beamid_bfws_not_found", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "Have bundle with disableBFWs but no definition found", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12348 | { &ei_oran_syminc_set_for_uplane, { "oran_fh_cus.syminc_set_for_uplane", PI_MALFORMED0x07000000, PI_ERROR0x00800000, "symInc is prohibited in the U-Plane", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12349 | { &ei_oran_cplane_entry_not_found, { "oran_fh_cus.cplane_entry_not_found", PI_SEQUENCE0x02000000, PI_WARN0x00600000, "C-plane for this U-plane section not found", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12350 | { &ei_oran_se12_rb_set, { "oran_fh_cus.se12_rb_set", PI_MALFORMED0x07000000, PI_WARN0x00600000, "rb should not be set when SE12 is present", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12351 | { &ei_oran_se5_re_mask_bits_not_covered, { "oran_fh_cus.se5_re_mask_bits_not_covered", PI_MALFORMED0x07000000, PI_WARN0x00600000, "section reMask bits not covered by SE5 sets", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12352 | { &ei_oran_se5_re_mask_bit_repeated, { "oran_fh_cus.se5_re_mask_bits_repeated", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE5 sets repeat bits", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12353 | { &ei_oran_se5_re_mask_bit_not_in_re_mask, { "oran_fh_cus.se5_re_mask_bit_not_in_re_mask", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE5 set has bit not in section reMask", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }}, |
| 12354 | { &ei_oran_se5_re_zero_re_mask, { "oran_fh_cus.se5_re_mask_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "SE5 set has zero reMask", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE , BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE , -1, ((void*)0)}} }} |
| 12355 | }; |
| 12356 | |
| 12357 | |
| 12358 | /* Register the protocol name and description */ |
| 12359 | proto_oran = proto_register_protocol("O-RAN Fronthaul CUS", "O-RAN FH CUS", "oran_fh_cus"); |
| 12360 | |
| 12361 | /* Allow dissector to find be found by name. */ |
| 12362 | register_dissector("oran_fh_cus", dissect_oran, proto_oran); |
| 12363 | |
| 12364 | /* Dissector table so dissectors for non-standard Section Extension can register by exttype */ |
| 12365 | oran_sectionextension_table = register_dissector_table("oran.sectionextension", |
| 12366 | "O-RAN non-standard Section Extension (by exttype)", |
| 12367 | proto_oran, FT_UINT8, BASE_DEC); |
| 12368 | |
| 12369 | /* Register the tap name. */ |
| 12370 | oran_tap = register_tap("oran-fh-cus"); |
| 12371 | oran_bfws_tap = register_tap("oran_bfws"); |
| 12372 | |
| 12373 | |
| 12374 | /* Required function calls to register the header fields and subtrees */ |
| 12375 | proto_register_field_array(proto_oran, hf, array_length(hf)(sizeof (hf) / sizeof (hf)[0])); |
| 12376 | proto_register_subtree_array(ett, array_length(ett)(sizeof (ett) / sizeof (ett)[0])); |
| 12377 | proto_register_subtree_array(ext_ett, array_length(ext_ett)(sizeof (ext_ett) / sizeof (ext_ett)[0])); |
| 12378 | |
| 12379 | expert_oran = expert_register_protocol(proto_oran); |
| 12380 | expert_register_field_array(expert_oran, ei, array_length(ei)(sizeof (ei) / sizeof (ei)[0])); |
| 12381 | |
| 12382 | |
| 12383 | /* Preferences */ |
| 12384 | module_t * oran_module = prefs_register_protocol(proto_oran, NULL((void*)0)); |
| 12385 | |
| 12386 | /* Register bit width/compression preferences separately by direction. */ |
| 12387 | prefs_register_uint_preference(oran_module, "oran.du_port_id_bits", "DU Port ID bits [a]", |
| 12388 | "The bit width of DU Port ID - sum of a,b,c&d (eAxC) must be 16", 10, &pref_du_port_id_bits); |
| 12389 | prefs_register_uint_preference(oran_module, "oran.bandsector_id_bits", "BandSector ID bits [b]", |
| 12390 | "The bit width of BandSector ID - sum of a,b,c&d (eAxC) must be 16", 10, &pref_bandsector_id_bits); |
| 12391 | prefs_register_uint_preference(oran_module, "oran.cc_id_bits", "CC ID bits [c]", |
| 12392 | "The bit width of CC ID - sum of a,b,c&d (eAxC) must be 16", 10, &pref_cc_id_bits); |
| 12393 | prefs_register_uint_preference(oran_module, "oran.ru_port_id_bits", "RU Port ID bits [d]", |
| 12394 | "The bit width of RU Port ID - sum of a,b,c&d (eAxC) must be 16", 10, &pref_ru_port_id_bits); |
| 12395 | |
| 12396 | /* Uplink userplane */ |
| 12397 | prefs_register_static_text_preference(oran_module, "oran.ul", "", ""); |
| 12398 | prefs_register_uint_preference(oran_module, "oran.iq_bitwidth_up", "IQ Bitwidth Uplink", |
| 12399 | "The bit width of a sample in the Uplink (if no udcompHdr and no C-Plane)", 10, &pref_sample_bit_width_uplink); |
| 12400 | prefs_register_enum_preference(oran_module, "oran.ud_comp_up", "Uplink User Data Compression", |
| 12401 | "Uplink User Data Compression (if no udcompHdr and no C-Plane)", &pref_iqCompressionUplink, ul_compression_options, false0); |
| 12402 | prefs_register_enum_preference(oran_module, "oran.ud_comp_hdr_up", "udCompHdr field is present for uplink", |
| 12403 | "The udCompHdr field in U-Plane messages may or may not be present, depending on the " |
| 12404 | "configuration of the O-RU. This preference instructs the dissector to expect " |
| 12405 | "this field to be present in uplink messages", |
| 12406 | &pref_includeUdCompHeaderUplink, udcomphdr_present_options, false0); |
| 12407 | prefs_register_bool_preference(oran_module, "oran.ignore_cplane_ul_udcomphdr", "Ignore UL compression settings from C-plane", |
| 12408 | "When set, override udCompHdr from UL C-Plane with compression method and width configured here", &pref_override_ul_compression); |
| 12409 | prefs_register_uint_preference(oran_module, "oran.ul_slot_us_limit", "Microseconds allowed for UL tx in symbol", |
| 12410 | "Maximum number of microseconds allowed for UL slot transmission before expert warning (zero to disable). N.B. timing relative to first frame seen for same symbol", |
| 12411 | 10, &us_allowed_for_ul_in_symbol); |
| 12412 | |
| 12413 | /* Downlink userplane */ |
| 12414 | prefs_register_static_text_preference(oran_module, "oran.dl", "", ""); |
| 12415 | prefs_register_uint_preference(oran_module, "oran.iq_bitwidth_down", "IQ Bitwidth Downlink", |
| 12416 | "The bit width of a sample in the Downlink (if no udcompHdr)", 10, &pref_sample_bit_width_downlink); |
| 12417 | prefs_register_enum_preference(oran_module, "oran.ud_comp_down", "Downlink User Data Compression", |
| 12418 | "Downlink User Data Compression", &pref_iqCompressionDownlink, dl_compression_options, false0); |
| 12419 | prefs_register_enum_preference(oran_module, "oran.ud_comp_hdr_down", "udCompHdr field is present for downlink", |
| 12420 | "The udCompHdr field in U-Plane messages may or may not be present, depending on the " |
| 12421 | "configuration of the O-RU. This preference instructs the dissector to expect " |
| 12422 | "this field to be present in downlink messages", |
| 12423 | &pref_includeUdCompHeaderDownlink, udcomphdr_present_options, false0); |
| 12424 | |
| 12425 | /* SINR */ |
| 12426 | prefs_register_static_text_preference(oran_module, "oran.sinr", "", ""); |
| 12427 | prefs_register_uint_preference(oran_module, "oran.iq_bitwidth_sinr", "IQ Bitwidth SINR", |
| 12428 | "The bit width of a sample in SINR", 10, &pref_sample_bit_width_sinr); |
| 12429 | prefs_register_enum_preference(oran_module, "oran.ud_comp_sinr", "SINR Compression", |
| 12430 | "SINR Compression", &pref_iqCompressionSINR, ul_compression_options, false0); |
| 12431 | |
| 12432 | /* BF-related */ |
| 12433 | prefs_register_static_text_preference(oran_module, "oran.bf", "", ""); |
| 12434 | prefs_register_uint_preference(oran_module, "oran.num_bf_antennas", "Number of beam weights", |
| 12435 | "Number of array elements that BF weights will be provided for", 10, &pref_num_bf_antennas); |
| 12436 | prefs_register_obsolete_preference(oran_module, "oran.num_weights_per_bundle"); |
| 12437 | prefs_register_obsolete_preference(oran_module, "oran.num_bf_weights"); |
| 12438 | prefs_register_bool_preference(oran_module, "oran.st6_4byte_alignment_required", "Use 4-byte alignment for ST6 sections", |
| 12439 | "Default is 1-byte alignment", &st6_4byte_alignment); |
| 12440 | |
| 12441 | /* Misc (and will seldom need to be accessed) */ |
| 12442 | prefs_register_static_text_preference(oran_module, "oran.misc", "", ""); |
| 12443 | prefs_register_bool_preference(oran_module, "oran.show_iq_samples", "Show IQ Sample values", |
| 12444 | "When enabled, for U-Plane frames show each I and Q value in PRB", &pref_showIQSampleValues); |
| 12445 | prefs_register_enum_preference(oran_module, "oran.support_udcomplen", "udCompLen supported", |
| 12446 | "When enabled, U-Plane messages with relevant compression schemes will include udCompLen", |
| 12447 | &pref_support_udcompLen, udcomplen_support_options, false0); |
| 12448 | prefs_register_uint_preference(oran_module, "oran.rbs_in_uplane_section", "Total RBs in User-Plane data section", |
| 12449 | "This is used if numPrbu is signalled as 0", 10, &pref_data_plane_section_total_rbs); |
| 12450 | prefs_register_bool_preference(oran_module, "oran.unscaled_iq", "Show unscaled I/Q values", |
| 12451 | "", &show_unscaled_values); |
| 12452 | prefs_register_bool_preference(oran_module, "oran.attempt_reassembly", |
| 12453 | "Attempt Radio Transport layer reassembly", "", |
| 12454 | &do_radio_transport_layer_reassembly); |
| 12455 | prefs_register_obsolete_preference(oran_module, "oran.k_antenna_ports"); |
| 12456 | prefs_register_uint_preference(oran_module, "oran.symbol_time", "Symbol duration in us", |
| 12457 | "e.g., 36us for 100MHz, Mu=1", 10, &pref_symbol_time); |
| 12458 | |
| 12459 | prefs_register_bool_preference(oran_module, "oran.link_planes", |
| 12460 | "Link C-plane and U-plane using sectionId", "", |
| 12461 | &link_planes_together); |
| 12462 | |
| 12463 | |
| 12464 | |
| 12465 | |
| 12466 | flow_states_table = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); |
| 12467 | flow_results_table = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); |
| 12468 | ul_symbol_timing = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); |
| 12469 | |
| 12470 | dl_beam_ids_defined = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); |
| 12471 | dl_beam_ids_results = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); |
| 12472 | |
| 12473 | register_init_routine(&oran_init_protocol); |
| 12474 | |
| 12475 | /* Register reassembly table. */ |
| 12476 | reassembly_table_register(&oran_reassembly_table, |
| 12477 | &oran_reassembly_table_functions); |
| 12478 | } |
| 12479 | |
| 12480 | /* |
| 12481 | * Editor modelines - http://www.wireshark.org/tools/modelines.html |
| 12482 | * |
| 12483 | * Local Variables: |
| 12484 | * c-basic-offset: 4 |
| 12485 | * tab-width: 8 |
| 12486 | * indent-tabs-mode: nil |
| 12487 | * End: |
| 12488 | * |
| 12489 | * ex: set shiftwidth=4 tabstop=8 expandtab: |
| 12490 | * :indentSize=4:tabSize=8:noTabs=true: |
| 12491 | */ |