9
0
Fork 0
Commit Graph

6294 Commits

Author SHA1 Message Date
Oliver Smith 8c1a5dfbff configure.ac: migrate from python2 to python3
VTY and CTRL tests pass fine with python3. Drop the python2 requirement,
so we can use debian 12 in CI. Some of the files in openbsc/contrib
probably still need python2, but since this is a legacy project we
probably don't care.

Related: OS#5950
Change-Id: I052c59dcc21b8e1dd4a3460cf8af9ccbeed6de5b
2023-07-17 16:25:22 +02:00
Vadim Yanitskiy 6ec3fdf5be copyright: fix typo: sysmocom s/s.m.f.c./s.f.m.c./ GmbH
Change-Id: I2a043da522dffbc976ba7c086545142cd0a1f474
2023-05-18 18:49:13 +07:00
Oliver Smith 8b29e1d994 debian: set compat level to 10
Related: OS#5958
Change-Id: If42ed8736658d23c99fdd8cbbe511819b1568cbe
2023-04-25 16:48:20 +02:00
Pau Espin d7db9cca49 mgcp: Call osmo_fd_unregister() before closing and changing bfd->fd
Change-Id: I2227e97b1cffab5ab0138ce95a2523a824ec35f0
2023-03-14 11:46:17 +01:00
Pau Espin 7a7ddf033c mncc_sock.c: Call osmo_fd_unregister() before closing and changing bfd->fd
Change-Id: Ib54a9caaf10293860a2893aab876198b1990045d
2023-03-14 11:45:38 +01:00
Pau Espin ca45ba5a36 pcu_sock.c: Call osmo_fd_unregister() before closing and changing bfd->fd
Change-Id: I462eea5c44cbffa7fa47121c85fb6ef55394953d
2023-03-14 11:28:13 +01:00
Oliver Smith cd4916c87f manuals: set OSMO_REPOSITORY
Fix uploading manuals to the wrong directory.

Related: OS#5902
Change-Id: I44f138c4102ea74f8e88350e130a9303203d6440
2023-03-07 14:22:59 +01:00
Oliver Smith 25a1014755 contrib/jenkins.sh: build without osmo-build.sh
Build without this script, as it is being removed from osmo-ci.git in
favor of using ccache. See Id94d6126b476077d57839e4a884621b8c034f0c6
for reasoning.

Related: OS#5848
Change-Id: Ib3272feec76b30412ca60dec204255b64e33831b
2023-01-18 10:35:58 +01:00
Pau Espin 21cebdfa29 Bump version: 1.4.1.3-6d02b → 1.4.2
Change-Id: Ie446412864b497b50497c4121078600def1fc146
2022-06-29 12:47:48 +02:00
Harald Welte 6d02b5cd89 update git URLs (git -> https; gitea)
Change-Id: I541e4d244677b2b7a2004237fee2f1f3cd13bc6c
2022-06-18 14:06:50 +02:00
Harald Welte 5362e2cb78 update git repository URLs (git->https; gitea)
Change-Id: I90a948deb27d126220838810f36b86a9a60933c8
2022-06-17 23:00:56 +02:00
Vadim Yanitskiy 7baef66a61 libbsc: fix potential null-dereference in abis_nm_perform_test()
Change-Id: I93d816a20ba208e9fd32a1fc172a78ccd326e1ba
Related: OS#5450
2022-02-11 16:40:48 +06:00
Pau Espin 83fbbeb56c Bump version: 1.4.0.6-68740 → 1.4.1
Change-Id: I83c4ee3981e445ec83e9439adeb8a48355ce8a06
2021-11-16 18:35:09 +01:00
Oliver Smith 68740856d5 debian/control: remove dh-systemd build-depend
Related: OS#5223
Change-Id: Ieb8669a9a43ea1acc6b2d8d2e363f2466c51697a
2021-09-01 16:07:05 +02:00
Harald Welte 1d6f84a0f1 add README.md to indicate what this repo is about
Change-Id: I0544a2d8016d1d5a2d264dd9c7662fd78f6a49d6
2021-03-22 10:12:56 +00:00
Pau Espin a1c1a313e5 tests: Replace deprecated API log_set_print_filename
Change-Id: I2bd75313daab58704625245af2dd39d88ee42872
2021-02-22 11:25:21 +01:00
Pau Espin 78eba7a569 gitignore: Ignore configure~ file
Change-Id: Ie2ec89307ca941e52cb898ce045e423c44f32658
2021-02-22 11:25:21 +01:00
Pau Espin 373bc13909 tests: Explicitly drop category from log
Let's disable category here since we don't care about its formatting here.

