Commit Graph

374 Commits

Author SHA1 Message Date
Pau Espin 60fd2a0e85 git-version-gen: Check first for new tag format
Tags starting with "v*" are old ones. We first want to check for the new
ones, otherwise the wrong tag is selected as the last one.

Change-Id: Ic39bed2fcf7e3ccb6a83e2999d29d129e07c1a84
2018-05-02 19:36:36 +02:00
Pau Espin c04d8d2274 use osmo_init_logging2
Change-Id: Iab9d111aba8f9b423e6a541e928f68b38d561067
2018-04-17 14:43:08 +02:00
Pau Espin 43b5b69bb8 configure.ac: Fix condition check for RTP_SIGNAL_PTR_CAST define
While building libosmo-netif on a system with an old ortp (0.22), it
was seen that warning related to RTP_SIGNAL_PTR_CAST not being correctly
selected were being printed. The compilation didn't fail there as
expected because the issue was being handled as a warning instead of an
error, so the void* ptr case was always being selected.

Change-Id: Ib5e7569e68fdb921c63e0c12e20e73aafbebda46
2018-04-10 18:15:52 +02:00
Pau Espin db0700a5a3 e1_input.h: Remove dead declaration of unexistent API ipaccess_setup
The function was removed long time ago in
af8ed983ff.

Change-Id: I34debe01d1d8b6f4420354666d2a25807dacc25c
2018-04-06 13:19:28 +02:00
Stefan Sperling 49917c129b preserve 'when' flags of new osmo_fd in ipaccess_rcvmsg()
ipaccess_rcvmsg() disposes of a temporary osmo_fd structure after
the RSL link comes up. It copies data from its temporary osmo_fd
to the new one returned by sign_link_up(). However, in doing so,
it clobbered the 'when' flags, which could differ between the two
osmo_fd structures.
For instance, BSC_FD_WRITE could be set on the new osmo_fd but
not on the old one, in case sign_link_up() has already enqueued
outbound messages using the new osmo_fd.

Because of this behaviour, a patch committed to osmo-bsc to address
issue #2719 did not work as intended and had to be reverted.
After this change, that osmo-bsc patch should work as intended
and issue #2719 can hopefully be resolved.

Change-Id: I52f7c903212b38e9c87e4d45e52b231b6f1ae9f5
Related: OS#2719
2018-03-22 20:28:25 +01:00
Neels Hofmeyr d3b8b69977 jenkins.sh: use --enable-werror configure flag, not CFLAGS
Change-Id: I487ab6f2e391aa57404725de2c8ab5447ca9f725
2018-03-05 20:50:38 +01:00
Neels Hofmeyr bb83e6f7eb configure: add --enable-werror
Provide a sane means of adding the -Werror compiler flag.

Currently, some of our jenkins.sh add -Werror by passing 'CFLAGS="-Werror"',
but that actually *overwrites* all the other CFLAGS we might want to have set.

Maintain these exceptions from -Werror:
a) deprecation (allow upstream to mark deprecation without breaking builds);
b) "#warning" pragmas (allow to remind ourselves of errors without breaking
   builds)

As a last configure step before generating the output files, print the complete
CFLAGS and CPPFLAGS by means of AC_MSG_RESULT.

Change-Id: I20d5f18cf05c9e277d914ada259a95187b73fe39
2018-03-05 20:39:19 +01:00
Pau Espin 61460fd643 contrib: jenkins.sh: Disable doxygen in libosmocore build
Change-Id: I52fc3931ef072075561858bb7173f58a8503e499
2018-02-20 20:21:13 +01:00
Max f446367a63 IPA: log remote address
Wrap IPA logging to always print peer's address to simplify
troubleshooting.

Change-Id: I19ebaea45812aad6b3d3480cac0f1f833daf428d
2018-02-13 15:17:27 +01:00
Harald Welte f2a1607e27 debian/control: Fix Vcs-Browser
Change-Id: Ibcc861fe2125ee81097d0209b95dcbdc98c819a8
2018-02-09 13:31:48 +00:00
Max 7139352e67 cosmetic: update ipaccess_bts_handle_ccm()
* mark internal function parameter as const
* log unit IDs

Change-Id: Ifcf8baf4bf5670efaa8689ca7386597fe2797bda
2018-01-08 15:42:00 +01:00
Harald Welte d1dd22c38e Add a new osmo_rtp_set_source_desc() function to set the RTCP SDES items
This allows the users of libosmotrau to set the content of the SDES
items to something more useful than their compile-time defaults.

