Commit Graph

43 Commits

Author SHA1 Message Date
Vadim Yanitskiy 2639b78795 Initial libosmo-gprs-llc library skeleton
Change-Id: Ia537acc6f4e6ab576dc7959d427b80f62c474296
2022-09-02 00:58:05 +07:00
Vadim Yanitskiy 4e50861ea0 rlcmac/ts_44_018: add missing M_PADDING_BITS to SI_13_t
According to table 10.5.2.37b.1, SI 13 Rest Octets IE does contain
spare padding.  Adding M_PADDING_BITS fixes decoder warnings about
unhandled remaining bits.

Change-Id: I44fb7e2a60da022ee99f1a6cd4f2635bef2bfe1e
2022-08-24 21:15:56 +07:00
Vadim Yanitskiy 74ec6d9cb6 rlcmac: add osmo_gprs_rlcmac_decode_si13ro()
Change-Id: Ic8446509ef474b8496e5557aab3d2a9e94e11897
2022-08-24 21:15:56 +07:00
Vadim Yanitskiy 4a04f1d5ab rlcmac: split ts_24_008.c out of ts_44_060.c
Change-Id: Idedf52423fef18b929e8096fbe4e130b5a6c7d2c
2022-08-24 21:15:53 +07:00
Vadim Yanitskiy 931b64ee79 rlcmac: split gprs_rlcmac.c onto ts_44_{060,018}.c
Change-Id: I2b941f06a70a25e92ba3fd2638f87360a5aa5435
2022-08-24 21:03:51 +07:00
Vadim Yanitskiy 8e3f0fd84a rlcmac: make logging category configurable
Change-Id: Icfef6de126304da81120f1d7b212992ead3409aa
2022-08-24 20:56:17 +07:00
Vadim Yanitskiy 1014ac4b18 libosmo-{csn1,gprs-rlcmac}.pc.in: add missing Requires
Change-Id: I673a51fbf8ee339b20baca4998ef79e96170f21e
2022-08-24 20:32:40 +07:00
Vadim Yanitskiy 5e93c7d048 Add .checkpatch.conf with project specific linter config
Change-Id: Ifc1de9ca7ec792029d271fde40976a2420a0df54
2022-08-24 06:59:48 +07:00
Vadim Yanitskiy 6f5f26d4f1 rlcmac: fix using incomplete type 'struct value_string'
Change-Id: I6f261c0e57a8d341f6e613a2845a6f2cb52d3830
2022-08-22 20:57:01 +07:00
Vadim Yanitskiy c831aa477a csn1: add CSN_DESCR_EXTERN for extern declarations
Change-Id: Ieb721c97c8e9acee5057bb04be73f27b2871687b
2022-08-22 20:56:57 +07:00
Vadim Yanitskiy 8f7941e5e5 csn1: cosmetic: coding style improvements for #defines
Change-Id: Ia00809aa95b91006149d62abbeda9493b5a64728
2022-08-22 06:00:47 +07:00
Vadim Yanitskiy 56a2d28f59 csn1: #include <stddef.h> in csn1.h for offsetof()
Do not require the API user to include <stddef.h>:

  note: 'offsetof' is defined in header '<stddef.h>';
        did you forget to '#include <stddef.h>'?

Change-Id: I2a144c9967b90d78d95db103eebce83822d8c64d
2022-08-22 06:00:28 +07:00
Vadim Yanitskiy 52566c837a contrib/libosmo-gprs.spec.in: properly define RPM packages
Co-Authored-By: Oliver Smith <osmith@sysmocom.de>
Change-Id: I9be45c43ba3e342e1dba4b60561880c00841f549
2022-08-18 09:16:18 +00:00
Vadim Yanitskiy 3653ef2d50 configure: generate libosmo-gprs.spec from libosmo-gprs.spec.in
Change-Id: Ie15c136d9f1919da0217b17d1afa9268f7ceaab1
2022-08-18 09:16:18 +00:00
Vadim Yanitskiy 5715dd5d7c configure.ac: do require unused dlopen
Change-Id: Iaf9729156ace5f8dc9134094ab3c0a185c7184d5
2022-08-18 08:36:31 +00:00
Vadim Yanitskiy e679faad68 debian: clarify license/copyright for CSN.1 codec by ST-Ericsson
Change-Id: Ia76edccdfc14b06297fe7a306bc19ca52c7db3bd
2022-08-18 08:33:40 +00:00
Vadim Yanitskiy 147c95f09f tests/testsuite.at: remove $OSMO_QEMU, it's not used
Change-Id: If7332b347c0f08252b130ca7f6e7ec4fe6d78b59
2022-08-16 17:40:14 +00:00
Vadim Yanitskiy fd63d50bb0 tests/rlcmac: fix incorrect RLCMACTest.{ok,err} paths in EXTRA_DIST
Change-Id: I175bd6494e2a7a6f6977388d760e790b7dd2c1ae
2022-08-16 17:39:42 +00:00
Vadim Yanitskiy 11cbba9d9d update git URLs (git -> https; gitea)
Change-Id: Icb87ee511ceb9e65d7a801eeb8d4314b66e9f20a
2022-08-10 19:35:26 +07:00
Vadim Yanitskiy 4e1fbdd74e debian/compat: bump debhelper compatibility level: 9 -> 10
Change-Id: Ia3c8c4a61615c70c791dd01d02a16341e78dfb33
2022-08-10 02:58:59 +07:00
Vadim Yanitskiy e5e85388fb debian/control: fix missing/misplaced commas in dependencies
Change-Id: I4bf3d90bb57638e01c165c35c3d48c180f01bb68
2022-08-10 02:58:59 +07:00
Vadim Yanitskiy d8cd59014e debian: fix empty changelog: generate using Debian's dch tool
Otherwise debuild would refuse to build packages.