In any case, every test relying on logging output validation should
always explicitly state the config to avoid issues in the future if
default values change.

Change-Id: I2697ec547468019a544b66daf9dbb58aa8d9772b
Related: OS#5034
2021-02-22 11:25:13 +01:00
Oliver Smith 73790ba26b contrib/jenkins: don't build osmo-gsm-manuals
Related: OS#4912
Change-Id: Idb3b05412b99484f7f7de91ee96c69bfb4e3d511
2021-01-13 13:09:09 +01:00
Pau Espin Pedrol 2cdf1c37a9 Bump version: 1.3.3.4-e5e69 → 1.4.0
Change-Id: I80698b962666b94310a84306149d67ae09153c8e
2020-12-10 17:07:15 +01:00
Harald Welte e5e69dc73e Add very clear obsolescence / unmaintained warnings
* add messages at start-up and to the VTY
* users must explicitly confirm they want to run osmo-nitb

Change-Id: I5d5c0ff386dbc2e7b7dd02d6c33d1f9fec70707b
2020-12-10 11:17:14 +01:00
Pau Espin 69ab2584e6 osmo-nitb: generate coredump and exit upon SIGABRT received
Previous code relied on abort() switching sigaction to SIG_FDL +
retriggering SIGABRT in case the signal handler returns, which would
then generate the coredump + terminate the process.
However, if a SIGABRT is received from somewhere else (kill -SIGABRT),
then the process would print the talloc report and continue running,
which is not desired.

Change-Id: I3371783e04c7bce12d11d6f9cc7021bf290489ea
Fixes: OS#4865
2020-11-25 18:58:57 +01:00
Pau Espin 5473322510 bsc-nat: generate coredump and exit upon SIGABRT received
Previous code relied on abort() switching sigaction to SIG_FDL +
retriggering SIGABRT in case the signal handler returns, which would
then generate the coredump + terminate the process.
However, if a SIGABRT is received from somewhere else (kill -SIGABRT),
then the process would print the talloc report and continue running,
which is not desired.

Change-Id: Ie884be1f3e1d5ead912aafd0a78e1a0a97258ab8
Fixes: OS#4865
2020-11-25 18:57:43 +01:00
Harald Welte 658c0c83fd Migrate from BSC_FD_* to OSMO_FD_*
Change-Id: If45434eb0d7da69feb4001e0ac35f0e297bdeef5
2020-10-18 22:31:58 +02:00
Pau Espin 729083efbd Bump version: 1.3.2.4-4e53b → 1.3.3
Change-Id: I86a0c484aeb4eb0fe8df38d20e7c5aa93f2dc6e1
2020-09-18 11:50:16 +02:00
Pau Espin d471fdafc7 db_test: Disable using color in log output
It's really not used and only adds unneeded variabilities to output.
Older libosmocore versions had a bug where extra color format characters
were printed while newer versions have that fixed.

Fixes: OS#4759
Change-Id: Idce85aa355d334929d8abdf5b99dad0622ecff58
2020-09-18 11:38:33 +02:00
Pau Espin 4e53b2b103 doc: Copy {bsc,bts}.adoc from osmo-gsm-manuals
Those adoc files are only used by osmo-bsc.git and openbsc.git
(osmo-nitb), and the later is deprecated and no longer maintained, which
means new features are only added to BSC. Hence it makes no sense to
keep the doc shared between both. As a result, they will be dropped from
osmo-gsm-manuals.git and we keep an unmodified copy here.

Change-Id: Ic3b4192238be3147f61779845521eae84511fb7e
2020-07-20 13:15:57 +02:00
Vadim Yanitskiy e811ad25ff fix typo in osmo_bts_variant_names: s/omso/osmo/
Change-Id: I4645da18fde48165c846ba714cd03e604aef5ad6
2020-06-02 03:20:04 +07:00
Harald Welte d2550da76f fix compilation with gcc-10
See also: https://alioth-lists.debian.net/pipermail/debian-mobcom-maintainers/Week-of-Mon-20200413/000648.html

Change-Id: I0e9596c3ef26231999c729b5cc408fcaca3790fc
2020-04-20 20:14:01 +02:00
Keith Whyte 5b5b866681 rsl: Send IE MS Power Param during CHAN ACT and MS PWR CTRL messages
Backport of osmo-bsc 6b9e0e4e8834428f85f169106ed7b6141f5b185b (1)
and 60d6d530ac6883db4f5c0394541ad654ddfd526c (2)

