Attention is currently required from: fixeria.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-gprs/+/30489
to look at the new patch set (#2).
Change subject: llc: Proper separation of public & private APIs, Introduce llc_prim API
......................................................................
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
---
M configure.ac
M contrib/libosmo-gprs.spec.in
M include/osmocom/gprs/llc/Makefile.am
M include/osmocom/gprs/llc/llc.h
M include/osmocom/gprs/llc/llc_prim.h
A include/osmocom/gprs/llc/llc_private.h
M libosmo-gprs-llc.pc.in
M src/llc/Makefile.am
A src/llc/llc.c
A src/llc/llc_bssgp.c
A src/llc/llc_grr.c
A src/llc/llc_ll.c
A src/llc/llc_llgmm.c
M src/llc/llc_pdu.c
A src/llc/llc_prim.c
M src/llc/llc_xid.c
M src/llc/misc.c
M tests/llc/Makefile.am
A tests/llc/llc_prim_test.c
A tests/llc/llc_prim_test.err
A tests/llc/llc_prim_test.ok
M tests/llc/pdu_codec_test.c
M tests/llc/pdu_codec_test.ok
A tests/llc/xid_codec_test.c
A tests/llc/xid_codec_test.err
A tests/llc/xid_codec_test.ok
M tests/testsuite.at
27 files changed, 2,928 insertions(+), 444 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/89/30489/2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/30489
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I588eb576b2703262f4ab9566ec362920d8390cfd
Gerrit-Change-Number: 30489
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/30489 )
Change subject: llc: Proper separation of public & private APIs, Introduce llc_prim API
......................................................................
Patch Set 1:
(1 comment)
File configure.ac:
https://gerrit.osmocom.org/c/libosmo-gprs/+/30489/comment/29ff40df_7c1281e6
PS1, Line 35: libosmogsm
> When adding a new dependency, don't forget to update: […]
Ack
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/30489
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I588eb576b2703262f4ab9566ec362920d8390cfd
Gerrit-Change-Number: 30489
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 06 Dec 2022 19:04:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/30489 )
Change subject: llc: Proper separation of public & private APIs, Introduce llc_prim API
......................................................................
Patch Set 1:
(1 comment)
File configure.ac:
https://gerrit.osmocom.org/c/libosmo-gprs/+/30489/comment/ef965efa_e8c01597
PS1, Line 35: libosmogsm
When adding a new dependency, don't forget to update:
* debian/control and,
* contrib/libosmo-gprs.spec.in.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/30489
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I588eb576b2703262f4ab9566ec362920d8390cfd
Gerrit-Change-Number: 30489
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 06 Dec 2022 18:47:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/30490 )
Change subject: sndcp: Initial libosmo-gprs-sndcp support
......................................................................
sndcp: Initial libosmo-gprs-sndcp support
This commit follows a similar approach to Change-Id
I588eb576b2703262f4ab9566ec362920d8390cfd, this time targeting the SNDCP
layer, creating a new library for it.
This new library depends on headers from libosmo-gprs-llc since the
SNDCP spec takes the interface towards lower interfaces from same
llc_prim. It doesn't really call any API from the libosmo-gprs-llc
library to dispatch the primitive, that's left for the application, so
that it can be reused against other implementations.
Most of the SNDCP data structures and APIs are kept private and used
only internally. The Higher/lower layers are expected to interact with
it through the sndcp_prim API.
This commit also implements some of the code paths of the public API by
means on importing SNDCP code from osmo-sgsn.git
55e3dc8ec82ce0707b4811b8ce984572416de722.
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
SNDCP 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.
Change-Id: Ie05b5d721cf0a6147ed45c1feb75ad829865252b
---
M Makefile.am
M configure.ac
M include/osmocom/gprs/Makefile.am
M include/osmocom/gprs/llc/llc_private.h
A include/osmocom/gprs/sndcp/Makefile.am
A include/osmocom/gprs/sndcp/comp.h
A include/osmocom/gprs/sndcp/dcomp.h
A include/osmocom/gprs/sndcp/pcomp.h
A include/osmocom/gprs/sndcp/slhc.h
A include/osmocom/gprs/sndcp/sndcp.h
A include/osmocom/gprs/sndcp/sndcp_prim.h
A include/osmocom/gprs/sndcp/sndcp_private.h
A include/osmocom/gprs/sndcp/v42bis.h
A include/osmocom/gprs/sndcp/v42bis_private.h
A include/osmocom/gprs/sndcp/xid.h
A libosmo-gprs-sndcp.pc.in
M src/Makefile.am
A src/sndcp/Makefile.am
A src/sndcp/misc.c
A src/sndcp/slhc.c
A src/sndcp/sndcp.c
A src/sndcp/sndcp_comp.c
A src/sndcp/sndcp_dcomp.c
A src/sndcp/sndcp_pcomp.c
A src/sndcp/sndcp_prim.c
A src/sndcp/sndcp_xid.c
A src/sndcp/v42bis.c
M tests/Makefile.am
A tests/sndcp/Makefile.am
A tests/sndcp/slhc_test.c
A tests/sndcp/slhc_test.ok
A tests/sndcp/sndcp_prim_test.c
A tests/sndcp/sndcp_prim_test.err
A tests/sndcp/sndcp_prim_test.ok
A tests/sndcp/sndcp_xid_test.c
A tests/sndcp/sndcp_xid_test.ok
M tests/testsuite.at
37 files changed, 7,956 insertions(+), 9 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/90/30490/1
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/30490
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: Ie05b5d721cf0a6147ed45c1feb75ad829865252b
Gerrit-Change-Number: 30490
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange