diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2013-08-30 04:08:57 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2013-08-30 04:08:57 +0000 |
commit | a09ee6af031b399848a0322054519489f6d963f6 (patch) | |
tree | b8700ebd6c5024a4504ff6c1aa30a6249b9af0c7 /epan/dissectors/packet-mac-lte.h | |
parent | d9eb37b849a70a8bc8ad0c61b3fa8f2c3d689f7c (diff) |
The first step towards tracking and showing DRX info in MAC:
- send release from RRC
- show current DRX config from each frame, including a link back to the
RRC config frame
- show simple DRX state for each frame (currently only offset into long
cycle and whether within long cycle 'on' period)
TODO:
- simulate timers in response to new UL/DL transmissions or DL CRC
errors
- maintain whether in long or short cycle
- show state of all timers
svn path=/trunk/; revision=51585
Diffstat (limited to 'epan/dissectors/packet-mac-lte.h')
-rw-r--r-- | epan/dissectors/packet-mac-lte.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mac-lte.h b/epan/dissectors/packet-mac-lte.h index 410840e541..459340e424 100644 --- a/epan/dissectors/packet-mac-lte.h +++ b/epan/dissectors/packet-mac-lte.h @@ -294,6 +294,29 @@ typedef struct drb_mapping_t configuration protocol (e.g. RRC) */ void set_mac_lte_channel_mapping(drb_mapping_t *drb_mapping); + +/* Dedicated DRX config. Used to verify that a sensible config is given. + Also, beginning to configure MAC with this config and (optionally) show + DRX config and state (cycles/timers) attached to each UL/DL PDU! */ +typedef struct drx_config_t { + gboolean configured; + guint32 frameNum; + guint32 onDurationTimer; + guint32 inactivityTimer; + guint32 retransmissionTimer; + guint32 longCycle; + guint32 cycleOffset; + /* Optional Short cycle */ + gboolean shortCycleConfigured; + guint32 shortCycle; + guint32 shortCycleTimer; +} drx_config_t; + +/* Functions to set/release up dedicated DRX config */ +void set_mac_lte_drx_config(guint16 ueid, drx_config_t *drx_config, packet_info *pinfo); +void set_mac_lte_drx_config_release(guint16 ueid, packet_info *pinfo); + + /* Functions to be called from outside this module (e.g. in a plugin, where mac_lte_info isn't available) to get/set per-packet data */ WS_DLL_PUBLIC |