(1) TS 48.058 sec 8.4.1 CHANNEL ACTIVATION and state:
"""
The BS and MS Power Parameters elements are included to indicate that BS
and/or MS power control is to be performed by BTS. The maximum power to
be used is indicated in the BS and MS Power elements respectively.
"""

Since we always want the BTS to do autonomous MS power control, let's
add it.

(2)Send IE MS Power Param to osmocom BTS models only

Since MS Power Param IE content is operator dependant, it's currently
not known which kind of content non-osmocom BTS support/allow, so let's
avod possibily breaking those BTS until each BTS has been checked
separately.

Change-Id: Ieb51d5f2202ebd2861d3c33f2b5598e6b29d78eb
2020-03-27 04:08:30 +01:00
Pau Espin 3f457a3b79 Bump version: 1.3.1 → 1.3.2
Change-Id: I4f7b6c0f18fd1f11e04ae34275645b439d3613fb
2020-01-03 19:12:23 +01:00
Oliver Smith 6e20e884b0 osmoappdesc.py, tests, ipa.py: switch to python 3
Make build and external tests work with python3, so we can drop
the python2 dependency.

This should be merged shortly after osmo-python-tests was migrated to
python3, and the jenkins build slaves were (automatically) updated to
have the new osmo-python-tests installed.

Related: OS#2819
Depends: osmo-python-tests I3ffc3519bf6c22536a49dad7a966188ddad351a7
Change-Id: Id7d006f892198bb8a7c0d4a8a8ea00b8d0e62df4
2019-12-12 09:47:45 +00:00
Harald Welte 206794e09e manual: Fix copy+paste error
Change-Id: I260946d39f78cf2713dc26860935ab29b83a5532
2019-12-01 14:22:51 +01:00
Pau Espin bb414bf8b1 Bump version: 1.3.0.5-38ea → 1.3.1
Change-Id: I3d06a8f8b7645803b581e8651f20497f80959ec0
2019-08-08 17:32:51 +02:00
Pau Espin 38ea35fc91 debian/control: Match dependency versions against configure.ac
Change-Id: Ib789ee75ab14f2af9869c7259e278942fd5f2c75
2019-08-08 17:28:31 +02:00
Pau Espin 9383e302bd Remove undefined param passed to {logging,osmo_stats}_vty_add_cmds
Since March 15th 2017, libosmocore API logging_vty_add_cmds() had its
parameter removed (c65c5b4ea075ef6cef11fff9442ae0b15c1d6af7). However,
definition in C file doesn't contain "(void)", which means number of
parameters is undefined and thus compiler doesn't complain. Let's remove
parameters from all callers before enforcing "(void)" on it.
API osmo_stats_vty_add_cmds never had a param list but has seem problem
(no "void"), so some users decided to pass a parameter to it.

Change-Id: I7d9d477b983b0d62f01237d90acaa7ce455c3c3d
Related: OS#4138
2019-08-05 16:39:52 +02:00
Pau Espin fec1db95f5 nat: Remove unused func bsc_vty_init()
The function is never called in osmo-bsc-nat, and logging_vty_add_cmds()
is called directly in main().

Change-Id: Ie13cf5dc7f8dfa6fc6c3953dfcacaed7d5feb114
2019-08-05 16:39:09 +02:00
Daniel Willmann 2e5fc99327 manuals: Generate vty/counter documentation for osmo-bscnat
Change-Id: Ice7f15192a57e2c964d07d364732af888972ba0f
Depends: I44bb395009582f5e1399f277e15203553c2dcf78 (docker-playground.git)
Depends: I52c3cb2cdcfb143e71ac2c1aa40bb466e41a0f5c (docker-playground.git)
Related: OS#1700
2019-07-18 20:41:07 +02:00
Daniel Willmann 50b60b33cc manuals: Update osmonitb counter/vty documentation
Change-Id: Ia598124fbb98b3ec8dee606f9d028bb3cc6ff002
Related: OS#1700
2019-07-18 20:29:51 +02:00
Harald Welte e0365fb5b5 Bump version: 1.2.0.20-cf711 → 1.3.0
Change-Id: I4654650ae90463442dc7017ea86b6910732e30bb
2019-07-14 08:44:00 +08:00
Oliver Smith cf711d834b contrib/jenkins.sh: run "make maintainer-clean"
Related: OS#3047
Change-Id: I3324f96ea0ec25b210562e0523b21f1a94db12ec
2019-07-10 12:20:13 +02:00
Pau Espin 9f1ae081d5 bsc-nat: Remove whitespace at the end of CTR descriptions
Change-Id: Ia7ff352de1fb1997066f72e84a7d517c7642853a
2019-06-21 09:33:05 +00:00
Daniel Willmann 6887ffff18 manuals: Add script to regenerate counter/vty documentation
Related: OS#1700
Change-Id: I3e6e6603300d2d7f6221720fa7ce35b3a6aa0b7a
2019-06-19 13:08:56 +02:00
Pau Espin 6a61bc3089 mgcp: Handle CI and X-Osmux param name as case insensitive
RFC3435 states most text (except SDP) must be handled as case
insensitive.

