aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_ms.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-12 16:01:56 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:39:06 +0200
commit04a108617ab904d7614966dfa9e4602bd1d4fae1 (patch)
treeb8c0aa26d7cf8368d75c1c573043fb68fa3bf591 /src/gprs_ms.h
parente1d2b3568afe914d5b9c77bafd48be5b35e2d1d4 (diff)
ms: Store the NACK rate in the MS object
Currently the NACK/unconfirmed ratio is already passed to the corresponding MS object, but the value is not being stored there. This commit adds a member and a getter method and include the values into the output of the 'show ms' command. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r--src/gprs_ms.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h
index 6752b2b6..05387239 100644
--- a/src/gprs_ms.h
+++ b/src/gprs_ms.h
@@ -99,6 +99,7 @@ public:
void update_l1_meas(const pcu_l1_meas *meas);
const pcu_l1_meas* l1_meas() const {return &m_l1_meas;};
+ unsigned nack_rate_dl() const;
/* internal use */
static void timeout(void *priv_);
@@ -138,6 +139,7 @@ private:
int64_t m_last_cs_not_low;
pcu_l1_meas m_l1_meas;
+ unsigned m_nack_rate_dl;
};
inline uint32_t GprsMs::tlli() const
@@ -193,3 +195,8 @@ inline const gprs_llc_queue *GprsMs::llc_queue() const
return &m_llc_queue;
}
+inline unsigned GprsMs::nack_rate_dl() const
+{
+ return m_nack_rate_dl;
+}
+