aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/abis.c
AgeCommit message (Collapse)AuthorFilesLines
2018-03-17omldummy: Suppress RSL transmission errorsHarald Welte1-0/+7
In omldummy, we don't have a RSL link and hence any transmission attempts to RSL should silently go to /dev/null rather than printing error messages via libosmo-abis. So check for the OMLDUMMY variant and silently discard any RSL message that the code may want to transmit. Change-Id: I04a9ec7e416822cc1e45c533e6a66628689615ad
2018-03-17Get rid of 'struct gsm_bts_role_bts'Harald Welte1-4/+2
gsm_bts_role_bts was introduced at a time when we still shared gsm_data_shared.[ch] between BSC and BTS, and where we then subsequently needed a BTS-private structure. Since that sharing was abandoned quite some time ago, we can merge gsm_bts_role_bts into gsm_bts and do away with the bts/btsb dualism in a lot of the code. Change-Id: I4fdd601ea873d9697f89a748cc77bcf7c978fa3e
2017-01-25OML: internalize failure reportingMax1-1/+1
* make oml_tx_failure_event_rep() static and use osmo_signal_dispatch() wrapped into oml_fail_rep() to trigger event reports outside of oml.c instead of directly calling into OML layer * remove unnecessary formatting from text messages Related: OS#1615 Change-Id: I738555c547926e97b325ab53763c0076c42309bc
2016-06-14common/abis.c: fix 100% CPU usage after disconnecting OML/RSL link (Bug #1703)Minh-Quang Nguyen1-1/+0
Change-Id: I24605b8a6d4e778a3280ffba8bc1fc7a284ce12d
2016-02-15abis.c: Fix segfault on OML link lossHarald Welte1-4/+6
When the OML signalling link is lost, first set bts->oml_link = NULL, then iterate over the RSL links and close them. Closing the RSL link will cause a OML state change message to be sent, which in turn tries to use the no-longer-existing OML link. The code should be cleaned up further to distinguish which signalling link was lost, and actually communicate a RSL(only) loss to OML. But for now, it's best to simply close down all links and terminate osmo-bts to ensure all state is properly reset and recovered.
2016-02-03abis: Add a queue of OML messagesHarald Welte1-4/+25
When the oml_link is down or not yet established, we currently lost any OML messages that were scheduled for transmission to the BSC. Let's prevent that by keeping a queue of OML messages, which is drained at the time the OML link comes up again.
2016-01-22ABIS: Support for multiple RSL connectionsAndreas Eversberg1-14/+24
2015-09-22ABIS: Introduce bts_model_abis_close to indicate ABIS link failure.Andreas Eversberg1-1/+2
sysmocom-bts model shuts down on link loss, but other models may not want this, so shutdown is moved tor bts_model_abis_close of osmo-bts-sysmo.
2015-09-22Fix: Call e1inp_vty_init() before reading config fileAndreas Eversberg1-1/+0
2014-11-10abis: Fix compiler warning and remove const from syntaxHolger Hans Peter Freyther1-2/+2
libosmo-abis doesn't make it easy to have these parameters as const.. just declare it non-const in the api. We pass a static string but we know it will not be modified.
2014-08-20adopt to recent libosmocore ipa renameHarald Welte1-0/+1
2014-08-18Migrate to osmo_get_macaddr() in recent libosmocoreHarald Welte1-27/+2
get_mac_addr() is generally useful and shouldn't be hidden in the osmo-bts/abis.c file
2014-05-15abis: Separate initialization from connect for AbisHolger Hans Peter Freyther1-12/+11
Initialize the libosmo-abis VTY nodes more early so we can parse the config file that was created by "write". Introduce abis_init to initialize the libosmo-abis and modify abis_open to re-use an existing line. Update the comments. This has only been tried with the sysmobts-remote on x86. A TCP connection is opened toward the configured BSC. Fixes: SYS#285
2014-03-12misc: Fix the build breakage now that we have btsconfig.hHolger Hans Peter Freyther1-0/+2
Include the btsconfig.h for the PACKAGE_VERSION variable.
2013-11-14rsl: Rename abis_rsl_sendmsg to avoid symbol clash with libosmo-abisHolger Hans Peter Freyther1-1/+1
Nicolas ended up with linker issues due abis_rsl_sendmsg being defined twice. Rename our version of the function and update the code. Patched with: @i@ expression E; @@ - abis_rsl_sendmsg(E) + abis_bts_rsl_sendmsg(E)
2013-10-10misc: Fix resource leak when the ioctl is failingHolger Hans Peter Freyther1-2/+2
Fixes: Coverity CID 1040759
2013-10-06abis: Use OML remote (BSC) address if RSL CONNECT contains no IPHarald Welte1-0/+21
This introduces a new get_signlink_remote_ip() function whcih we also use in the RSL code to determine the RTP remote address if the CRCX/MDCX contains no remote IP address IE.
2013-10-06Call e1inp_vty_init() to make abis interface accessible from VTYHarald Welte1-0/+1
It might not be particularly useful, but then there's no disadvantage either...
2013-10-06migrate away from our own abis.c code to libosmoabisHarald Welte1-433/+145
libosmoabis has a BTS-side implementation of the IPA protocol for years, and osmo-bts should have used that all the time. Unfortunately it had its own local hack, this patch is migrating to the libosmocore implementation.
2012-06-21make sure we don't send CCCH LOAD IND before we have an Abis linkHarald Welte1-1/+1
2012-06-03Use git-generated PACKAGE_VERSION in IPA IDTAG_SWVERSIONHarald Welte1-2/+1
We previously used to send the bogus string "0815" which was a hack from early development time, but is obviously not a generally useful idea.
2012-04-05Increase head-room in IPA messages receivedHarald Welte1-1/+1
Without that headroom, I ran into an abort due to insufficient headroom in the LAPDm code.
2011-09-01abis.c: Remove dead codeHarald Welte1-3/+0
2011-07-01make it clear why we terminateHarald Welte1-2/+3
2011-07-01fix various compiler warningsHarald Welte1-0/+1
2011-07-01fix BTS initialization orderHarald Welte1-2/+7
The sequence is as follows: 0) start osmo-bts 1) start connection attempts to BTS 2) issue L1-RESET.req 3) receive L1-RESET.conf 4) issue RF-ACTIVATE.req 5) receive RF-ACTIVATE.conf 6) receive attributes for TRX 7) receive opstart for TRX 8) issue MPH-INIT.req [...] The important point here is: We don't want the BSC to set TRX attributes or do TRX opstart before our RF related hardware is initialized.
2011-06-29deactivate RF + exit when the Abis link is goneHarald Welte1-0/+8
The idea is that the BTS process is re-spawned from init/upstart/systemd
2011-06-29Fix memory leak in abis code: Free msgb after tx'ing itHarald Welte1-0/+1
2011-06-27re-work original osmo-bts with support for sysmocom femtobtsHarald Welte1-58/+86
This code re-works osmo-bts to add support for the upcoming sysmocom BTS. It also tries to add some level of abstraction between the generic part of a BTS (A-bis, RSL, OML, data structures, paging scheduling, BCCH/AGCH scheduling, etc.) and the actual hardware-specific bits. The hardware-specific bits are currently only implemented for the sysmocom femtobts, but should be (re-)added for osmocom-bb, as well as a virtual BTS for simulation purpose later. The sysmocom bts specific parts require hardware-specific header files which are (at least currently) not publicly distributed.
2011-05-22abis: use ipaccess protocol header from libosmogsmHarald Welte1-6/+6
2011-05-22[partial] port to new libosmocore-0.3 APIsHarald Welte1-13/+13
2011-03-04Import all C and Header files from jolly/bts branch of osmocom-bb.gitHarald Welte1-0/+488
The BTS code shall reside in a separate git repository, thus I'm importing the C and H files here.