aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf_dl.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-21 11:07:16 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-28 12:28:40 +0200
commitb0e5eaf59adbefc44e01850a6784c9da0c3abbf9 (patch)
treec7c628b9dd7db86d584e23a8c6d1031928059711 /src/tbf_dl.cpp
parent9a2845d491b088cb9e1962ba6dc8af5a4e279401 (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_dl.cpp')
-rw-r--r--src/tbf_dl.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 605239a3..13811fa1 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -802,7 +802,6 @@ void gprs_rlcmac_dl_tbf::reuse_tbf(const uint8_t *data, const uint16_t len)
new_tbf->set_ms(ms());
new_tbf->ta = ta;
- new_tbf->assign_imsi(m_imsi);
/* Copy over all data to the new TBF */
new_tbf->m_llc.put_frame(data, len);