Change-Id: Ice794f9e0c6caeea1c67520c12efbfa375d1fb82
Related: OS#2701
2017-12-03 11:03:50 +01:00
Alexander Couzens 2d4888dd08 unixsocket: fix a potential string overflow
Change-Id: I8e3ec741247d728232f8c07c94eb63f068597d80
Found-by: coverity
2017-11-21 11:57:01 +01:00
Neels Hofmeyr 2e05f883f9 add --enable-sanitize config option
Change-Id: I59fea4a7199ca6aa71710d3aca0b25425df7d346
2017-11-17 02:05:35 +01:00
Harald Welte 323d39d784 Add SPDX-License-Identifier to all source files
Change-Id: I9f2bc8c5d8a2c0bb0dd6caa4de5e2cb11be210e7
2017-11-13 01:09:21 +09:00
Harald Welte 513c8f4472 debian/copyright: fix upstream-name
Change-Id: Ia7b07524f9c3e6013992ee4ba5151d951b7d9eda
2017-11-13 01:03:37 +09:00
Neels Hofmeyr e2d33bf02d vty: skip installing cmds now always installed by default
vty_install_default() and install_default() will soon be deprecated.

Depends: I5021c64a787b63314e0f2f1cba0b8fc7bff4f09b
Change-Id: I7771131a27d0b7ad0397715ceb3be035062bc010
2017-11-01 00:44:19 +01:00
Neels Hofmeyr d3c81da398 jenkins: use osmo-clean-workspace.sh before and after build
See osmo-ci change I2409b2928b4d7ebbd6c005097d4ad7337307dd93 for rationale.

Depends: I2409b2928b4d7ebbd6c005097d4ad7337307dd93
Change-Id: I2f4c0a6b9a066160707eb7768ea9cc8b77806b9b
2017-10-27 22:49:59 +02:00
Alexander Couzens 4200aa6b69 debian/rules: show testsuite.log when tests are failing
Change-Id: Ic3322e3931612f2153797331b02f2789490e5e2b
2017-10-11 08:13:50 +00:00
Neels Hofmeyr 01543a1ea3 cosmetic: ipa.c: use msgb_dequeue(), drop local var
Make ipa_server_conn_write() a lot simpler and shorter by using msgb_dequeue()
and avoiding local pointer that was used only once.

Change-Id: Id968e60d081a6d69de482a908ca3fe5e1044aaa3
2017-09-14 04:59:32 +02:00
Max d3292913ac Use value string check from osmo-ci
Change-Id: I60d480ce6fb761ac8e15318dbe2c591359a51c3c
2017-08-26 06:10:13 +00:00
Max 7f17b8c45d Bump version: 0.3.2 → 0.4.0
Change-Id: Ibefe53a7f5b06fb8a9294574af41dacac68bdbe9
2017-08-25 16:12:37 +02:00
Max e3260722d7 Use release helper from libosmocore
Change-Id: Ifc88e5c942a8b430b2436d429c86560d82984a95
Related: OS#1861
2017-08-08 11:55:31 +00:00
Pau Espin 35003ec2ea contrib: Enable -Werror by default
Change-Id: I065b18dd6c4f7616f981aa4273e68e23825a7294
2017-07-13 22:25:54 +02:00
Pau Espin 1307b7aa60 configure.ac: Fix RTP_SIGNAL_PTR_CAST config in FreeBSD build
Move function definition to the first argument of AC_LANG_PROGRAM
(prologue) instead of the second (body). Content of the body is writen
into the main() function of the file being compiled, while prologue is
writen before it.

Compiler from FreeBSD build host doesn't like definitions inside the
main function, it fails with the following error:
conftest.c:28:73: error: function definition is not allowed here

As the compilation test fails, unsigned int is used instead of void*, which
doesn't match the current headers in the current build, and then a
warning (or error with -Werror) is printed.

Change-Id: I83fc3997e5067b499bf43cea4ff953604d6cbeae
2017-07-13 22:15:16 +02:00
Harald Welte ff8eed24e7 check for missing result of rate_ctr_group_alloc()
In case the counter group allocation fails, we must handle this
gracefully and fail the allocation of the parent object, too.

