osmo-bsc/openbsc/src
Pablo Neira Ayuso 0d2881ad58 bsc: on-demand setup of nanoBTS and HSL femto sockets
The daemons set up nanoBTS and HSL femto sockets by default, ie. the
three sockets to support these two drivers are open even if we have
no BTS of that kind.

This patch enables on-demand socket creation, ie. we only enable them
if we have one BTS at least that requires it.

I added two new attributes to the gsm_bts object, they are:

* the start() function includes the code that we need to run to start
the BTS. This new function contains the socket creation in the
particular case of nanoBTS and HSL femto.

* the started boolean, which is used to know if we have already
started the BTS, ie. we have already invoked start().

Note that, I have splitted the bts_model_*_init() function into two
functions, the _init() functions that register the BTS driver
and the _start() functions that start BTS driver on-demand.

While I was at it, I added several changes/cleanups to this patch:

* Group all bts_model_*_init() calls into one function bts_init(),
which is called in the initialization path of osmo-nitb and
osmo-bsc.

* Add openbsc/bss.h that contains the declaration of
bsc_bootstrap_network, bsc_shutdown_net and bts_init.

* Add missing e1inp_init() in osmo-bsc.

* Fix missing declaration of hsl_setup in openbsc/e1_input.h
2011-05-22 21:03:35 +02:00
..
gprs misc: Use the osmo_init code for signals and logging 2011-05-12 16:11:14 +02:00
ipaccess ipaccess: Fix the case of specifying the interface 2011-05-17 20:34:53 +02:00
libabis abis: add init function for emulated ipaccess/HSL emulated E1 input 2011-05-22 21:02:47 +02:00
libbsc bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
libcommon bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
libgb src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
libmgcp src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
libmsc src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
libtrau src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
osmo-bsc bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
osmo-bsc_mgcp misc: Use the osmo_init code for signals and logging 2011-05-12 16:11:14 +02:00
osmo-bsc_nat nat: Use 'paging group' because we have paging forbidden. 2011-05-17 19:28:07 +02:00
osmo-nitb bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
utils misc: Use the osmo_init code for signals and logging 2011-05-12 16:11:14 +02:00
Makefile.am src: use new library libosmogsm and new path to headers in libosmocore 2011-03-23 18:17:56 +01:00
arfcn_list_range.c License change: We are now AGPLv3+ instead of GPLv2+ 2011-01-01 15:39:34 +01:00