Common library for all Osmocom projects (libosmocore, libosmogsm, libosmovty, libosmogb, libosmosim, libosmousb, ...) https://osmocom.org/projects/libosmocore
Go to file
Neels Hofmeyr 1c24962946 sockaddr_str: add conversion to,from osmo_sockaddr
Add functions to pass struct osmo_sockaddr to the
osmo_sockaddr_str_{to,from}* API directly.

So far the interface to osmo_sockaddr_str_ is:

  osmo_sockaddr_str_from_sockaddr(&my_sa_str, &my_osa->u.sas);

I'm working a lot with osmo_sockaddr at the moment, and the cumulated
time of forgetting to add 'u.sas' and having another compilation cycle
because of those is justifying this additional API.

Change-Id: I0df84b4bb8cb5d8434b735fa3a38e7f95be43e91
2024-03-28 03:42:07 +01:00
.github Add funding link to github mirror 2024-03-23 10:28:14 +01:00
contrib Bump version: 1.8.0.252-13c29 → 1.9.0 2023-09-12 13:15:54 +02:00
debian osmo_io_uring: Run check of tests/osmo_io with io_uring also 2024-03-20 12:11:08 +01:00
doc merge_doc.xsl: move to osmo-gsm-manuals.git 2018-11-12 14:07:05 +01:00
include sockaddr_str: add conversion to,from osmo_sockaddr 2024-03-28 03:42:07 +01:00
m4 Add code coverage support 2019-11-30 02:17:23 +00:00
src sockaddr_str: add conversion to,from osmo_sockaddr 2024-03-28 03:42:07 +01:00
tapset support for stats static userspace probes via systemtap 2021-02-22 09:58:00 +01:00
tests osmo_io_uring: Run check of tests/osmo_io with io_uring also 2024-03-20 12:11:08 +01:00
utils utils/conv_codes_gsm.py: fix inconsistent formatting 2024-01-31 21:44:49 +07:00
.checkpatch.conf libosmogsm: Add support for TUAK authentication algorithm 2023-06-02 10:44:05 +02:00
.gitignore .gitignore: add include/osmocom/core/socket_compat.h 2023-09-04 17:47:08 +07:00
.gitreview add .gitreview 2016-05-19 06:39:13 +00:00
.mailmap Add .mailmap file for mapping mail addresses in shortlog 2016-08-08 13:12:17 +02:00
COPYING add GPL to project source 2010-02-21 09:21:30 +01:00
Doxyfile.codec.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.coding.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.core.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.ctrl.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.gb.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.gsm.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.isdn.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Doxyfile.sim.in doxygen: also generate documentation for libosmo{sim,usb} 2023-02-27 11:14:40 +00:00
Doxyfile.usb.in doxygen: also generate documentation for libosmo{sim,usb} 2023-02-27 11:14:40 +00:00
Doxyfile.vty.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
Makefile.am doxygen: also generate documentation for libosmo{sim,usb} 2023-02-27 11:14:40 +00:00
README.md update git URLs (git -> https; gitea) 2022-06-17 23:20:26 +02:00
TODO-RELEASE sockaddr_str: add conversion to,from osmo_sockaddr 2024-03-28 03:42:07 +01:00
configure.ac osmo_io_uring: Run check of tests/osmo_io with io_uring also 2024-03-20 12:11:08 +01:00
git-version-gen add git-version-gen magic to automatically generate package version 2010-03-23 00:30:19 +08:00
libosmocodec.pc.in clean-up pkg-config files: Make use of "Requires" as documented 2022-03-24 14:57:22 +00:00
libosmocoding.pc.in clean-up pkg-config files: Make use of "Requires" as documented 2022-03-24 14:57:22 +00:00
libosmocore.pc.in configure --enable-libmnl: Add libmnl to libosmocore.pc.in Requires 2023-01-25 17:12:07 +01:00
libosmoctrl.pc.in clean-up pkg-config files: Make use of "Requires" as documented 2022-03-24 14:57:22 +00:00
libosmogb.pc.in libosmogb.pc.in: Fix missing dependency on libosmogsm 2023-02-20 12:21:30 +01:00
libosmogsm.pc.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
libosmoisdn.pc.in create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00
libosmosim.pc.in clean-up pkg-config files: Make use of "Requires" as documented 2022-03-24 14:57:22 +00:00
libosmousb.pc.in clean-up pkg-config files: Make use of "Requires" as documented 2022-03-24 14:57:22 +00:00
libosmovty.pc.in libosmo{gb,vty}.pc.in: Add talloc to 'Requires' 2022-03-25 09:45:42 +00:00
osmo-release.mk Fixup severe build performance issues 2017-10-04 16:26:37 +02:00
osmo-release.sh osmo-release.sh: make it a bit more user friendly 2024-01-28 18:02:17 +07:00

README.md

libosmocore - set of Osmocom core libraries

This repository contains a set of C-language libraries that form the core infrastructure of many Osmocom Open Source Mobile Communications projects.

Historically, a lot of this code was developed as part of the OpenBSC project, but which are of a more generic nature and thus useful to (at least) other programs that we develop in the sphere of Free Software / Open Source mobile communications.

There is no clear scope of it. We simply move all shared code between the various Osmocom projects in this library to avoid code duplication.

The libosmocore.git repository build multiple libraries:

  • libosmocore contains some general-purpose functions like select-loop abstraction, message buffers, timers, linked lists
  • libosmovty contains routines related to the interactive command-line interface called VTY
  • libosmogsm contains definitions and helper code related to GSM protocols
  • libosmoctrl contains a shared implementation of the Osmocom control interface
  • libosmogb contains an implementation of the Gb interface with its NS/BSSGP protocols
  • libosmocodec contains an implementation of GSM voice codecs
  • libosmocoding contains an implementation of GSM channel coding
  • libosmosim contains infrastructure to interface SIM/UICC/USIM cards

Homepage

The official homepage of the project is https://osmocom.org/projects/libosmocore/wiki/Libosmocore

GIT Repository

You can clone from the official libosmocore.git repository using

git clone https://gitea.osmocom.org/osmocom/libosmocore

There is a web interface at https://gitea.osmocom.org/osmocom/libosmocore

Documentation

Doxygen-generated API documentation is generated during the build process, but also available online for each of the sub-libraries at https://ftp.osmocom.org/api/latest/libosmocore/

Mailing List

Discussions related to libosmocore are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.

Please observe the Osmocom Mailing List Rules when posting.

Contributing

Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards

We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details

The current patch queue for libosmocore can be seen at https://gerrit.osmocom.org/#/q/project:libosmocore+status:open