Change-Id: Iff8506832d3472ab193b19b43cfbe7a9511075d1
Related: OS#2361
2017-07-12 00:38:25 +02:00
Harald Welte a06b877437 jenkins.sh: Proper error message if local environment isn't set up
Change-Id: Ibb34f07164adb175a44f460d02f54586b56a5b95
2017-07-10 14:58:06 +02:00
Pau Espin 65529bc541 configure.ac: Fix C(PP)FLAGS for BSD build
Issue first found in libosmocore. It seems the BSD build doesn't use
bash which means using += to append to a variable doesn't work
correctly.

Change-Id: Id509351104bc7466114d4b9be450814254110f44
2017-07-05 22:02:56 +02:00
Pau Espin 9e992c2435 osmo_ortp.c: Duration of a RTP frame affects timestamp of the next one
Duration of an RTP frames dictates the timestamp used for the next
frame, not for the one being sent now. It was done like this before to
account for possible losses.
Implementation wise, the duration was understood as "duration
between last frame was sent and now when current one is sent". It makes
more sense to use it as the duration in number of sampling ticks
as described on the function documentation, specially now that we can
account for extra time by means of osmo_rtp_skipped_frame.

Change-Id: Ib8f5fa5509059fe908c09a4381844c613d478548
2017-06-29 18:04:32 +02:00
Pau Espin 524923a96a osmo_ortp: Add osmo_rtp_drop_frame API
This API will be used by osmo-bts to maintain the sampling clock of the
RTP socket whenever a frame should be sent but it is not available, for
instance due to low quality of signal.

Change-Id: Id6099372b6231c0a4b6ea0716f46f5daee7049e1
2017-06-29 17:27:25 +02:00
Neels Hofmeyr c633cfbb91 Revert "configure.ac: Use -Werror in C(PP)FLAGS"
As discussed in chat, -Werror should not be enabled by default.
Instead it should be added in our jenkins build scripts.

This reverts commit 7d1f53143e.

Change-Id: Ied6e21b72b24fcb623fd945ed9560b742a8eedf5
2017-06-22 18:44:45 +00:00
Pau Espin 7d1f53143e configure.ac: Use -Werror in C(PP)FLAGS
Change-Id: Ic674bf28d781b9806dc023777e1fea4ee1a0257a
2017-06-22 19:27:16 +02:00
Pau Espin 62eddcdcd8 configure.ac: Use -Wall in C(PP)FLAGS
Change-Id: I5033387e4a4206f7d34d1db3c6ede9255d199941
2017-06-22 19:27:16 +02:00
Pau Espin 05df2d65a7 osmo_ortp.c: Fix warning: check ortp API in rtp_session_signal_connect
Since ortp commit 5ab29c50adc7948b11449e3aeee66010379ff7dc preceeding
ortp 0.24, the API is fixed and requests a pointer instead of an
unsigned long.

As we now require at least ortp 0.22 since libosmo-abis
15d9b7929d, we need to support both old
and new version of the API to continue having support for 0.22 but still
supporting new versions of the library.

Change-Id: I2dbd0498d75160358eca4336850e1a0ad2efdbeb
2017-06-22 19:27:16 +02:00
Pau Espin b0c3a4a30f osmo_ortp.c: Fix warning: implicit use of function
Explicitly state that we are using an internal API from ortp, and
define the function we are using to avoid printing a warning.

Change-Id: I9cadcb31ce7ade3632d83753be97fdc9ea518b5b
2017-06-22 19:26:57 +02:00
Pablo Neira Ayuso b26f2fd825 src: use osmo_timer_setup()
Use new function available in libosmocore to set up timers. Compile
tested only.

Change-Id: I4ca4950e49a09c63b608b13ac7561ebbd351889a
2017-06-07 18:34:49 +02:00
Harald Welte e416e2e09d Revert "ipacces.c: Remove ipa_bts_id_resp() and use libosmocore"
This reverts commit d517db06ce, which for
some reason broke the IPA client functionality.  This needs to be
investigated and properly fixed.  But until that happens: revert.

Change-Id: Ic168f437c5bf1fcdb7441b0541c80a4805463004
2017-05-26 13:12:14 +02:00
Harald Welte cac78fe9e9 Add value_string for input signal names (e1inp_signal_names)
Change-Id: I1662d4a969d2d12677646f3120b25be9a20c6d22
2017-05-25 19:13:13 +02:00
Harald Welte d517db06ce ipacces.c: Remove ipa_bts_id_resp() and use libosmocore
In Chanage-Id Icbcd8827a75fd5f3393351c1ca372de85275ad35 we introduced a
very similar function to libosocore.  Let's use that rather than our own
version here.