Since we are no longer using strstr(msg->l2h), we need to iterate per
line and call related extract/handle function for that line.

Call to bsc_mgcp_osmux_confirm() is left at the end because it needs to
be called too in case no matching line is found. In that case, it will
release the CID. Similar stuff ocurrs for bsc_mgcp_extract_ci().

Related: OS#4001
Change-Id: Iadc004064a5a237c93009f242cb943ebc4d2d7e6
2019-05-26 09:26:14 +00:00
Keith Whyte e1077526c2 tests: Mute stdout during db_prepare()
libdbi on debian unstable (at least)
outputs: "no table in statement !"
breaking the db_test.

Redirect stdout to /dev/null and restore
after the function completes.

Closes OS#4016

Change-Id: I8227aa8fa44d3237019db52dd0825f827797261b
2019-05-23 10:30:36 +02:00
Pau Espin c44cbbf839 nat: Allocate bsc_nat_parsed on the stack instead of heap
There's no real need to allocate it using talloc. Allocating it on the
stack simplifies the code, avoids mem leaks and makes it faster.

Change-Id: I66c44890952339f15131081e2f629a2824b6d3ba
2019-05-16 17:19:42 +02:00
Pau Espin 7ab9a9eb50 nat: Fix crash (double-free) in forward_sccp_to_msc
In bsc_nat_parse(), parsed is allocated this way:
"""parsed = talloc_zero(msg, struct bsc_nat_parsed);"""
So parsed is a child of msg, and so it's freed when msg is freed.

Since libosmocore c7f52c4c84d6a8898048738c4db9266289c40b45,
osmo_wqueue_enqueue() correctly detects queue full and returns an error,
and then queue_for_msc() calls msgb_free(). Code in osmo-bsc-nat was
probably written before that change in behavior, so that's why probably
the bug was not hit before.

The "if (parsed)" condition is removed since it's actually fine to
talloc_free(NULL).

Related: SYS#4548
Change-Id: I209d3e2d809a67915ec43c874e68f7f746a565f0
2019-05-08 09:42:23 +00:00
Pau Espin 22a569f2ae tests: Fix selection of python version
According to documentation (and personal experience), AM_PATH_PYTHON
selects the highest version of python, no matter if major version is
different, which means if both python2 and 3 are available, 3 will be
chosen an PYTHON will point to "/.../python" which is python3. Apparently,
the macro cannot be easily used to pick highest python2 version.

chosen an PYTHON will point to "/.../python" which is python3. Apparently,
the macro cannot be easily used to pick highest python2 version.

As {vty,ctrl}_test_runner.py require python2 and are incompatible with
python3, let's instead rely on the system having a "python2" binary
available, which is the case in most distros.

cherry-picked from: osmo-bsc.git 7e78681f0f740bd68ed5255b506a1efa08a231b1.

Change-Id: Icc147c8457116ad551d166313f3a79e1c2107a22
2019-05-03 12:15:38 +02:00
Pau Espin 133de7d874 nat: Return error code in queue_for_msc
Might be useful in the future for its callers, since sometimes actions
need to be taken place based on whether enqueuing failed (and msg was
freed).

Change-Id: I9f172f9c9ca9db18f6adcf9267db23c73e9d5bc6
2019-05-02 11:58:49 +02:00
Daniel Willmann 14616d7e58 libmgcp: Parse CI as hex string in verify_ci()
In verify_ci CI needs to be parsed as hex instead of dec number as well.

Fixes: OS#3951
Change-Id: I687b467756fa30cbc454e3583c86159d9abcc7d9
2019-04-30 04:01:47 +02:00