19 #include "ws_symbol_export.h"
26 #define DIRECTION_UPLINK 0
27 #define DIRECTION_DOWNLINK 1
42 typedef enum mac_lte_oob_event {
48 typedef enum mac_lte_dl_retx {
54 typedef enum mac_lte_crc_status {
57 crc_high_code_rate = 2,
59 crc_duplicate_nonzero_rv = 4,
64 typedef enum mac_lte_carrier_id {
66 carrier_id_secondary_1,
67 carrier_id_secondary_2,
68 carrier_id_secondary_3,
69 carrier_id_secondary_4,
70 carrier_id_secondary_5,
71 carrier_id_secondary_6,
72 carrier_id_secondary_7
75 typedef enum mac_lte_ce_mode {
81 typedef enum mac_lte_nb_mode {
99 guint16 sysframeNumber;
100 guint16 subframeNumber;
101 gboolean sfnSfInfoPresent;
104 gboolean subframeNumberOfGrantPresent;
105 guint16 subframeNumberOfGrant;
109 gboolean isPredefinedData;
119 gboolean isExtendedBSRSizes;
122 gboolean isSimultPUCCHPUSCHPCell;
125 gboolean isSimultPUCCHPUSCHPSCell;
129 gboolean crcStatusValid;
130 mac_lte_crc_status crcStatus;
133 mac_lte_carrier_id carrierId;
136 mac_lte_dl_retx dl_retx;
139 mac_lte_ce_mode ceMode;
142 mac_lte_nb_mode nbMode;
149 struct mac_lte_ul_phy_info
152 guint8 modulation_type;
154 guint8 resource_block_length;
155 guint8 resource_block_start;
159 struct mac_lte_dl_phy_info
163 guint8 resource_allocation_type;
164 guint8 aggregation_level;
166 guint8 redundancy_version_index;
167 guint8 resource_block_length;
170 guint8 transport_block;
176 mac_lte_oob_event oob_event;
178 guint8 rach_attempt_number;
180 guint16 number_of_srs;
181 guint16 oob_ueid[MAX_SRs];
182 guint16 oob_rnti[MAX_SRs];
186 #define MAC_LTE_DATA_LCID_COUNT_MAX 18
193 guint8 isPredefinedData;
194 gboolean crcStatusValid;
195 mac_lte_crc_status crcStatus;
204 guint32 single_number_of_bytes;
205 guint32 bytes_for_lcid[MAC_LTE_DATA_LCID_COUNT_MAX];
206 guint32 sdus_for_lcid[MAC_LTE_DATA_LCID_COUNT_MAX];
207 guint8 number_of_rars;
208 guint8 number_of_paging_ids;
211 guint16 padding_bytes;
217 int is_mac_lte_frame_retx(
packet_info *pinfo, guint8 direction);
237 #define MAC_LTE_START_STRING "mac-lte"
251 #define MAC_LTE_RNTI_TAG 0x02
254 #define MAC_LTE_UEID_TAG 0x03
257 #define MAC_LTE_FRAME_SUBFRAME_TAG 0x04
260 #define MAC_LTE_PREDEFINED_DATA_TAG 0x05
263 #define MAC_LTE_RETX_TAG 0x06
266 #define MAC_LTE_CRC_STATUS_TAG 0x07
269 #define MAC_LTE_EXT_BSR_SIZES_TAG 0x08
272 #define MAC_LTE_SEND_PREAMBLE_TAG 0x09
275 #define MAC_LTE_CARRIER_ID_TAG 0x0A
278 #define MAC_LTE_PHY_TAG 0x0B
286 #define MAC_LTE_SIMULT_PUCCH_PUSCH_PCELL_TAG 0x0C
289 #define MAC_LTE_SIMULT_PUCCH_PUSCH_PSCELL_TAG 0x0D
292 #define MAC_LTE_CE_MODE_TAG 0x0E
295 #define MAC_LTE_NB_MODE_TAG 0x0F
298 #define MAC_LTE_N_UL_RB_TAG 0x10
301 #define MAC_LTE_SR_TAG 0x11
307 #define MAC_LTE_PAYLOAD_TAG 0x01
316 gboolean lcid_present;
318 gboolean rlcMode_present;
320 gboolean rlc_ul_ext_li_field;
321 gboolean rlc_dl_ext_li_field;
322 gboolean rlc_ul_ext_am_sn;
323 gboolean rlc_dl_ext_am_sn;
324 gboolean um_sn_length_present;
326 gboolean ul_priority_present;
328 gboolean pdcp_sn_size_present;
335 void set_mac_lte_channel_mapping(
drb_mapping_t *drb_mapping);
344 guint32 previousFrameNum;
346 guint32 onDurationTimer;
347 guint32 inactivityTimer;
348 guint32 retransmissionTimer;
352 gboolean shortCycleConfigured;
354 guint32 shortCycleTimer;
359 void set_mac_lte_drx_config_release(guint16 ueid,
packet_info *pinfo);
362 void set_mac_lte_rapid_ranges(guint groupA, guint all_RA);
365 void set_mac_lte_extended_bsr_sizes(guint16 ueid, gboolean use_ext_bsr_sizes,
packet_info *pinfo);
369 SIMULT_PUCCH_PUSCH_PCELL = 0,
370 SIMULT_PUCCH_PUSCH_PSCELL
371 } simult_pucch_pusch_cell_type;
372 void set_mac_lte_simult_pucch_pusch(guint16 ueid, simult_pucch_pusch_cell_type cell_type, gboolean use_simult_pucch_pusch,
packet_info *pinfo);
Definition: packet_info.h:44
Definition: packet-mac-lte.h:313
Definition: packet-mac-lte.h:341
Definition: packet-mac-lte.h:88
Definition: packet-mac-lte.h:188
Definition: tvbuff-int.h:35