Commit Graph

6 Commits

Author SHA1 Message Date
Vadim Yanitskiy f829a685ad tests/llc: local libs must be first in *_LDADD
Otherwise the linker may pick system-installed libs instead.

Change-Id: If5299340ad72407d01e728febf356a07a1d99681
2023-03-14 14:26:22 +00:00
Vadim Yanitskiy 2ffa413b1e tests: move '-I$(top_srcdir)/include/' to AM_CPPFLAGS
The '-I' is a preprocessor flag, so it should be in AM_CPPFLAGS.

Change-Id: Ic3e3dc75789850d2884d3e757f05ff01e136a5f4
2023-03-13 10:46:01 +00:00
Pau Espin 03287fe673 tests/llc: Test gprs_llc_is_retransmit()
Imported from osmo-sgsn.git 4398ac073b7fc8363882b5f7414470b73d4f446a
./tests/gprs/gprs_test.c.

Change-Id: I4104ee9cc458b7d169ee9761e02369442058675a
2023-01-04 14:54:04 +00:00
Pau Espin 91c87d6907 llc: Proper separation of public & private APIs, Introduce llc_prim API
Most of the existing (and added) data structures are kept private, since
most of those don't really need to be used outside internal code in the
library.

Most if not all the interaction from upper and lower layers  towards LLC
is now done through the new llc_prim pubic interface. This interface is
based on 3GPP TS 44.064 section 7.1.2.

This commit also implements some of the code paths of the public API by
means on importing LLC code from osmo-sgsn.git commit
57b63875c762a784127a13becd1c2549ca6c5454.
The import of code cannot be done in a separate commit since existing code
in osmo-sgsn.git is low quality and has tons of layer violations in all
directions.
Hence, this commit aims at being an initial point of having some working
LLC stack by means of a few unit tests, but by no means aims to be a
total working implementation. Some code paths are missing; bugs are
expected at this point.

Related: OS#5502
Change-Id: I588eb576b2703262f4ab9566ec362920d8390cfd
2022-12-21 04:49:08 +07:00
Pau Espin 1868001ee0 llc: add libosmogsm dependency
libosmogsm is needed for the follow-up patch [1].

Change-Id: Iee45fb87905ea29df02a48003396bde27e6c550c
Related: [1] I588eb576b2703262f4ab9566ec362920d8390cfd
Related: OS#5502
2022-12-21 03:46:08 +07:00
Vadim Yanitskiy 19799d106e tests: reorganize llc/rlcmac specific dirs and files
Change-Id: I8592cea020dbbf64940266cd6af14b14d34be3a6
2022-09-22 01:02:21 +07:00