On Sun, Feb 14, 2016 at 12:07:19PM +0100, Harald Welte wrote:
heh, interesting
> question: often, there are two bts pointers
around, namely the
> gsm_subscriber_connection->bts
> as well as the
> lchan->ts->trx->bts
I should have said: there are often two bts pointers *in libbsc*, since in
libmsc on my cscn branch, the gsm_subscriber_connection->bts as well as
the ->lchan are already #ifdef'd away.
I would assume that both [bts] pointers are the same
in all cases.
When I created OpenBSC, we only had the lchan->ts->trx->bts pointers,
and we had the subscriber point directly to the lchan. IIRC, Holger
later introduced the subscriber_connection when he created OsmoBSC.
ok, nice, I understand.
That comment in gsm48_handle_paging_resp() (libbsc) sounds a bit like more
than one BTS could be involved:
/* Stop paging on the bts we received the paging response */
and it uses lchan->...bts first, but conn->bts at the bottom.
(But nm, this function is not relevant for the MSC-split anyway.)
~Neels
--
- Neels Hofmeyr <nhofmeyr(a)sysmocom.de>
http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschäftsführer / Managing Directors: Holger Freyther, Harald Welte