diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-21 11:07:16 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-28 12:28:40 +0200 |
commit | b0e5eaf59adbefc44e01850a6784c9da0c3abbf9 (patch) | |
tree | c7c628b9dd7db86d584e23a8c6d1031928059711 /src/tbf.h | |
parent | 9a2845d491b088cb9e1962ba6dc8af5a4e279401 (diff) |
tbf: Move IMSI to MS object
Currently the IMSI is stored in the TBFs. Since it directly refers to
an MS, it should rather be stored in an MS object.
This patch move the m_imsi field from gprs_rlcmac_tbf to GprsMs,
changes gprs_rlcmac_tbf::imsi() to get the IMSI from the associated
MS object, and adds getter and setter to GprsMs. Before changing the
IMSI of the associated MS object, assign_imsi() checks if there is
already another MS object with the same IMSI and eventually resets
the IMSI of that one. So using update_ms() and assign_imsi() ensures
that there are not two MS object entries is the storage with the
same TLLI or the same IMSI.
Ticket: #1674
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.h')
-rw-r--r-- | src/tbf.h | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -223,9 +223,6 @@ struct gprs_rlcmac_tbf { uint8_t m_tfi; time_t m_created_ts; - /* store IMSI for look-up and PCH retransmission */ - char m_imsi[16]; - protected: gprs_rlcmac_bts *bts_data() const; @@ -300,11 +297,6 @@ inline uint8_t gprs_rlcmac_tbf::tfi() const return m_tfi; } -inline const char *gprs_rlcmac_tbf::imsi() const -{ - return m_imsi; -} - inline gprs_rlcmac_tbf *gprs_rlcmac_tbf::new_tbf() const { return m_new_tbf; |