aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
AgeCommit message (Collapse)AuthorFilesLines
2011-05-23abis_nm: Some more fall-out from the abis_nm move to libosmocoreHarald Welte3-3/+5
we want get_string_value(), not the equivalent of get_value_string()
2011-05-23abis_nm: fix some fallout regarding abis_nm migration to libosmocoreHarald Welte3-5/+5
Thanks to Holger for noticing this.
2011-05-22abis_nm: Move lots of generic definitions + code to libosmocoreHarald Welte1-388/+26
2011-05-22bsc: on-demand setup of nanoBTS and HSL femto socketsPablo Neira Ayuso7-10/+77
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-22bsc: fix bail out in case of problems bootstrapping BTS or E1 inputPablo Neira Ayuso1-4/+6
The error message was missing in case of problems bootstrapping the BTS. The E1 input driver initialization was displayed in the standard output, now this error is reported via logs.
2011-05-07src: use namespace prefix osmo_* for misc utilsPablo Neira Ayuso6-16/+16
Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
2011-05-06src: use namespace prefix osmo_counter*Pablo Neira Ayuso6-24/+24
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 Ayuso1-7/+7
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_signal*Pablo Neira Ayuso14-37/+37
Summary of changes: s/signal_cbfn/osmo_signal_cbfn/g s/register_signal_handler/osmo_signal_register_handler/g s/unregister_signal_handler/osmo_signal_unregister_handler/g s/dispatch_signal/osmo_signal_dispatch/g
2011-05-06src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso1-7/+7
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-06src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso7-35/+35
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-05-02paging: Provide the number of pending requestsHolger Hans Peter Freyther2-1/+15
Address the FIXME and take code from the on-waves/bsc-master branch. This will count the number of requests.
2011-05-02paging: Initialize structs internally to avoid a crashHolger Hans Peter Freyther2-3/+11
The code to create the struct gsm_bts is in libcommon right now and we can not call paging_init from there. Right now it appears to be the easiest of doing the init internally.
2011-04-26bsc: Allow to have a list of MSCs/MUXs to connect toHolger Hans Peter Freyther1-10/+22
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-26abis: Use LOGL_ERROR for the Failure Event ReportHolger Hans Peter Freyther1-6/+6
It is not an error of the BSC but we will treat a BTS error like an error of the BSC for now.
2011-04-18ho: Initialize nmp_worst as it was not initializedHolger Hans Peter Freyther1-2/+2
The compiler can't know that on the first iteration we will assign nmp_worst as we have used a high average value.
2011-04-18bsc: Move transaction.c from the libbsc to the libmscHolger Hans Peter Freyther2-153/+0
The BSC code does not use transactions, move it to the libmsc.
2011-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther10-10/+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 Freyther17-307/+307
This was done with sed on the files.
2011-04-07misc: Fix compiler warnings in the codeHolger Hans Peter Freyther1-2/+1
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso27-55/+55
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-19bsc: change bsc_vty_init to take logging categories as parameterPablo Neira Ayuso1-2/+2
This change is required to finish the integration of the VTY and the per-application logging categories that provides: "vty: integration with logging framework" in libosmocore. It has been tested with osmo-nitb. The other just compiled tested.
2011-03-08vty: fix segfault if rf_ctl is not setPablo Neira Ayuso1-1/+1
This is the case of osmo-nitb, since it does not call osmo_bsc_rf_create(). term1: $ ./osmo-nitb -c ../openbsc.cfg.nanobts term2: $ telnet localhost 4242 term2: OpenBSC> show network term1: Segmentation fault
2011-03-06RBS2000: Automatically connect/start/configure/enable most MOsHarald Welte2-18/+39
2011-03-06OM2000: Make sure we fill the nsd->bts member for NM state eventsHarald Welte1-0/+2
2011-03-06OM2000: First attempt in automatically configuring most MOsHarald Welte1-1/+91
TS objects are not part yet
2011-03-06OML: Include a pointer to the BTS in NM STATE CHANGE signalsHarald Welte2-0/+5
... this allows the BTS driver to decide if it should handle the event at all
2011-03-06OM2000: Move IS conn group list generation out of VTY codeHarald Welte2-50/+30
2011-03-06OM2000: Track the Operational Info and MO stateHarald Welte2-1/+155
2011-03-06OM2000: Remove "is-conf-req" from VTY, use "configuration-request"Harald Welte1-7/+5
This unifies the syntax a bit
2011-03-06OM2000: Process MO STATE and ACCORDANCE INFOHarald Welte1-1/+91
2011-03-06OM2000: Fix configuration of TCH timeslotsHarald Welte1-4/+3
2011-03-06OM2000: Fix configuration of Timing Function (missing timing src)Harald Welte1-0/+3
2011-03-05OM2000: More work on the TS configuration requestHarald Welte1-1/+27
It seems the differences for the various channel combinations are big
2011-03-05OM2000: Route TS config requests to the right TRXHarald Welte1-1/+10
The TRX number is encoded in mo.assoc_so, whereas the TS number is in mo.inst!
2011-03-05OM2000: TLV parser definitions for more DEI'sHarald Welte1-0/+40
2011-03-05OM2000: Consider OP_INFO_REJ and TEST_REQ_REJ as NACKHarald Welte1-0/+2
2011-03-05OM2000: Add channel combination specific DIEs for TS config requestHarald Welte1-16/+78
... and in order to do this reasonably well, we have to get rid of the pre-computed message length field in the OML header. Instead, we now simply compute it at abis_om2k_sendmsg() time based on the msgb_l2len().
2011-03-05OM2000: Handle (Dis)Connect Reject in NACK handlerHarald Welte1-1/+3
2011-03-05OM2000: Print result/reason code when receiving a rejectHarald Welte1-1/+90
2011-03-05OM2000: fix generation of frequency list DIEHarald Welte1-10/+15
2011-03-05HSL: Make sure not to send HSL specific OML init on non-HSL BTSHarald Welte1-1/+2
2011-03-05OM2000: Make sure to set the Associated SO to 255 in case of RX/TXHarald Welte1-1/+1
2011-03-05OM2000 VTY: Don't send RX configuration request to TXHarald Welte1-1/+1
2011-03-05OM2000: Add support for configuring the TF (Timing Function)Harald Welte2-0/+41
2011-03-05OM2000: Add support for sending TX, RX and TS configuration requestsHarald Welte2-13/+229
They can be triggered from the VTY
2011-03-04fix path of bscconfig.h include fileHarald Welte1-1/+1
2011-03-04Some more SR1.0.1 related fixesHarald Welte1-0/+12
somehow all the 0x81 in OML became 0x80, and the 0x80 of RSL became 0x80.
2011-03-04fix erroneous modification of DTX parameter introduced in previous HSL commitHarald Welte1-1/+1
2011-03-04Implement the HSL SR1.0.1 protocolHarald Welte3-2/+7
It seems HSL has fixed most of their obvious issues in the SR1.0.1 release. However, this creates quite an incompatibility of the protocol, and we have to adapt accordingly