Change-Id: I70b84f3ae080ab9712e83732a103340d774038a7
2022-08-10 02:58:59 +07:00
Vadim Yanitskiy 7046aea353 gitignore: ignore build products of dpkg-buildpackage
Change-Id: I816533cd1361aa22e8d608fb336a69c7927b4901
2022-08-10 02:58:59 +07:00
Vadim Yanitskiy 96a7e42977 Makefile.am: add 'debian' to EXTRA_DIST
Change-Id: Idbadc505b4149ea16f86cb4afcf6c9d291a8524c
2022-08-07 19:33:03 +07:00
Vadim Yanitskiy ac4e2d54d7 debian: fix a typo in 'rules': s/csn10/csn1-0/
Change-Id: Ic28ed41f076b460e3f89d0754c1c70ff239642f8
2022-08-07 19:22:26 +07:00
Vadim Yanitskiy a1751f7b17 debian: add initial package manifest
Change-Id: I253d92b3a1820d8e33ed67e73a43c90351158337
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy ddfa936889 contrib: add jenkins.sh and libosmo-gprs.spec.in
Change-Id: I5b97df8dcd9e1f43d5f569f27d885e24f4ad7d0c
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy ee498834d0 README.md: add a brief overview of the libraries we provide
Change-Id: I7db0d95dc368e7ed21b05a89a9426f98e49a3595
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 03c0a14c7a tests: adopt RLC/MAC tests from osmo-pcu.git
Change-Id: I8cb5364b7311e004c2afc9438cbfac8d43c86cf7
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 00498acb16 rlcmac: add -export-symbols-regex '^osmo_' to LDFLAGS
Change-Id: I17c0f1d7b7f3ec07eb880e4db46e316a5753edd3
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 2b4c0972b8 rlcmac: expose [osmo_gprs_rlcmac_]egprs_pkt_ch_req_type_names[]
Change-Id: Ieb8046b16e1b992dc20055539988af6c3a9a7a4e
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 2532d04f17 rlcmac: properly expose osmo_gprs_rlcmac_encode_ms_ra_cap()
Change-Id: Ib5660f3a384ae8eea976197ad7b7135dbae180e5
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 6e7618e575 rlcmac: prefix enc/dec function names with 'osmo_gprs_'
Change-Id: Ibd8038582699f1f8e7b159898fd431208f13dd9b
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 4c5163c6f1 rlcmac: do not expose internal CSN.1 callbacks and dissectors
Change-Id: Ida9d16b41a2241d72cf5650ad4757ca3ca1da5f3
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 812b95e444 rlcmac: do not expose PSI1_AdditionsR6_t and EGPRS_PacketChannelRequest_t
Change-Id: I1917148ae384b0995c79107a688b02b4997b0c76
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 2f6b575c75 rlcmac: use #pragma once in gprs_rlcmac.h
Change-Id: I2a6f53e62aa09da8daa147499901008bf2d4b881
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy ed06cbbfbc libosmo-gprs-rlcmac: check-in PDU definitions from osmo-pcu.git
This commit introduces a new library called 'libosmo-gprs-rlcmac',
which is going to be used by osmo-pcu and osmocom-bb for parsing
and generation of PDUs defined using CSN.1 (see 3GPP TS 24.007).

The actual RLC/MAC definitions are imported from osmo-pcu.git [1].

Change-Id: Ic322543e6d9a870beec83fa1166352e4a51366e7
Related: [1] osmo-pcu.git 0eaa3d379828517b5478d0202a26f6f3eb561a4e
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy eb2ab031d4 csn1: add -export-symbols-regex '^osmo_' to LDFLAGS
Expose only those symbols which contain perfis 'osmo_'.

Change-Id: I9d084e9a2660ab14801f9ce418748b7580e9e131
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy d833ff4574 csn1: csnStreamInit() -> osmo_csn1_stream_init()
Change-Id: I8b1486b99e4beb3161ed515889e967556a29cbc1
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 5ff3db84d3 csn1: csnStream{En,De}coder() -> osmo_csn1_stream_{en,de}code()
Change-Id: Iba7b40daf37be8759bb652e3c34653df1ed92d9e
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy a92f3b946a csn1: use #pragma once in csn1.h
Change-Id: Ieb739a1166d297336705ec693668c9d49506089c
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 40f95ed7c4 libosmo-csn1: check-in CSN.1 codec from osmo-pcu.git
This commit introduces a new library called 'libosmo-csn1', which
is going to be used by osmo-pcu and osmocom-bb for parsing and
generation of PDUs defined using CSN.1 (see 3GPP TS 24.007).

The actual CSN.1 codec is imported from osmo-pcu.git [1].

Change-Id: Ib195d1e2a53aead4f89c799cef1e5f1be110aad9
Related: [1] osmo-pcu.git 0eaa3d379828517b5478d0202a26f6f3eb561a4e
Depends: libosmocore.git Ie8c0effb764547a0f9cc8c6825e11a6617501e95
2022-08-07 17:51:26 +07:00
Vadim Yanitskiy 9f381ffea8 Initial project skeleton 2022-08-07 17:51:25 +07:00