aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-11-06debian: Update the changelog for the release of the new versionv0.1.4Holger Hans Peter Freyther1-0/+6
2012-11-06debian: Do not override the CFLAGS as this can cause miscompilationHolger Hans Peter Freyther1-2/+0
We have witnessed how the bits test got miscompiled. Do not introduce our own version of the CFLAGS but use the defaults of the debian project
2012-10-16ipaccess: relax default behaviour on errors coming from signalling layerPablo Neira Ayuso1-2/+4
This patch relaxes the behaviour on error coming from the signalling layer. This is probably too strict for recoverable errors. Don't release msgb in this case, as this is controled by the signaling link layer. Thanks to Lennart Müller <mueller.lennart@googlemail.com> for the report.
2012-10-12Test parsing of GSM 08.60 frame sync headerTobias Engel2-0/+190
Tests if the frame synchronization header is correctly recognized. The problem tested for is the following: The sync header consists of 16 zero-bits followed by 1 one-bit. Before, subchan_demux only tested for the 16 zero-bits. But if the previous frame ended in one or more zero-bits these were then already counted as belonging to the sync header, leading to a frame that was shifted by one or more bits.
2012-10-12tests: Add a test stub for the subchan_demux testsHolger Hans Peter Freyther5-2/+77
Tobias has worked on CSD support and Dieter has helped with a CSD trau fix. This is a stub that should allow to easily write a test case for the syncing issue observed by Tobias. Run the tests: $ make check In case of failure: $ vi tests/testsuite.dir/1/testsuite.log Add the actual content: $ edit tests/subchan_demux/subchan_demux_test.c Update the test result: $ ./tests/subchan_demux/subchan_demux_test > tests/subchan_demux/subchan_demux_test.ok
2012-10-12Adds support for GSM 08.60 data frame en-/decodingTobias Engel1-5/+29
There is no interworking function (IWF) here. The contents of an uplink frame simply gets copied into a downlink frame. For this to work both sides of the call need to connect with the same speed and parameters.
2012-10-12Make sure sync header was fully receivedDieter Spaar1-8/+9
The sync header consists of 16 zero-bits followed by 1 one-bit. Before, subchan_demux only tested for the 16 zero-bits. But if the previous frame ended in one or more zero-bits these were then already counted as belonging to the sync header, leading to a frame that was shifted by one or more bits.
2012-10-11misc: Ignore files generated by vimHolger Hans Peter Freyther1-0/+4
2012-10-11tests: Add boilerplate to be able to have tests in libosmo-abisHolger Hans Peter Freyther4-0/+61
2012-08-30ipaccess: fix leak of IPA control messages in the BTS sidePablo Neira Ayuso1-0/+1
2012-08-30tests: e1inp_ipa_*_test: fix leak of msgb in ->sign_link pathPablo Neira Ayuso2-0/+2
Fix a leak in the tests: The ->sign_link callback is reponsible for releasing the msgb.
2012-08-30tests: e1inp_ipa_*_test: add signal handling for process terminationPablo Neira Ayuso2-3/+30
This patch adds signal handling to release memory in the exit path of the tests. This is good to check what memory we are leaking in the exist path of the tests.
2012-08-30tests: fix CPU suckup e1inp_ipa_bts_test after test finishPablo Neira Ayuso1-1/+6
We have to read from the eventfd, otherwise select keeps returning the file descriptor as ready to read.
2012-08-30input: add generic PCAP interface for LAPDPablo Neira Ayuso6-1/+185
This patch allows you to create PCAP traces between the BSC and BTS including the LAPD frames. Useful for debugging communication issues. So far, it was only possible to create layer 3 traces containing OML/RSL. LAPD traces can be also interesting to debug communication issues between the BSC and the BTS. To enable PCAP of LAPD, you only have to invoke: li->pcap_fd = osmo_pcap_lapd_open("/tmp/file.pcap", 0600); By default, li->pcap_fd is set to -1 which means disabled. openBSC needs a patch to replace all usage of e1_set_pcap_fd by osmo_pcap_lapd_open.
2012-08-30input: dahdi: replace exit by returnPablo Neira Ayuso1-8/+14
This is a library, we leave up to the client code to decide when to finish the code execution.
2012-08-30input: dahdi: use logging facilities instead of fprintf and stderrPablo Neira Ayuso1-13/+19
2012-08-30lapd: use C99 structure initialization for profile templatesPablo Neira Ayuso1-27/+27
2012-08-30tests: e1inp_ipa_bts_test: fix compilation warningsPablo Neira Ayuso1-3/+4
CC e1inp_ipa_bts_test.o e1inp_ipa_bts_test.c: In function ‘sign_link_up’: e1inp_ipa_bts_test.c:47:8: warning: variable ‘dst’ set but not used [-Wunused-but-set-variable] e1inp_ipa_bts_test.c: In function ‘test_bts_gsm_12_21_cb’: e1inp_ipa_bts_test.c:211:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] CCLD e1inp_ipa_bts_test
2012-08-30ipaccess: improve error handlingPablo Neira Ayuso1-60/+142
If we hit any error, spot an error message containing the reason and close the links to start over. This patch has been tested by injecting errors in: * ipaccess_send, by randomly returning -1. * returning error from the ->sign_link_up callback, both from the OML and RSL links. * returning error from the ->sign_link callback, both for the OML and RSL links. With this patch, Valgrind shows no "definitely lost" memory blocks anymore (including the error path that has been tested) and the ipaccess driver behaves more robustly in case of errors. Acked-by: Holger Freyther <holger@freyther.de>
2012-08-30tests: e1inp_ipa_bsc_test: fix crashPablo Neira Ayuso1-2/+6
The sequence to trigger the crash was: 1) establish a full A-bis IPA link (both OML and RSL correctly established and ID_RESP received from BTS). 2) nc 127.0.0.1 3002 # establish OML link only I forgot to set to NULL the oml and rsl links we're using. Otherwise, the test calls e1inp_sign_link_destroy(rsl) which does not exists.
2012-08-30ipaccess: fix leak of e1inp_linePablo Neira Ayuso3-9/+5
Holger reported a leak in the ipaccess_drop path and a patch to fix this. This is a new version of the patch posted that also handle the case in which only one of the link (OML / RSL) is established and no ID_RESP was received. Based on patch of Holger Freyther.
2012-08-30ipa: fix missing set of write_cb for IPA client connectionPablo Neira Ayuso1-0/+3
Now the BTS and BSC tests work again.
2012-08-14Use package version since git info won't be available.Eric Butler2-0/+14
2012-08-14Add debian/ubuntu packaging files.Eric Butler8-1/+43
2012-07-21doc: Describe the optional 'stats' parameterHolger Hans Peter Freyther1-1/+1
2012-07-20doc: Add a newline to fix the documentation of the HSL optionHolger Hans Peter Freyther1-1/+1
2012-07-01build: remove checks introduced by autoscan.v0.1.3Diego Elio Pettenò1-4/+0
Therre is no current use of HAVE_* variables for these checks in the code, so there is no reason to keep the checks around. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01build: consolidate automake options to configure.acDiego Elio Pettenò2-2/+1
Also disable building the gzip distribution since we're building the bzip2-compressed tarball already. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01build: build libosmotrau.la in the src directory.Diego Elio Pettenò3-21/+12
This spares us another recursion, and allows a much higher parallelisation, since trau is only one source unit and one standalone library. Incidentally, also make sure that the version specification for libosmoabis is applied. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01build: avoid using a convenience library for the input subdirectory.Diego Elio Pettenò3-17/+9
automake is well capable of building sources present in sub-directory without requiring a recursion, so there is no reason to use a non-installed library just for the extra files. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01build: only build tests during make checkDiego Elio Pettenò1-1/+1
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01build: use nobase_include_HEADERS instead of using recursive MakefilesDiego Elio Pettenò5-18/+4
This simplifies installation of include files, as make no longer have to recurse into subdirectories and install each subset of files in different directories. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01build: use LT_INIT([pic-only]) instead of forcing -fPIC in AM_CFLAGS.Diego Elio Pettenò4-5/+4
Also contextually remove the AC_PROG_LIBTOOL call (which is an obsolete name for what is now LT_INIT). Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-03-26misc: Fix the email address in the configure.acv0.1.2Holger Hans Peter Freyther1-1/+1
2012-03-18ipaccess: hex-dump message in case ops->sign_link() returns an errorHarald Welte1-1/+2
2012-02-04e1_input.h: Declare abis_rsl_sendmsg(struct msgb *msg)Holger Hans Peter Freyther1-0/+1
The E1 abstraction provides the above method, declare it in our header file. GCC warning (of OpenBSC): abis_rsl.c: In function ‘rsl_bcch_info’: abis_rsl.c:221:2: warning: implicit declaration of function ‘abis_rsl_sendmsg’ [-Wimplicit-function-declaration]
2012-02-04osmo-ortp: Prefix oRTP messages with osmo-ortpHolger Hans Peter Freyther1-4/+4
When many applications write to the stdout it is not clear that 'network_error' comes from osmo-bts due the usage of oRTP. At least provide a hint that oRTP is involved.
2012-01-18Fixed TRAU frame handling of packet lengths that are not a multiple of 4Andreas Eversberg1-4/+0
2012-01-18Fixed wrong reference while opening mISDN socketAndreas Eversberg1-1/+1
2011-12-28abis/close: Deliver S_L_INP_TEI_DN when closing the socketv0.1.1Holger Hans Peter Freyther4-23/+46
* HSL/IPA had different socket closing code for the same thing, create one method for it. * Both methods tried to send an event but as we are on the close path the sign_link was already removed from the list and the input event sending method couldn't find the sign_link using the sapi/tei provided.
2011-12-20mISDN input: avoid some strange distortion caused by buffer mgmtAndreas Eversberg1-11/+10
We used to write as many messages as we received from mISDN for b-channels. Now we write as many _bytes_ as we have received, which seems to be the more logical thing to do.
2011-11-07ipa: The message claims to close the socket but it remains open.Holger Hans Peter Freyther1-1/+1
Correct the 'closing socket' statement. It would be nice to know why this message has been discarded but I can't answer that right now.
2011-10-22osmo_ortp: include ortp/port.h for the memory management functionsHarald Welte1-0/+1
2011-10-22version 0.13.1 of libortp seems sufficientHarald Welte1-1/+1
2011-10-16misc: Linker fix for Ubuntu 11.10Holger Hans Peter Freyther1-1/+2
--as-needed was default in Natty and somehow got more strict in this version of Ubuntu. Link to osmo vty.
2011-10-10depend on new libosmocore 0.3.10 (lapd) and increment LIBVERSIONv0.1.0Harald Welte2-2/+2
2011-10-01Length check of LAPD messages to prevent overflows on corrupt framesAndreas Eversberg1-7/+49
2011-09-30Fixed missing T203 in profilesAndreas Eversberg1-0/+3
2011-09-29Addition to last commit 2f5a3714075882ac946536709ac581453b6ad52aAndreas Eversberg2-12/+14
2011-09-29LAPD profiles are globally defined structuresAndreas Eversberg4-43/+67
The pre-defined structures can be used as a profile, as well as own defined or modified versions of them.