aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
AgeCommit message (Collapse)AuthorFilesLines
2011-08-20add missing ipaccess.h to Makefile.amHarald Welte1-1/+1
2011-08-20add control_cmd.h to Makefile.amHarald Welte1-1/+1
2011-08-19src: port openBSC over libosmo-abis0.9.15Pablo Neira Ayuso13-409/+15
This is a big patch that ports openBSC over libosmo-abis. Sorry, the changes that are included here are all dependent of libosmo-abis, splitting them into smaller pieces would leave the repository in some intermediate state, which is not desired. The main changes are: - The directory libabis/ has been removed as it now lives in libosmo-abis. - new configuration file format for nanoBTS and HSL femto, we need to define the virtual e1_line and attach it to the OML link. - all the existing BTS drivers (nanoBTS, hsl femto, Nokia site, BS11 and rbs2000) now use the new libosmo-abis framework. - use r232 input driver available in libosmo-abis for bs11_config. - use ipa_msg_recv instead of old ipaccess_read_msg function. - delete definition of gsm_e1_subslot and input_signal_data. These structures now lives in libosmo-abis. Most of this patch are deletions of libabis/ which has been moved to libosmo-abis. This patch also modifies openBSC to use all the new definitions available in libosmocore and libosmo-abis. In order to do that, we have replaced the following: - DINP, DMI, DMIB and DMUX by their respective DL* correspondences. - SS_GLOBAL by SS_L_GLOBAL - SS_INPUT by SS_L_INPUT - S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN - SS_INPUT by SS_L_INPUT - S_INP_* by S_L_INP_* sub-signals - E1INP_NODE by L_E1INP_NODE vty node This patch has been tested with: - one nanoBTS - the HSL femto with the examples available under libosmo-abis - BS11 with both dahdi and misdn drivers.
2011-08-19src: use new msg->dst pointer instead of deprecated msg->trxPablo Neira Ayuso1-0/+2
This patch modifies openBSC code to use msg->dst which stores the pointer to the signalling link structure instead of the pointer to the transceiver structure. This patch prepares the introduction of libosmo-abis.
2011-08-11RSL: add timer for lchan activation/deactivation without BTS responseHarald Welte1-0/+1
The timer callback will simply reset the lchan state to NONE in order to prevent channels getting stuck in 'activation requested' or 'deactivation requested' states.
2011-08-11E1 Input: Add rate counters for events related to E1 linesHarald Welte1-0/+10
2011-08-10LAPD: Propagate lapd_receive() errors to the E1 driverPablo Neira Ayuso1-0/+1
Scenario: BTS are configured and working, then the BSC stops working for some reason (crash or administrative stop). If the BSC comes back to life, LAPD among other things does not know about the previous existing TEIs. Instead of ignoring these frames, we notify the driver that we are seeing frames with unknown TEIs, so it can try to recover, e.g. by resending the SABM message.
2011-08-10NOKIA: Move more static variables into 'struct gsm_bts'Harald Welte1-0/+7
2011-08-10Initial version of Support for Nokia *Site BTSDieter Spaar3-0/+9
This includes the MetroSite, but also other Nokia BTS models.
2011-07-27GPRS: Fix buffer overflow in case of very long MS RA CAP IEHarald Welte1-1/+1
The MS Radio Access Capability IE can be _very_ long in some recent high-end mobile phones, way beyond the old 14-byte limit. We increase our array to 52 bytes, and make sure not to overflow that buffer.
2011-07-23fix some header file related issues preventing lcr from compilingHarald Welte1-4/+6
2011-07-19libcommon: Add DCTRL logging destination for libctrl related messagesDaniel Willmann1-0/+1
2011-07-19paging: Add method to find the paging data for a given subscriberHolger Hans Peter Freyther1-0/+2
2011-07-19mgcp: Implement RSIP based on a trunk levelHolger Hans Peter Freyther1-1/+1
Implement the RSIP spec extension to work on the specified trunk instead of hardcoding it to the virtual trunk.
2011-07-19bsc: Call the RF Control interface ctrl all the wayHolger Hans Peter Freyther1-1/+1
We had the rf_ctrl_name and the rf_ctl pointer, make both use the word ctrl.
2011-07-16db: use ANSI (void) function declarationsHarald Welte1-2/+2
2011-07-13controlif: declare controlif_setup() in control_cmd.hHarald Welte1-0/+3
this avoids us to copy+paste external declarations over all 'main' files.
2011-07-13nat: Use libctrl and add command forwarding to osmo-bscDaniel Willmann1-0/+22
Passes commands beginning with "bsc.<num>" to the bsc that is responsible for LAC <num>.
2011-07-13libctrl: Add ctrl_cmd_cpy() to copy a commandDaniel Willmann1-0/+1
2011-07-13libctrl: Add macros to help define commandsDaniel Willmann1-0/+69
2011-07-13Add libctrl, an SNMP-like control interfaceDaniel Willmann1-0/+81
In contrast to the VTY interface the control interface is meant to be used by programs. This patch adds basic support, no commands are defined.
2011-06-29properly reset the MO state of all MO on Abis disconnect0.9.14Harald Welte1-0/+5
When we loose the A-bis link, we should properly re-set the administrative, operational and availability state of all MOs
2011-06-29add lchan->meas for BTS side codeHarald Welte1-0/+38
TODO: move all of the BTS side per-lchan data behind a 'void *role' pointer like 'struct gsm_bts'
2011-06-26move gsm 05.02 related calculations into libosmocoreHarald Welte1-3/+0
2011-06-26use new gsm48_number_of_paging_subchannels from libosmocoreHarald Welte1-1/+0
2011-06-26system information related bits for osmo-btsHarald Welte1-1/+9
2011-06-25move {ts,lchan}2chan_nr() functions to gsm_data_shared.cHarald Welte2-1/+5
... this way osmo-bts can use them
2011-06-07add back-pointer for l1 as part of BTS role.Harald Welte1-0/+4
2011-06-06add mo->bts member so we can discover which BTS a MO belong stoHarald Welte1-0/+1
2011-06-06move objclass2{nmstate,mo,}obj() to gsm_data_shared.c (and prefix)Harald Welte1-1/+12
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte2-9/+14
This facilitates the use of gsm_data.c from osmo-bts
2011-06-05abis_nm.h: Use osmocom/core/abis_nm.hHarald Welte1-2/+1
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-19/+24
... as a common wrapper around nm_attr and nm_state
2011-06-03split gsm_data.h in gsm_data_shared.h and gsm_data.hHarald Welte3-514/+522
gsm_data.h is the part that contains BSC-specific data, whereas gsm_data_shared.h is now shareda with osmo-bts
2011-06-03gsm_data: Use osmocom/gsm/sysinfo.hHarald Welte1-3/+3
and include rest_octets.h only in case of BSC
2011-06-01nat: Look into the TPDU/SMS-SUBMIT and use the TP-DestAddress for matchesHolger Hans Peter Freyther1-0/+2
Match the used SMSC and the destination of the SMS and change the SMSC address if both are matched.
2011-06-01nat: Patch the destination SMS address of a messageHolger Hans Peter Freyther1-1/+4
Use the same filtering infrasturcture to patch the SMSC address in a CP-DATA/RP-DATA message. Add a very simple testcase for this code.
2011-06-01nat: Prepare to patch more than the CC Setup messageHolger Hans Peter Freyther1-1/+1
Refactor the code to allow having different handlers. The goal is to be able to patch some SMS messages too.
2011-06-01nat: Allow to have a regexp to match the MSISDNHolger Hans Peter Freyther1-1/+15
The idea that MCC and MNC is enough to classify a subscriber turns out to be wrong. Certain operatos license a number range of IMSIs to others. When we see a '^' in the MCC field we treat it as a regexp. The code now turns the MCC/MNC into a regexp for the IMSI. It is not using extended POSIX regexp to match the behavior of the access list.
2011-05-31abis: Get the structs and values from libosmocoreHolger Hans Peter Freyther1-6/+0
Remove the forward declarations for functions and structs that have been moved to libosmocore.
2011-05-24move some more abis_nm related code into libosmocoreHarald Welte1-23/+0
This syncs openbsc.git with libosmocore.git commit rev 11c7193ad8ceb4f3898799dc44b700b8b93a59b8
2011-05-24Move system information related defines and code to libosmocoreHarald Welte1-36/+1
This brings openbsc in sync with the following libosmocore commit: b5503136fa234690d5493b19a8aee3a4ef74190d
2011-05-24prepare gsm_data.h header file sharing with osmo-btsHarald Welte4-114/+139
This should not introduce any functional changes, it just re-arranges some definitions in the header file, and introduces the ROLE_BSC define that we enable for the BSC-specific fields.
2011-05-22use new libosmogsm ip.access protocol header fileHarald Welte1-87/+1
2011-05-22bsc: on-demand setup of nanoBTS and HSL femto socketsPablo Neira Ayuso4-1/+23
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-07src: rename msg_entr* to osmo_config_*Pablo Neira Ayuso1-1/+1
Summary of changes: s/msg_entry_parse/osmo_config_list_parse/g s/msg_entry/osmo_config_entry/g s/msg_entries/osmo_config_list/g
2011-05-06src: use namespace prefix osmo_counter*Pablo Neira Ayuso3-38/+38
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_wqueue*Pablo Neira Ayuso5-8/+8
Summary of changes: s/struct write_queue/struct osmo_wqueue/g s/write_queue_init/osmo_wqueue_init/g s/write_queue_clear/osmo_wqueue_clear/g s/write_queue_enqueue/osmo_wqueue_enqueue/g s/write_queue_bfd_cb/osmo_wqueue_bfd_cb/g
2011-05-06src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso9-18/+18
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