diff options
-rw-r--r-- | epan/dissectors/packet-mac-lte.c | 7 | ||||
-rw-r--r-- | epan/dissectors/packet-mac-lte.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c index 346521ca70..0ca5f585c4 100644 --- a/epan/dissectors/packet-mac-lte.c +++ b/epan/dissectors/packet-mac-lte.c @@ -1883,6 +1883,13 @@ gboolean dissect_mac_lte_context_fields(struct mac_lte_info *p_mac_lte_info, tv case MAC_LTE_EXT_BSR_SIZES_TAG: p_mac_lte_info->isExtendedBSRSizes = TRUE; break; + case MAC_LTE_SEND_PREAMBLE_TAG: + p_mac_lte_info->oob_event = ltemac_send_preamble; + p_mac_lte_info->rapid = tvb_get_guint8(tvb, offset); + offset++; + p_mac_lte_info->rach_attempt_number = tvb_get_guint8(tvb, offset); + offset++; + break; case MAC_LTE_PAYLOAD_TAG: /* Have reached data, so set payload length and get out of loop */ diff --git a/epan/dissectors/packet-mac-lte.h b/epan/dissectors/packet-mac-lte.h index 6b1a505902..81cd67b3a4 100644 --- a/epan/dissectors/packet-mac-lte.h +++ b/epan/dissectors/packet-mac-lte.h @@ -264,6 +264,9 @@ int is_mac_lte_frame_retx(packet_info *pinfo, guint8 direction); #define MAC_LTE_EXT_BSR_SIZES_TAG 0x08 /* 0 byte */ +#define MAC_LTE_SEND_PREAMBLE_TAG 0x09 +/* 2 bytes, RAPID value (1 byte) followed by RACH attempt number (1 byte) */ + /* MAC PDU. Following this tag comes the actual MAC PDU (there is no length, the PDU continues until the end of the frame) */ #define MAC_LTE_PAYLOAD_TAG 0x01 |