Change-Id: I858920db1fb5f5d66e71b676d28c84d330d7904a
2017-04-15 19:12:01 +02:00
Harald Welte bf7976c0b0 Fix HAVE_ORTP_LOG_DOMAIN detection on FreeBSD
We need to use the include path[s] resolved by pkg-config for
ortp before trying to compile our test program.  Without this
patch, compilation will fail e.g. on FreeBSD 11.

Change-Id: I0c95e37cc449297389bf31dd9d5dcaa922d75d0c
2017-04-04 14:34:50 +02:00
Jean-Francois Dionne 5e87fdfcab Fix RTP jitter buffer that never stop to increase.
Duration passed to osmo_rtp_send_frame_ext function is based
on the last frame and the current one. Duration must then be
added to the timestamp before being transmitted.

Change-Id: I0593d6530c097cca34125a0ae2dd1b019b4dd80d
2017-03-29 13:40:22 +00:00
Pau Espin Pedrol c42bf19cc5 configure: Fix compilation with new libortp
Commit 0c8d9ddaea8c1afdc0e9b8c37a31c9d158e57efd in ortp broke old API:
function ortp_set_log_level_mask requires one new parameter 'domain'.

This commit fixes compilation in my Archlinux box using ortp 1.0.1.

Change-Id: I46e565f1873c7baf3c3b0aafe73951d20ce083b4
2017-03-27 15:21:48 +02:00
Harald Welte 1e04d4b7a2 README.md: Use <> around all hyperlinks to render them as links in cgit
Change-Id: I4b1004d5275972249d463083e0c2af41dc46dad2
2017-03-18 17:56:25 +01:00
Neels Hofmeyr 3fdb287d65 jenkins: add value_string termination check
Change-Id: I37c14c1a18207f64aa5e15ec0d2503bc834b2627
Depends: libosmocore change-id I2bc93ab4781487e7685cfb63091a489cd126b1a8
2017-03-16 19:00:12 +00:00
Harald Welte 7861ebac84 Add README file to libosmo-abis repository
Change-Id: I76ced414b22637792389fcf79ae6c7159502259b
2017-03-16 15:36:35 +01:00
Philipp Maier 027e119363 lapd: log pointer addresses
Add pointer address output to the sap alloc/free functions in
order to track the objects later in the debug output (we have three
of them)

Change-Id: I9b961d5e36967cfd953551b24696849541257a1c
2017-03-15 13:00:24 +00:00
Philipp Maier d75bac40d1 lapd: Reduce N200 (SABM retransmission count)
N200, which controls the maxium number of LAPD retransmissions,
is set to 300. This will cause a long waiting time until
LAPD detects a failed link. This commit reduces the retransmission
count to 50 in order to get a faster link re-establishment in
case of link failure. This patch will only affect the ericsson
LAPD profile, all other lapd profiles will not be touched.

Change-Id: I4f56f9d00520adc0c0a4497547762cd054030867
2017-03-14 18:32:33 +01:00
Alexander Couzens beb10ef02a add basic unixsocket support
Allow to connect to a unix socket for communicating with LAPD.

Change-Id: Ia5723b09a5c68a0505829dc732def981e60a907a
2017-03-08 10:14:05 +00:00
Max 8a3be282ab Enable sanitize
Add ./configure option to enable ASAN checks and use it for jenkins
tests. While at it - also move to /bin/sh shebang as we don't use
bashisms anyway.

Change-Id: Ie26e54ab6b850c9adf124a6bc613ec9bc9e8a6e2
2017-02-20 18:24:03 +01:00
Holger Hans Peter Freyther 254745880b misc: Fix build failure/warning when building on alpine linux
alpine linux is using the musl libc and this triggered some minor
compilation issues. Remove unused mISDN include and defines from
the general E1 input handling and address the other warnings and
errors.

/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
 #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
  ^~~~~~~

In file included from input/misdn.c:48:0:
../include/mISDNif.h:286:2: error: unknown type name 'u_int'
  u_int   id;
  ^~~~~

Change-Id: I997e45a456faedb5f370fd02ded300c1e36b791b
2017-01-23 19:49:07 +01:00