aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libcommon
AgeCommit message (Collapse)AuthorFilesLines
2011-08-25bsc: Auto RF Off in case of missing MSC connectionHolger Hans Peter Freyther1-0/+1
For short IP failures we want the RF to stay up and wait for the re-connect but in case the A-link is gone too long it is good to switch off the RF and wait for commands to enable it again.
2011-08-25bsc: Allow to configure more than one MSC in the VTYHolger Hans Peter Freyther1-0/+2
2011-08-25bsc: Prepare to have multiple MSC connectionsHolger Hans Peter Freyther1-8/+1
We now have a list of MSCs but in the code we will try to access the MSC with the nr 0.
2011-08-25bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther1-9/+10
We want to have multiple MSCs but we also have some data that is only present on a per BSC basis. Right now the MSC data is not allocated with talloc, so we have some change in the talloc contexts.
2011-08-25misc: Move the bsc_parse_reg to libcommom and name it gsm_parse_regHolger Hans Peter Freyther1-0/+26
Move the regexp parsing code from the NAT to libcommon as it will be used by the NAT and BSC code. This also adds the #include <regex.h> include to gsm_data. This header should be split up.
2011-08-22gsm_data: Include a structure for the geographical location in gsm_btsDaniel Willmann1-0/+2
2011-07-19libcommon: Add DCTRL logging destination for libctrl related messagesDaniel Willmann1-0/+5
2011-07-18bts-init: Initialize the BTS like it will look after a resetHolger Hans Peter Freyther1-1/+0
Reset the BTS MO State on BTS bootstrap. This way we will always test the BTS disconnect/reconnect case of the BTS. Do not reset the administrative state of objects. The BSC might have set these and wants to maintain them across disconnect/ reconnect. Right now this is true for the TRX state.
2011-06-29properly reset the MO state of all MO on Abis disconnectopenbsc/0.9.14Harald Welte1-3/+32
When we loose the A-bis link, we should properly re-set the administrative, operational and availability state of all MOs
2011-06-25move {ts,lchan}2chan_nr() functions to gsm_data_shared.cHarald Welte1-0/+39
... this way osmo-bts can use them
2011-06-07initialize NM state for all objects to known stateHarald Welte1-0/+3
2011-06-06gsm_data_shared: make sure to initialzie the MO obj_class/obj_instHarald Welte1-9/+22
2011-06-06add mo->bts member so we can discover which BTS a MO belong stoHarald Welte1-0/+17
2011-06-06move objclass2{nmstate,mo,}obj() to gsm_data_shared.c (and prefix)Harald Welte1-0/+148
2011-06-06gsm_data: don't free a bts that's not even allocated yetHarald Welte1-3/+1
2011-06-06make sure to include gsm_data.h, not gsm_data_shared.hHarald Welte1-1/+1
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte3-246/+293
This facilitates the use of gsm_data.c from osmo-bts
2011-06-03Introduce per-ts TSCHarald Welte1-0/+1
This allows us to configure a TSC for each timeslot, not just one globally for the entire BTS.
2011-06-03gsm_data_shared: introduce 'struct gsm_abis_mo'Harald Welte1-1/+1
... as a common wrapper around nm_attr and nm_state
2011-05-23abis_nm: fix some fallout regarding abis_nm migration to libosmocoreHarald Welte1-1/+2
Thanks to Holger for noticing this.
2011-05-22bsc: on-demand setup of nanoBTS and HSL femto socketsPablo Neira Ayuso1-0/+8
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-06src: use namespace prefix osmo_counter*Pablo Neira Ayuso1-30/+30
Summary of changes: s/struct counter/struct osmo_counter/g s/counter_inc/osmo_counter_inc/g s/counter_get/osmo_counter_get/g s/counter_reset/osmo_counter_reset/g s/counter_alloc/osmo_counter_alloc/g s/counter_free/osmo_counter_free
2011-05-06src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso1-3/+3
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
2011-05-02nat: Create a Paging Group that BSCs can refer toHolger Hans Peter Freyther1-0/+7
Introduce a paging group that a BSC can refer to and is used during the LAC lookup. This way paging can be flooded through the network and just filtered at the last element in the core.
2011-04-26bsc: Allow to have a list of MSCs/MUXs to connect toHolger Hans Peter Freyther1-2/+1
Be able to configure a list of destinations (duplicates allowed) that will be tried in a round robin fashion. The change is in the bsc_msc_connection to operate on a list. We achieve the round robin nature with the same trick used in the paging code to delete and append the current entry. The nat code was updated to compile but one can only configure one destination.
2011-04-26bsc: Point back from struct osmo_msc_data to struct gsm_networkDaniel Willmann1-0/+3
2011-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther1-1/+0
These are not needed any more. We used them for u_int types but we now use uint which comes from stdint.h
2011-04-18misc: Move from u_int to uint types of stdint.hHolger Hans Peter Freyther2-7/+7
This was done with sed on the files.
2011-04-05libcommon: socket: extend make_sock() prototypePablo Neira Ayuso1-4/+6
This patch extends the make_sock() prototype so you can fully set the fields priv_nr and data of the bsc_fd structure. This is the first step to get rid of the internal make_sock() implementation that ipaccess-proxy uses. This patch includes a minor cleanup to pass INADDR_ANY instead of zero, if you do not want to bind the socket to one specific address.
2011-03-29bsc: Make the MSC node a child of CONFIG_NODEHolger Hans Peter Freyther1-2/+2
The VTY code calls the write function for nodes in the order of registration of the node and not in terms of hierachy of nodes. This means that the e1_input code is written before the MSC node that was the child of the network. Make the MSC_NODE a direct descendant of the CONFIG_NODE and avoid this issue.
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso6-15/+15
libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-04fix path of bscconfig.h include fileHarald Welte1-1/+1
2011-03-04[HSL] initial support for the HSL 2.75G FemtocellHarald Welte1-0/+3
The HSL Femtocell seems to be a poor man implementation of the ip.access Abis/IP protocol, but cutting corners wherever possible. We try to workaround those corners wherever possible...
2011-03-04prefix sub-directories containing libraries with 'lib'Harald Welte7-0/+1246
... and make sure tests work again after restructuring