aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2014-01-15 17:40:28 +0100
committerDaniel Willmann <daniel@totalueberwachung.de>2014-01-15 17:41:45 +0100
commit80367aae175dbd171a77d1cde85924db68642e1b (patch)
tree2e1089f16ee8830a21cf9e8865955d754f4573c2 /src/tbf.h
parent772415fd8a30472b28ac7d1e56c97a0d70307835 (diff)
tbf: Save a timestamp at tbf allocation and print it in the VTY
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 7d253eea..5c8ec623 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -138,6 +138,8 @@ struct gprs_rlcmac_tbf {
uint16_t sns() const;
+ time_t create_ts() const;
+
/* attempt to make things a bit more fair */
void rotate_in_list();
@@ -225,6 +227,7 @@ struct gprs_rlcmac_tbf {
uint32_t m_tlli;
uint8_t m_tlli_valid;
uint8_t m_tfi;
+ time_t m_create_ts;
/* store IMSI for look-up and PCH retransmission */
char m_imsi[16];
@@ -310,6 +313,12 @@ inline uint16_t gprs_rlcmac_tbf::sns() const
}
const char *tbf_name(gprs_rlcmac_tbf *tbf);
+
+inline time_t gprs_rlcmac_tbf::create_ts() const
+{
+ return m_create_ts;
+}
+
#endif
#ifdef __cplusplus