[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number

2023-11-29 Thread dexter
Attention is currently required from: fixeria.

dexter has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35136?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number
..


Patch Set 2: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35136?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I0b37f01f4c7bb829053231339e39ab734f4c8cbc
Gerrit-Change-Number: 35136
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 09:17:28 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number

2023-11-29 Thread dexter
dexter has submitted this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35136?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number
..

ttcn3-pcu-test/sns: fix PCUIF version number

The current master of OsmoPCU is now using PCUIF version number 12.
However, the configuration file of the the SNS tests still sets it to
11.

Related: OS#6275
Change-Id: I0b37f01f4c7bb829053231339e39ab734f4c8cbc
---
M ttcn3-pcu-test/jenkins-sns.sh
M ttcn3-pcu-test/sns/PCU_Tests.cfg
2 files changed, 16 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  dexter: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve




diff --git a/ttcn3-pcu-test/jenkins-sns.sh b/ttcn3-pcu-test/jenkins-sns.sh
index 50027d3..d63229b 100755
--- a/ttcn3-pcu-test/jenkins-sns.sh
+++ b/ttcn3-pcu-test/jenkins-sns.sh
@@ -11,7 +11,7 @@

 set_pcuif_version() {
if image_suffix_is_2023q1; then
-   sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 10/g' $1
+   sed -i 's/PCUIF_Types.mp_pcuif_version := 
12/PCUIF_Types.mp_pcuif_version := 10/g' $1
fi
 }

diff --git a/ttcn3-pcu-test/sns/PCU_Tests.cfg b/ttcn3-pcu-test/sns/PCU_Tests.cfg
index d62f52d..2b11462 100644
--- a/ttcn3-pcu-test/sns/PCU_Tests.cfg
+++ b/ttcn3-pcu-test/sns/PCU_Tests.cfg
@@ -59,7 +59,7 @@
}
}
 }
-PCUIF_Types.mp_pcuif_version := 11
+PCUIF_Types.mp_pcuif_version := 12

 [MAIN_CONTROLLER]


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35136?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I0b37f01f4c7bb829053231339e39ab734f4c8cbc
Gerrit-Change-Number: 35136
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


[S] Change in libosmocore[master]: Fix union abis_rsl_chan_nr and abis_rsl_link_id

2023-11-29 Thread jolly
jolly has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email )


Change subject: Fix union abis_rsl_chan_nr and abis_rsl_link_id
..

Fix union abis_rsl_chan_nr and abis_rsl_link_id

All bit fields in a union will overlap in memory, as all elements in a
union do. To prevent the bit fields from overlapping, wrap them into a
packed structure.

Change-Id: I5ef5aa62be8310da4ebe9ea73ebbedcbcc2ba49c
---
M include/osmocom/gsm/protocol/gsm_08_58.h
1 file changed, 19 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/56/35156/1

diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h 
b/include/osmocom/gsm/protocol/gsm_08_58.h
index 0a44db9..e8758df 100644
--- a/include/osmocom/gsm/protocol/gsm_08_58.h
+++ b/include/osmocom/gsm/protocol/gsm_08_58.h
@@ -29,6 +29,7 @@

 /* Channel Number 9.3.1 */
 union abis_rsl_chan_nr {
+   struct {
 #if OSMO_IS_BIG_ENDIAN
uint8_t cbits:5,
tn:3;
@@ -36,7 +37,8 @@
uint8_t tn:3,
cbits:5;
 #endif
-   uint8_t chan_nr;
+   } __attribute__ ((packed));
+   uint8_t chan_nr;
 } __attribute__ ((packed));
 #define ABIS_RSL_CHAN_NR_CBITS_Bm_ACCHs0x01
 #define ABIS_RSL_CHAN_NR_CBITS_Lm_ACCHs(ss)(0x02 + (ss))
@@ -55,6 +57,7 @@

 /* Link Identifier 9.3.2 */
 union abis_rsl_link_id {
+   struct {
 #if OSMO_IS_BIG_ENDIAN
uint8_t cbits:2,
na:1,
@@ -66,7 +69,8 @@
na:1,
cbits:2;
 #endif
-   uint8_t link_id;
+   } __attribute__ ((packed));
+   uint8_t link_id;
 } __attribute__ ((packed));
 #define ABIS_RSL_LINK_ID_CBITS_FACCH_SDCCH 0x00
 #define ABIS_RSL_LINK_ID_CBITS_SACCH 0x01

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5ef5aa62be8310da4ebe9ea73ebbedcbcc2ba49c
Gerrit-Change-Number: 35156
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-MessageType: newchange


[S] Change in libosmocore[master]: Fix union abis_rsl_chan_nr and abis_rsl_link_id

2023-11-29 Thread laforge
Attention is currently required from: jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email )

Change subject: Fix union abis_rsl_chan_nr and abis_rsl_link_id
..


Patch Set 1: Code-Review+1

(1 comment)

Patchset:

PS1:
this is *very* interesting.  I would have assumed that an union of two uint8_t 
is again just maps the uint8_t together - and not the individual bits in the 
bit-fields.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5ef5aa62be8310da4ebe9ea73ebbedcbcc2ba49c
Gerrit-Change-Number: 35156
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Wed, 29 Nov 2023 09:44:14 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )


Change subject: Update git URLs
..

Update git URLs

git.osmocom.org has been deprecated, use gerrit or gitea urls instead.

Related: 
https://osmocom.org/projects/cellular-infrastructure/wiki/Git_infrastructure
Related: OS#6251
Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
---
M README.md
M contrib/jenkins-build-common.sh
M contrib/jenkins-build-manuals.sh
M contrib/jenkins-build-osmo-bts.sh
M doc/manuals/chapters/ansible.adoc
M doc/manuals/chapters/docker.adoc
M doc/manuals/osmo-gsm-tester-manual-docinfo.xml
M src/osmo_gsm_tester/obj/osmo_vty.py
M sysmocom/ttcn3/README.txt
9 files changed, 32 insertions(+), 16 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester 
refs/changes/57/35157/1

diff --git a/README.md b/README.md
index 3394969..9bc1dcf 100644
--- a/README.md
+++ b/README.md
@@ -16,11 +16,12 @@

 Ansible scripts to set up hosts to be used as Osmo-GSM-Tester Main Units or/and
 Slave Units on the above mentioned setup can be found at
-https://git.osmocom.org/osmo-ci/tree/ansible, which actually install sample
-system configuration files from _utils/_ directory in this same repository.
+https://gitea.osmocom.org/osmocom/osmo-ci/src/branch/master/ansible, which
+actually install sample system configuration files from _utils/_ directory in
+this same repository.

 A sample Docker setup is also maintained publicly at
-https://git.osmocom.org/docker-playground/tree/osmo-gsm-tester.
+https://gitea.osmocom.org/osmocom/docker-playground/src/branch/master/osmo-gsm-tester.

 For the complete documentation, please refer to Osmo-GSM-Tester User manual,
 available in sources under _doc/manuals/_ under this same repository, and
diff --git a/contrib/jenkins-build-common.sh b/contrib/jenkins-build-common.sh
index b41fc05..59d0d11 100644
--- a/contrib/jenkins-build-common.sh
+++ b/contrib/jenkins-build-common.sh
@@ -42,7 +42,7 @@
   exit 1
 fi

-git_url="${git_url:-https://git.osmocom.org}";
+git_url="${git_url:-https://gerrit.osmocom.org}";
 prefix="${prefix:-$base/inst-$name}"
 # prefix_real is usually identical with prefix, except when installing to a
 # different $DESTDIR than /, which is the case for example when building
diff --git a/contrib/jenkins-build-manuals.sh b/contrib/jenkins-build-manuals.sh
index 48f7780..cf2a4d8 100755
--- a/contrib/jenkins-build-manuals.sh
+++ b/contrib/jenkins-build-manuals.sh
@@ -15,7 +15,7 @@
 if [ -d "$OSMO_GSM_MANUALS_DIR" ]; then
git -C "$OSMO_GSM_MANUALS_DIR" pull
 else
-   git clone "https://git.osmocom.org/osmo-gsm-manuals"; 
"$OSMO_GSM_MANUALS_DIR"
+   git clone "https://gerrit.osmocom.org/osmo-gsm-manuals"; 
"$OSMO_GSM_MANUALS_DIR"
 fi
 git -C "$OSMO_GSM_MANUALS_DIR" checkout -f HEAD

diff --git a/contrib/jenkins-build-osmo-bts.sh 
b/contrib/jenkins-build-osmo-bts.sh
index 6e9416a..d0b9e02 100755
--- a/contrib/jenkins-build-osmo-bts.sh
+++ b/contrib/jenkins-build-osmo-bts.sh
@@ -4,7 +4,8 @@
 name="osmo-bts"
 . "$(dirname "$0")/jenkins-build-common.sh"

-have_repo octphy-2g-headers
+(git_url=https://gitea.osmocom.org/cellular-infrastructure
+ have_repo octphy-2g-headers)

 build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen --disable-uring
 build_repo libosmo-abis ${SANITIZE_FLAGS} --disable-dahdi
diff --git a/doc/manuals/chapters/ansible.adoc 
b/doc/manuals/chapters/ansible.adoc
index 4c80723..d8970aa 100644
--- a/doc/manuals/chapters/ansible.adoc
+++ b/doc/manuals/chapters/ansible.adoc
@@ -5,8 +5,8 @@
 and tedious, nowadays the Osmocom RnD and Production {app-name} setups are
 installed and maintained using Ansible scripts. The set of ansible scripts is
 available  in Osmocom's git repository
-link:https://git.osmocom.org/osmo-ci/[osmo-ci.git] under 'ansible' 
subdirectory,
-with the rest of ansible scripts to set jenkins slaves, etc.
+link:https://gitea.osmocom.org/osmocom/osmo-ci/[osmo-ci.git] under 'ansible'
+subdirectory, with the rest of ansible scripts to set jenkins slaves, etc.

 Since these set of scripts is mainly aimed at Osmocom's own setup, and debian 
is
 used there, so far only debian hosts are supported officially, though patches 
to
diff --git a/doc/manuals/chapters/docker.adoc b/doc/manuals/chapters/docker.adoc
index bc8ad00..985edc3 100644
--- a/doc/manuals/chapters/docker.adoc
+++ b/doc/manuals/chapters/docker.adoc
@@ -3,8 +3,8 @@

 A sample {app-name} setup based on docker containers and maintained by the
 Osmocom community is available in Osmocom's git repository
-link:https://git.osmocom.org/docker-playground/[docker-playground.git], under
-'osmo-gsm-tester' subdirectory. In there, one can find:
+link:https://gitea.osmocom.org/osmocom/docker-playground/[docker-playground.git],
+under 'osmo-gsm-tester' subdirectory. In there, one can find:

 - A 'Dockerfile' file can be found which builds a docker image which can
 be u

[S] Change in libosmocore[master]: Fix union abis_rsl_chan_nr and abis_rsl_link_id

2023-11-29 Thread fixeria
Attention is currently required from: jolly.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email )

Change subject: Fix union abis_rsl_chan_nr and abis_rsl_link_id
..


Patch Set 1: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5ef5aa62be8310da4ebe9ea73ebbedcbcc2ba49c
Gerrit-Change-Number: 35156
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Wed, 29 Nov 2023 09:50:39 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 1: Verified+1

(1 comment)

Patchset:

PS1:
I've verified that this fixes the url related failures in various 
osmo-gsm-tester jenkins jobs. gerrit verification is known to be broken: 
https://osmocom.org/issues/6149



--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 1
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith 
Gerrit-Comment-Date: Wed, 29 Nov 2023 09:55:06 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
osmith has removed a vote from this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )


Change subject: Update git URLs
..


Removed Verified-1 by Jenkins Builder (102)
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 1
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith 
Gerrit-MessageType: deleteVote


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread dexter
dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )


Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..

ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

Unfortunately we had to revert [1] because it worked for current master
but not for latest. The mistake here was to change the PCUIF version
number in PCU_Tests.cfg to PCUIF v12. This is indeed the correct version
for current master, but latest still uses v11. Also the change we made in
jenkins-sns only affected 2023q1 builds, it does not affect latest. This
is the reason why the previous patch broke latest.

This follow up patch now copies the approach we already successfully use
with the normal ttcn3-pcu-test / ttcn3-pcu-test-latest. (see also
jenkins.sh)

[1] I0b37f01f4c7bb829053231339e39ab734f4c8cbc

Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Related: OS#6275
---
M ttcn3-pcu-test/jenkins-sns.sh
1 file changed, 32 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground 
refs/changes/59/35159/1

diff --git a/ttcn3-pcu-test/jenkins-sns.sh b/ttcn3-pcu-test/jenkins-sns.sh
index 50027d3..06f833e 100755
--- a/ttcn3-pcu-test/jenkins-sns.sh
+++ b/ttcn3-pcu-test/jenkins-sns.sh
@@ -13,6 +13,15 @@
if image_suffix_is_2023q1; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 10/g' $1
fi
+
+   # This changes the PCUIF module parameter of the TTCN3 testsuite when 
the testsuite is
+   # executed for current master. For latest the PCUIF module parameter 
must stay at v.11
+   # since in osmo-pcu-latest PCUIF v.12 is not yet supported. After the 
next release, PCUIF
+   # v.12 will be supported in osmo-pcu-latest as well and this function, 
including the
+   # PCUIF_Types.mp_pcuif_version setting in the configuration files can 
be removed.
+   if image_suffix_is_master; then
+   sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 12/g' $1
+   fi
 }

 mkdir $VOL_BASE_DIR/pcu-tester

--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-MessageType: newchange


[S] Change in docker-playground[master]: Revert "ttcn3-pcu-test/sns: fix PCUIF version number"

2023-11-29 Thread dexter
dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35158?usp=email )


Change subject: Revert "ttcn3-pcu-test/sns: fix PCUIF version number"
..

Revert "ttcn3-pcu-test/sns: fix PCUIF version number"

Unfortunately this patch only fixes ttcn3-pcu-test-sns but it breaks
ttcn3-pcu-test-sns-latest, this means a different solution is needed.

This reverts commit c9820d7b36eb3f75c32d193394da46aad9406cb2.

Change-Id: I101d27ae8ed7449b199e49795a3561436c2532dd
Related: OS#6275
---
M ttcn3-pcu-test/jenkins-sns.sh
M ttcn3-pcu-test/sns/PCU_Tests.cfg
2 files changed, 17 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground 
refs/changes/58/35158/1

diff --git a/ttcn3-pcu-test/jenkins-sns.sh b/ttcn3-pcu-test/jenkins-sns.sh
index d63229b..50027d3 100755
--- a/ttcn3-pcu-test/jenkins-sns.sh
+++ b/ttcn3-pcu-test/jenkins-sns.sh
@@ -11,7 +11,7 @@

 set_pcuif_version() {
if image_suffix_is_2023q1; then
-   sed -i 's/PCUIF_Types.mp_pcuif_version := 
12/PCUIF_Types.mp_pcuif_version := 10/g' $1
+   sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 10/g' $1
fi
 }

diff --git a/ttcn3-pcu-test/sns/PCU_Tests.cfg b/ttcn3-pcu-test/sns/PCU_Tests.cfg
index 2b11462..d62f52d 100644
--- a/ttcn3-pcu-test/sns/PCU_Tests.cfg
+++ b/ttcn3-pcu-test/sns/PCU_Tests.cfg
@@ -59,7 +59,7 @@
}
}
 }
-PCUIF_Types.mp_pcuif_version := 12
+PCUIF_Types.mp_pcuif_version := 11

 [MAIN_CONTROLLER]


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35158?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I101d27ae8ed7449b199e49795a3561436c2532dd
Gerrit-Change-Number: 35158
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-MessageType: newchange


[S] Change in docker-playground[master]: Revert "ttcn3-pcu-test/sns: fix PCUIF version number"

2023-11-29 Thread dexter
dexter has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35158?usp=email )

Change subject: Revert "ttcn3-pcu-test/sns: fix PCUIF version number"
..


Patch Set 1: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35158?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I101d27ae8ed7449b199e49795a3561436c2532dd
Gerrit-Change-Number: 35158
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 10:03:27 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: Revert "ttcn3-pcu-test/sns: fix PCUIF version number"

2023-11-29 Thread dexter
dexter has submitted this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35158?usp=email )

Change subject: Revert "ttcn3-pcu-test/sns: fix PCUIF version number"
..

Revert "ttcn3-pcu-test/sns: fix PCUIF version number"

Unfortunately this patch only fixes ttcn3-pcu-test-sns but it breaks
ttcn3-pcu-test-sns-latest, this means a different solution is needed.

This reverts commit c9820d7b36eb3f75c32d193394da46aad9406cb2.

Change-Id: I101d27ae8ed7449b199e49795a3561436c2532dd
Related: OS#6275
---
M ttcn3-pcu-test/jenkins-sns.sh
M ttcn3-pcu-test/sns/PCU_Tests.cfg
2 files changed, 17 insertions(+), 2 deletions(-)

Approvals:
  dexter: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/ttcn3-pcu-test/jenkins-sns.sh b/ttcn3-pcu-test/jenkins-sns.sh
index d63229b..50027d3 100755
--- a/ttcn3-pcu-test/jenkins-sns.sh
+++ b/ttcn3-pcu-test/jenkins-sns.sh
@@ -11,7 +11,7 @@

 set_pcuif_version() {
if image_suffix_is_2023q1; then
-   sed -i 's/PCUIF_Types.mp_pcuif_version := 
12/PCUIF_Types.mp_pcuif_version := 10/g' $1
+   sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 10/g' $1
fi
 }

diff --git a/ttcn3-pcu-test/sns/PCU_Tests.cfg b/ttcn3-pcu-test/sns/PCU_Tests.cfg
index 2b11462..d62f52d 100644
--- a/ttcn3-pcu-test/sns/PCU_Tests.cfg
+++ b/ttcn3-pcu-test/sns/PCU_Tests.cfg
@@ -59,7 +59,7 @@
}
}
 }
-PCUIF_Types.mp_pcuif_version := 12
+PCUIF_Types.mp_pcuif_version := 11

 [MAIN_CONTROLLER]


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35158?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I101d27ae8ed7449b199e49795a3561436c2532dd
Gerrit-Change-Number: 35158
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-MessageType: merged


[S] Change in osmo-bts[master]: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

2023-11-29 Thread jolly
Attention is currently required from: fixeria, jolly, laforge.

Hello Jenkins Builder, fixeria, laforge,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email

to look at the new patch set (#5).

The following approvals got outdated and were removed:
Code-Review+1 by fixeria, Code-Review+1 by laforge, Verified+1 by Jenkins 
Builder


Change subject: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without 
L3 payload
..

LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

A special flag is used to keep track on the establishment of the data
link. If it is being established (not re-established) without L3
payload, it is rejected by a release request inside BTS.

Related: OS#5971
Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
---
M include/osmo-bts/lchan.h
M src/common/lchan.c
M src/common/rsl.c
3 files changed, 36 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/82/35082/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
Gerrit-Change-Number: 35082
Gerrit-PatchSet: 5
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in libosmocore[master]: Fix union abis_rsl_chan_nr and abis_rsl_link_id

2023-11-29 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email )

Change subject: Fix union abis_rsl_chan_nr and abis_rsl_link_id
..

Fix union abis_rsl_chan_nr and abis_rsl_link_id

All bit fields in a union will overlap in memory, as all elements in a
union do. To prevent the bit fields from overlapping, wrap them into a
packed structure.

Change-Id: I5ef5aa62be8310da4ebe9ea73ebbedcbcc2ba49c
---
M include/osmocom/gsm/protocol/gsm_08_58.h
1 file changed, 19 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved
  laforge: Looks good to me, but someone else must approve




diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h 
b/include/osmocom/gsm/protocol/gsm_08_58.h
index 0a44db9..e8758df 100644
--- a/include/osmocom/gsm/protocol/gsm_08_58.h
+++ b/include/osmocom/gsm/protocol/gsm_08_58.h
@@ -29,6 +29,7 @@

 /* Channel Number 9.3.1 */
 union abis_rsl_chan_nr {
+   struct {
 #if OSMO_IS_BIG_ENDIAN
uint8_t cbits:5,
tn:3;
@@ -36,7 +37,8 @@
uint8_t tn:3,
cbits:5;
 #endif
-   uint8_t chan_nr;
+   } __attribute__ ((packed));
+   uint8_t chan_nr;
 } __attribute__ ((packed));
 #define ABIS_RSL_CHAN_NR_CBITS_Bm_ACCHs0x01
 #define ABIS_RSL_CHAN_NR_CBITS_Lm_ACCHs(ss)(0x02 + (ss))
@@ -55,6 +57,7 @@

 /* Link Identifier 9.3.2 */
 union abis_rsl_link_id {
+   struct {
 #if OSMO_IS_BIG_ENDIAN
uint8_t cbits:2,
na:1,
@@ -66,7 +69,8 @@
na:1,
cbits:2;
 #endif
-   uint8_t link_id;
+   } __attribute__ ((packed));
+   uint8_t link_id;
 } __attribute__ ((packed));
 #define ABIS_RSL_LINK_ID_CBITS_FACCH_SDCCH 0x00
 #define ABIS_RSL_LINK_ID_CBITS_SACCH 0x01

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35156?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5ef5aa62be8310da4ebe9ea73ebbedcbcc2ba49c
Gerrit-Change-Number: 35156
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-MessageType: merged


[M] Change in osmo-bts[master]: Use polling based LAPDm with frame numbers

2023-11-29 Thread laforge
Attention is currently required from: jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/35007?usp=email )

Change subject: Use polling based LAPDm with frame numbers
..


Patch Set 6:

(1 comment)

Patchset:

PS6:
let's wait a bit before merging this to make sure osmo-bts works still while 
using the old timer-based approach, after all the LAPD/LAPDm changes to 
libosmocore/libosmgsm



--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35007?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic6d7902b13cf491daaa8752db78f9875387aeffd
Gerrit-Change-Number: 35007
Gerrit-PatchSet: 6
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Wed, 29 Nov 2023 10:18:14 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[M] Change in osmo-bts[master]: Use polling based LAPDm with frame numbers

2023-11-29 Thread laforge
Attention is currently required from: jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/35007?usp=email )

Change subject: Use polling based LAPDm with frame numbers
..


Patch Set 6: Code-Review-1


--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35007?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic6d7902b13cf491daaa8752db78f9875387aeffd
Gerrit-Change-Number: 35007
Gerrit-PatchSet: 6
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Wed, 29 Nov 2023 10:18:22 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: Add flag to enable RTS bases polling

2023-11-29 Thread jolly
jolly has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )


Change subject: Add flag to enable RTS bases polling
..

Add flag to enable RTS bases polling

RTS based polling in LAPDm code is disabled by default. Make libosmogsm
stay compatible with existing applications that do not use RTS based
polling.

This patch fixes the issue that LAPDM_ENT_F_POLLING_ONLY did enable RTS
based polling too, which breaks existing applications like older
versions of osmo-bts.

Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
---
M include/osmocom/gsm/lapdm.h
M src/gsm/lapdm.c
2 files changed, 23 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/60/35160/1

diff --git a/include/osmocom/gsm/lapdm.h b/include/osmocom/gsm/lapdm.h
index 42ebbce..6812102 100644
--- a/include/osmocom/gsm/lapdm.h
+++ b/include/osmocom/gsm/lapdm.h
@@ -51,6 +51,7 @@
 #define LAPDM_ENT_F_EMPTY_FRAME0x0001
 #define LAPDM_ENT_F_POLLING_ONLY   0x0002
 #define LAPDM_ENT_F_DROP_2ND_REJ   0x0004
+#define LAPDM_ENT_F_RTS0x0008

 /*! a LAPDm Entity */
 struct lapdm_entity {
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index fb892d2..1fc986d 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -363,8 +363,8 @@
if (le->tx_pending || le->flags & LAPDM_ENT_F_POLLING_ONLY) {
struct msgb *old_msg;

-   /* In 'Polling only' mode there can be only one message. */
-   if (le->flags & LAPDM_ENT_F_POLLING_ONLY) {
+   /* In 'RTS' mode there can be only one message. */
+   if (le->flags & LAPDM_ENT_F_RTS) {
/* Overwrite existing message by removing it first. */
if ((old_msg = msgb_dequeue(&dl->dl.tx_queue))) {
msgb_free(old_msg);
@@ -424,8 +424,8 @@
 {
struct msgb *msg;

-   /* Call RTS function of LAPD, to poll next frame. */
-   if (dl->entity->flags & LAPDM_ENT_F_POLLING_ONLY) {
+   /* Call RTS function of LAPD, to queue next frame. */
+   if (dl->entity->flags & LAPDM_ENT_F_RTS) {
struct lapd_msg_ctx lctx;
int rc;

@@ -1635,7 +1635,7 @@
le->flags = flags;

/* Set flags at LAPD. */
-   if (le->flags & LAPDM_ENT_F_POLLING_ONLY)
+   if (le->flags & LAPDM_ENT_F_RTS)
dl_flags |= LAPD_F_RTS;
if (le->flags & LAPDM_ENT_F_DROP_2ND_REJ)
dl_flags |= LAPD_F_DROP_2ND_REJ;

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-MessageType: newchange


[S] Change in libosmocore[master]: Add flag to enable RTS bases polling

2023-11-29 Thread laforge
Attention is currently required from: jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )

Change subject: Add flag to enable RTS bases polling
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:06:57 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: Add flag to enable RTS bases polling

2023-11-29 Thread laforge
Attention is currently required from: fixeria, jolly, pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )

Change subject: Add flag to enable RTS bases polling
..


Patch Set 1:

(1 comment)

Patchset:

PS1:
this fixes a regression in current libosmocore master affecting osmo-bts. We 
should get it merged fast.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: fixeria 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:07:37 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )


Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..

pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

When sending raw APDUs, we access the scc (SimCardCommands) object via
the scc member in the lchan object. Unfortunately self.lchan will not be
populated when the rs (RuntimeState) object is missing. This is in
particular the case when no profile could be detected for the card,
which is a common situation when we boostrap an unprovisioned card.

So let's access the scc object through the card object. This is also
more logical since when we send raw APDUs we work below the level of
logical channels.

Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
---
M pySim-shell.py
1 file changed, 25 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/61/35161/1

diff --git a/pySim-shell.py b/pySim-shell.py
index 4e08eb7..95192ce 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -240,7 +240,12 @@
 DANGEROUS: pySim-shell will not know any card state changes, and
 not continue to work as expected if you e.g. select a different
 file."""
-data, sw = self.lchan.scc._tp.send_apdu(opts.APDU)
+
+# When sending raw APDUs we access the scc object through _scc member 
of the card object. It should also be
+# noted that the apdu command plays an exceptional role since it is 
the only card accessing command that
+# can be executed without the presence of a runtime state (self.rs) 
object. However, this also means that
+# self.lchan is also not present (see method equip).
+data, sw = self.card._scc._tp.send_apdu(opts.APDU)
 if data:
 self.poutput("SW: %s, RESP: %s" % (sw, data))
 else:

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-MessageType: newchange


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
Hello Jenkins Builder,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/pysim/+/35161?usp=email

to look at the new patch set (#2).


Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..

pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

When sending raw APDUs, we access the scc (SimCardCommands) object via
the scc member in the lchan object. Unfortunately self.lchan will not be
populated when the rs (RuntimeState) object is missing. This is in
particular the case when no profile could be detected for the card,
which is a common situation when we boostrap an unprovisioned card.

So let's access the scc object through the card object. This is also
more logical since when we send raw APDUs we work below the level of
logical channels.

Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Related: OS#6278
---
M pySim-shell.py
1 file changed, 26 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/61/35161/2
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset


[S] Change in osmo-pcu[master]: gprs_rlcmac_sched: rewrite logic around idle block skip

2023-11-29 Thread pespin
Attention is currently required from: dexter, fixeria.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/35151?usp=email )

Change subject: gprs_rlcmac_sched: rewrite logic around idle block skip
..


Patch Set 2: -Code-Review

(1 comment)

File src/gprs_rlcmac_sched.cpp:

https://gerrit.osmocom.org/c/osmo-pcu/+/35151/comment/37d05e16_c8ed98a1
PS1, Line 486:   * way we help BTS energy saving (on TRX!=C0) 
by sending nothing
> Oh, I overlooked the `skip_idle && trx != 0` part in the old code (left 
> side). […]
@vyanits...@sysmocom.de bear in mind the "skip_idle && trx != 0" was only 
applied inside the #ifdef DIRECT_PHY, so it was only really applied for 
sysmobts,lc15,oc2g. And that was done in order to make it send stuff on C0 
because those osmo-bts lowerlayers are not filling the block otherwise. For 
trx!=0 it's fine sending empty block to those osmo-bts flavours, because it's 
fine if they end up transmitting nothing on those TRX.

I realize now though, that when proposing the cleanup in this patch, I assumed 
those were 1 TRX only, but lc15 has several of them right?
With the current version of the patch, it will still transmit dummy blocks on 
trx!=0, and that's not what we want. We want to transmit nothing on trx!=0.

So the could should be left as it was and this patch dropped? Maybe we can 
reuse this patch to rename bts->gen_idle_blocks to be "gen_idle_block_C0".



--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/35151?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Iadb62748b18605bf158169b317f880352bc0a5a6
Gerrit-Change-Number: 35151
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:32:47 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria 
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: dexter 
Gerrit-MessageType: comment


[L] Change in libosmocore[master]: Add a GSM RLP decoder and encoder

2023-11-29 Thread pespin
Attention is currently required from: laforge, osmith.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35123?usp=email )

Change subject: Add a GSM RLP decoder and encoder
..


Patch Set 8: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35123?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2d9bd8eb4f0cd0f72c436996767b199429596917
Gerrit-Change-Number: 35123
Gerrit-PatchSet: 8
Gerrit-Owner: laforge 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: laforge 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:34:17 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in libosmocore[master]: rlp: Add support for 576bit RLP frames

2023-11-29 Thread pespin
Attention is currently required from: laforge, osmith.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35134?usp=email )

Change subject: rlp: Add support for 576bit RLP frames
..


Patch Set 4: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35134?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Idfdcabb19fe8733fb9c5ee76a39b0bf4cdf60c2c
Gerrit-Change-Number: 35134
Gerrit-PatchSet: 4
Gerrit-Owner: laforge 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: laforge 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:34:52 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread pespin
Attention is currently required from: fixeria, osmith.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 1:

(4 comments)

File contrib/jenkins-build-osmo-bts.sh:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/fd7b7e40_2f9c0871
PS1, Line 7: (git_url=https://gitea.osmocom.org/cellular-infrastructure
sounds like you want to change the default git_url in have_repo or 
jenkins-build-common.sh instead?


File src/osmo_gsm_tester/obj/osmo_vty.py:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/2352a9ff_8d023abb
PS1, Line 83: # (copied from 
osmo-python-tests/osmopy/osmo_interact/vty.py)
osmo-python-tests.git/


https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/b896694e_735c4ae5
PS1, Line 162: # (copied from 
osmo-python-tests/osmopy/osmo_interact/vty.py)
osmo-python-tests.git/


https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/74a0fbc2_6548d4df
PS1, Line 212: # (copied from 
osmo-python-tests/osmopy/osmo_interact/vty.py)
osmo-python-tests.git/



--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 1
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:37:04 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in osmo-bts[master]: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

2023-11-29 Thread pespin
Attention is currently required from: fixeria, jolly, laforge.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email )

Change subject: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without 
L3 payload
..


Patch Set 5:

(1 comment)

File src/common/rsl.c:

https://gerrit.osmocom.org/c/osmo-bts/+/35082/comment/ca1ed743_4f4a20fd
PS5, Line 3848: /* Keep track of the estabishment 
state. */
establishment



--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
Gerrit-Change-Number: 35082
Gerrit-PatchSet: 5
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:41:31 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread pespin
Attention is currently required from: dexter, fixeria.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..


Patch Set 1:

(1 comment)

Patchset:

PS1:
In general I'd prefer having v12 (newest version) configured everywhere and sed 
it to 10 or 11 on the specific cases, otherwise we start to have a bit of a 
mess here with so many versions.



--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:43:44 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: Add flag to enable RTS bases polling

2023-11-29 Thread pespin
Attention is currently required from: fixeria, jolly.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )

Change subject: Add flag to enable RTS bases polling
..


Patch Set 1: Code-Review+2

(2 comments)

Commit Message:

https://gerrit.osmocom.org/c/libosmocore/+/35160/comment/4477921d_430ccfb6
PS1, Line 7: Add flag to enable RTS bases polling
based polling


Patchset:

PS1:
feel free to fix typo and +2 and merge yourself.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 12:48:03 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread laforge
Attention is currently required from: dexter, fixeria.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )

Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..


Patch Set 2:

(1 comment)

File pySim-shell.py:

https://gerrit.osmocom.org/c/pysim/+/35161/comment/c9711334_3094391a
PS2, Line 244: When sending raw APDUs we access the scc object through _scc 
member of the card object. It should also be
 : # noted that the apdu command plays an exceptional role 
since it is the only card accessing command that
 : # can be executed without the presence of a runt
I think the improtant bit for the user is not how we access the scc object.  
The important bit is that the 'apdu' command bypasses the currentyl selected 
logical channel.  It might be a good idea to ad this to the docstr of the 
do_apdu method, so it ends up in the user manual.



--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:08:33 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[M] Change in osmo-mgw[master]: mgcp-cli: Transmit remote IP addr in CRCX if known and port=0

2023-11-29 Thread pespin
Attention is currently required from: dexter, laforge, neels.

Hello Jenkins Builder, dexter, laforge, neels,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-mgw/+/35152?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+1 by laforge, Verified+1 by Jenkins Builder


Change subject: mgcp-cli: Transmit remote IP addr in CRCX if known and port=0
..

mgcp-cli: Transmit remote IP addr in CRCX if known and port=0

A client may know the IP address during CRCX but not yet the port, or it
may simply want to hint an initial IP address so that the MGW can better
guess when allocating a local IP address.

Related: SYS#6657
Change-Id: I30165dbac5e484011d0acf46af36f105954a501d
---
M src/libosmo-mgcp-client/mgcp_client.c
M src/libosmo-mgcp-client/mgcp_client_fsm.c
2 files changed, 89 insertions(+), 62 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/52/35152/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/35152?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I30165dbac5e484011d0acf46af36f105954a501d
Gerrit-Change-Number: 35152
Gerrit-PatchSet: 2
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: neels 
Gerrit-Attention: neels 
Gerrit-Attention: laforge 
Gerrit-Attention: dexter 
Gerrit-MessageType: newpatchset


[S] Change in libosmocore[master]: Add flag to enable RTS based polling

2023-11-29 Thread jolly
Attention is currently required from: fixeria, jolly, laforge, pespin.

Hello Jenkins Builder, fixeria, laforge, pespin,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+1 by laforge, Code-Review+2 by pespin

The change is no longer submittable: Code-Review is unsatisfied now.


Change subject: Add flag to enable RTS based polling
..

Add flag to enable RTS based polling

RTS based polling in LAPDm code is disabled by default. Make libosmogsm
stay compatible with existing applications that do not use RTS based
polling.

This patch fixes the issue that LAPDM_ENT_F_POLLING_ONLY did enable RTS
based polling too, which breaks existing applications like older
versions of osmo-bts.

Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
---
M include/osmocom/gsm/lapdm.h
M src/gsm/lapdm.c
2 files changed, 23 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/60/35160/2
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in libosmocore[master]: Add flag to enable RTS based polling

2023-11-29 Thread jolly
Attention is currently required from: fixeria, laforge, pespin.

jolly has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )

Change subject: Add flag to enable RTS based polling
..


Patch Set 1:

(1 comment)

Commit Message:

https://gerrit.osmocom.org/c/libosmocore/+/35160/comment/8119a14b_b2570519
PS1, Line 7: Add flag to enable RTS bases polling
> based polling
Done



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: laforge 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:20:10 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


[M] Change in osmo-hnbgw[master]: mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN side

2023-11-29 Thread pespin
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/35153?usp=email )

Change subject: mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN 
side
..


Set Ready For Review


--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/35153?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Icf43e3a1cde809d844f17ef2d0600efe64bc3dfe
Gerrit-Change-Number: 35153
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:20:32 +
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[M] Change in osmo-hnbgw[master]: mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN side

2023-11-29 Thread pespin
Hello Jenkins Builder,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-hnbgw/+/35153?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder


Change subject: mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN 
side
..

mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN side

In general, the HNBs end up binding its IuUP/RTP streams to the same IP
address used for Iuh signalling.

When receiving a RAB-Ass-Req from CN, osmo-hnbgw creates an endpoint in
its co-located MGW and creates 2 MGCP conns on it, one facing the RAN
side and one facing the CN side. At that point, the remote CN IuUP IP address
is known (was include din the received RAB-Ass-Req), but the RAN one is
not yet known. Hence, the CRCX on the RAN-side conn contained no remote
IP address, which means MGW has to blindly guess a good local IP address
if "ip probing" is enabled.
As a result, when RAB-Ass-Resp comes back from the hNodeB containing the
allocated remote IuUP IP address and MGW is updated through MGCP MDCX,
it may happen that MGW rebinds to a better fitting local IP address and
returns it in MDCX. This has several downfalls:
1- We don't yet support updating the hNodeB about the changed IP address
(see mgw_fsm_mdcx_hnb). For that, we'd need to send a RAB-Modify-Req+Resp.
2- Even if we supported it, in the general case we'd be delaying call
establishment because an extra roundtrip is needed to update
RAB-Modify-Req+Resp.

In general, the HNBs end up binding its IuUP/RTP streams to the same IP
address used for the Iuh signalling. Hence, use this assumption to
announce the Iuh IP address as a remote IuUP IP address when
transmitting the MGCP CRCX at the RAN-side conn to the MGW. This way
the MGW can potentially select a proper local IuUP IP address from the
start, so no RAB-Modify-Req is required later on.

The logic to transmit RAB-Modify-Req is left unimplemented in this
commit and is left as a later improvement.

Related: SYS#6657
Change-Id: Icf43e3a1cde809d844f17ef2d0600efe64bc3dfe
---
M src/osmo-hnbgw/mgw_fsm.c
1 file changed, 56 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/53/35153/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/35153?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Icf43e3a1cde809d844f17ef2d0600efe64bc3dfe
Gerrit-Change-Number: 35153
Gerrit-PatchSet: 2
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
Attention is currently required from: fixeria, osmith.

Hello Jenkins Builder, fixeria, pespin,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Verified+1 by osmith


Change subject: Update git URLs
..

Update git URLs

git.osmocom.org has been deprecated, use gerrit or gitea urls instead.

Related: 
https://osmocom.org/projects/cellular-infrastructure/wiki/Git_infrastructure
Related: OS#6251
Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
---
M README.md
M contrib/jenkins-build-common.sh
M contrib/jenkins-build-manuals.sh
M contrib/jenkins-build-osmo-bts.sh
M doc/manuals/chapters/ansible.adoc
M doc/manuals/chapters/docker.adoc
M doc/manuals/osmo-gsm-tester-manual-docinfo.xml
M src/osmo_gsm_tester/obj/osmo_vty.py
M sysmocom/ttcn3/README.txt
9 files changed, 32 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester 
refs/changes/57/35157/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
Attention is currently required from: fixeria, pespin.

osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 1: Verified+1

(4 comments)

File contrib/jenkins-build-osmo-bts.sh:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/8cfb5cd3_a235d146
PS1, Line 7: (git_url=https://gitea.osmocom.org/cellular-infrastructure
> sounds like you want to change the default git_url in have_repo or 
> jenkins-build-common. […]
It needs to be this url for octphy-2g-headers only (not on gerrit), everything 
else should be retrieved from gerrit.osmocom.org (as there is no sync delay). I 
only want to set git_url for this one call to have_repo, hence it is in a 
subshell.

Something similar is done already in contrib/jenkins-build-osmo-bts-oc2g.sh, 
contrib/jenkins-build-osmo-pcu-oc2g.sh, contrib/jenkins-build-osmo-trx.sh. I 
can use the same exact syntax if you prefer.

This was not necessary before, as octphy-2g-headers was reachable from 
git.osmocom.org too.


File src/osmo_gsm_tester/obj/osmo_vty.py:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/bcf0f78a_7cd9b4e1
PS1, Line 83: # (copied from 
osmo-python-tests/osmopy/osmo_interact/vty.py)
> osmo-python-tests. […]
Done


https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/0b4ecfaa_f1abde60
PS1, Line 162: # (copied from 
osmo-python-tests/osmopy/osmo_interact/vty.py)
> osmo-python-tests. […]
Done


https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/638b1896_d1cbf381
PS1, Line 212: # (copied from 
osmo-python-tests/osmopy/osmo_interact/vty.py)
> osmo-python-tests. […]
Done



--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 1
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:22:22 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
Attention is currently required from: fixeria, osmith, pespin.

osmith has removed a vote from this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )


Change subject: Update git URLs
..


Removed Verified-1 by Jenkins Builder (102)
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-MessageType: deleteVote


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
Attention is currently required from: fixeria, pespin.

osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 2: Verified+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:23:03 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: Add flag to enable RTS based polling

2023-11-29 Thread pespin
Attention is currently required from: fixeria, jolly, laforge.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )

Change subject: Add flag to enable RTS based polling
..


Patch Set 2: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:23:25 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread pespin
Attention is currently required from: fixeria, osmith.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 2: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 13:24:18 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: Add flag to enable RTS based polling

2023-11-29 Thread jolly
jolly has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email )

Change subject: Add flag to enable RTS based polling
..

Add flag to enable RTS based polling

RTS based polling in LAPDm code is disabled by default. Make libosmogsm
stay compatible with existing applications that do not use RTS based
polling.

This patch fixes the issue that LAPDM_ENT_F_POLLING_ONLY did enable RTS
based polling too, which breaks existing applications like older
versions of osmo-bts.

Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
---
M include/osmocom/gsm/lapdm.h
M src/gsm/lapdm.c
2 files changed, 23 insertions(+), 5 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved




diff --git a/include/osmocom/gsm/lapdm.h b/include/osmocom/gsm/lapdm.h
index 42ebbce..6812102 100644
--- a/include/osmocom/gsm/lapdm.h
+++ b/include/osmocom/gsm/lapdm.h
@@ -51,6 +51,7 @@
 #define LAPDM_ENT_F_EMPTY_FRAME0x0001
 #define LAPDM_ENT_F_POLLING_ONLY   0x0002
 #define LAPDM_ENT_F_DROP_2ND_REJ   0x0004
+#define LAPDM_ENT_F_RTS0x0008

 /*! a LAPDm Entity */
 struct lapdm_entity {
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index fb892d2..1fc986d 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -363,8 +363,8 @@
if (le->tx_pending || le->flags & LAPDM_ENT_F_POLLING_ONLY) {
struct msgb *old_msg;

-   /* In 'Polling only' mode there can be only one message. */
-   if (le->flags & LAPDM_ENT_F_POLLING_ONLY) {
+   /* In 'RTS' mode there can be only one message. */
+   if (le->flags & LAPDM_ENT_F_RTS) {
/* Overwrite existing message by removing it first. */
if ((old_msg = msgb_dequeue(&dl->dl.tx_queue))) {
msgb_free(old_msg);
@@ -424,8 +424,8 @@
 {
struct msgb *msg;

-   /* Call RTS function of LAPD, to poll next frame. */
-   if (dl->entity->flags & LAPDM_ENT_F_POLLING_ONLY) {
+   /* Call RTS function of LAPD, to queue next frame. */
+   if (dl->entity->flags & LAPDM_ENT_F_RTS) {
struct lapd_msg_ctx lctx;
int rc;

@@ -1635,7 +1635,7 @@
le->flags = flags;

/* Set flags at LAPD. */
-   if (le->flags & LAPDM_ENT_F_POLLING_ONLY)
+   if (le->flags & LAPDM_ENT_F_RTS)
dl_flags |= LAPD_F_RTS;
if (le->flags & LAPDM_ENT_F_DROP_2ND_REJ)
dl_flags |= LAPD_F_DROP_2ND_REJ;

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35160?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a75c192bbc24e85bfc1656b2be21cea7a92814a
Gerrit-Change-Number: 35160
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: jolly 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
Attention is currently required from: fixeria, laforge.

Hello Jenkins Builder, fixeria, laforge,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/pysim/+/35161?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder


Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..

pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

When sending raw APDUs, we access the scc (SimCardCommands) object via
the scc member in the lchan object. Unfortunately self.lchan will not be
populated when the rs (RuntimeState) object is missing. This is in
particular the case when no profile could be detected for the card,
which is a common situation when we boostrap an unprovisioned card.

So let's access the scc object through the card object. This is also
more logical since when we send raw APDUs we work below the level of
logical channels.

Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Related: OS#6278
---
M pySim-shell.py
1 file changed, 29 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/61/35161/3
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 3
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
Attention is currently required from: fixeria, laforge.

dexter has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )

Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..


Patch Set 3:

(1 comment)

File pySim-shell.py:

https://gerrit.osmocom.org/c/pysim/+/35161/comment/1c07e118_8e9ca643
PS2, Line 244: When sending raw APDUs we access the scc object through _scc 
member of the card object. It should also be
 : # noted that the apdu command plays an exceptional role 
since it is the only card accessing command that
 : # can be executed without the presence of a runt
> I think the improtant bit for the user is not how we access the scc object. 
> […]
Sure, the note is more directed to the programmer so that we do not excellently 
change it back. I have now updated the docstring as well.



--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 3
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:03:32 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge 
Gerrit-MessageType: comment


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
Attention is currently required from: fixeria, laforge.

dexter has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )

Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..


Patch Set 3:

(1 comment)

File pySim-shell.py:

https://gerrit.osmocom.org/c/pysim/+/35161/comment/686947c7_1ee83c6b
PS2, Line 244: When sending raw APDUs we access the scc object through _scc 
member of the card object. It should also be
 : # noted that the apdu command plays an exceptional role 
since it is the only card accessing command that
 : # can be executed without the presence of a runt
> Sure, the note is more directed to the programmer so that we do not 
> excellently change it back. […]
Done



--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 3
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:03:59 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge 
Comment-In-Reply-To: dexter 
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread dexter
Attention is currently required from: fixeria, pespin.

dexter has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..


Patch Set 1:

(1 comment)

Patchset:

PS1:
> In general I'd prefer having v12 (newest version) configured everywhere and 
> sed it to 10 or 11 on th […]
Let's address this is in a follow up patch. This patch makes jenkins-sns.sh, 
equal to jenkins.sh. I think this is an improvement.

We then might consider to set the version to something like "XX" in the configs 
and put a comment next to it that the version number is set in the 
jenkins(-sns).sh scripts. And then we explicitly set the version number for 
each variant (master, latest, 2323q3 etc.)



--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:12:25 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
Attention is currently required from: fixeria, laforge.

Hello Jenkins Builder, fixeria, laforge,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/pysim/+/35161?usp=email

to look at the new patch set (#4).

The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder


Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..

pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

When sending raw APDUs, we access the scc (SimCardCommands) object via
the scc member in the lchan object. Unfortunately self.lchan will not be
populated when the rs (RuntimeState) object is missing. This is in
particular the case when no profile could be detected for the card,
which is a common situation when we boostrap an unprovisioned card.

So let's access the scc object through the card object. This is also
more logical since when we send raw APDUs we work below the level of
logical channels.

Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Related: OS#6278
---
M pySim-shell.py
1 file changed, 29 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/61/35161/4
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 4
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread pespin
Attention is currently required from: dexter, fixeria.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:32:31 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread laforge
Attention is currently required from: dexter, fixeria.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..


Patch Set 1: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:34:09 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..

ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

Unfortunately we had to revert [1] because it worked for current master
but not for latest. The mistake here was to change the PCUIF version
number in PCU_Tests.cfg to PCUIF v12. This is indeed the correct version
for current master, but latest still uses v11. Also the change we made in
jenkins-sns only affected 2023q1 builds, it does not affect latest. This
is the reason why the previous patch broke latest.

This follow up patch now copies the approach we already successfully use
with the normal ttcn3-pcu-test / ttcn3-pcu-test-latest. (see also
jenkins.sh)

[1] I0b37f01f4c7bb829053231339e39ab734f4c8cbc

Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Related: OS#6275
---
M ttcn3-pcu-test/jenkins-sns.sh
1 file changed, 32 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/ttcn3-pcu-test/jenkins-sns.sh b/ttcn3-pcu-test/jenkins-sns.sh
index 50027d3..06f833e 100755
--- a/ttcn3-pcu-test/jenkins-sns.sh
+++ b/ttcn3-pcu-test/jenkins-sns.sh
@@ -13,6 +13,15 @@
if image_suffix_is_2023q1; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 10/g' $1
fi
+
+   # This changes the PCUIF module parameter of the TTCN3 testsuite when 
the testsuite is
+   # executed for current master. For latest the PCUIF module parameter 
must stay at v.11
+   # since in osmo-pcu-latest PCUIF v.12 is not yet supported. After the 
next release, PCUIF
+   # v.12 will be supported in osmo-pcu-latest as well and this function, 
including the
+   # PCUIF_Types.mp_pcuif_version setting in the configuration files can 
be removed.
+   if image_suffix_is_master; then
+   sed -i 's/PCUIF_Types.mp_pcuif_version := 
11/PCUIF_Types.mp_pcuif_version := 12/g' $1
+   fi
 }

 mkdir $VOL_BASE_DIR/pcu-tester

--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread laforge
Attention is currently required from: dexter, fixeria.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )

Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..


Patch Set 4: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 4
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:34:35 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread laforge
Attention is currently required from: fixeria, osmith.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 2: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:35:12 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[L] Change in libosmocore[master]: Add a GSM RLP decoder and encoder

2023-11-29 Thread laforge
Attention is currently required from: osmith.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35123?usp=email )

Change subject: Add a GSM RLP decoder and encoder
..


Patch Set 8: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35123?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2d9bd8eb4f0cd0f72c436996767b199429596917
Gerrit-Change-Number: 35123
Gerrit-PatchSet: 8
Gerrit-Owner: laforge 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:35:34 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[L] Change in libosmocore[master]: Add a GSM RLP decoder and encoder

2023-11-29 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35123?usp=email )

Change subject: Add a GSM RLP decoder and encoder
..

Add a GSM RLP decoder and encoder

This code implements a decoder and encoder for the RLP (Radio Link
Protocol) as used in the bearer channel of GSM CSD (Circuit Switched
Data).

Change-Id: I2d9bd8eb4f0cd0f72c436996767b199429596917
---
M include/osmocom/gsm/Makefile.am
A include/osmocom/gsm/rlp.h
M src/gsm/Makefile.am
M src/gsm/libosmogsm.map
A src/gsm/rlp.c
M tests/Makefile.am
A tests/rlp/rlp_test.c
A tests/rlp/rlp_test.ok
M tests/testsuite.at
9 files changed, 608 insertions(+), 2 deletions(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/include/osmocom/gsm/Makefile.am b/include/osmocom/gsm/Makefile.am
index f840a27..5678a51 100644
--- a/include/osmocom/gsm/Makefile.am
+++ b/include/osmocom/gsm/Makefile.am
@@ -48,6 +48,7 @@
l1sap.h \
oap.h \
oap_client.h \
+   rlp.h \
rsl.h \
rxlev_stat.h \
sysinfo.h \
diff --git a/include/osmocom/gsm/rlp.h b/include/osmocom/gsm/rlp.h
new file mode 100644
index 000..47b0a6c
--- /dev/null
+++ b/include/osmocom/gsm/rlp.h
@@ -0,0 +1,81 @@
+/*
+ * GSM RLP (Radio Link Protocol) as used in CSD (3GPP TS 44.022)
+ *
+ * Copyright (C) 2022-2023 Harald Welte 
+ *
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+
+
+#pragma once
+#include 
+#include 
+#include 
+
+/*! \defgroup rlp GSM RLP (Radio Link Protocol) as used in CSD (3GPP TS 24.022)
+ *  @{
+ * \file rlp.h */
+
+/*! RLP frame type as per 3GPP TS 24.022 Section 5.2.1 */
+enum osmo_rlp_ftype {
+   OSMO_RLP_FT_U,
+   OSMO_RLP_FT_S,
+   OSMO_RLP_FT_IS,
+};
+extern const struct value_string osmo_rlp_ftype_vals[];
+
+/*! RLP U-Frame Type as per 3GPP TS 24.022 Section 5.2.1 */
+enum osmo_rlp_u_ftype {
+   OSMO_RLP_U_FT_SABM  = 0x07,
+   OSMO_RLP_U_FT_UA= 0x0c,
+   OSMO_RLP_U_FT_DISC  = 0x08,
+   OSMO_RLP_U_FT_DM= 0x03,
+   OSMO_RLP_U_FT_NULL  = 0x0f,
+   OSMO_RLP_U_FT_UI= 0x00,
+   OSMO_RLP_U_FT_XID   = 0x17,
+   OSMO_RLP_U_FT_TEST  = 0x1c,
+   OSMO_RLP_U_FT_REMAP = 0x11,
+};
+extern const struct value_string osmo_rlp_ftype_u_vals[];
+
+/*! RLP S-Frame type as per 3GPP TS 24.022 Section 5.2.1 */
+enum osmo_rlp_s_ftype {
+   OSMO_RLP_S_FT_RR= 0,
+   OSMO_RLP_S_FT_REJ   = 2,
+   OSMO_RLP_S_FT_RNR   = 1,
+   OSMO_RLP_S_FT_SREJ  = 3,
+};
+extern const struct value_string osmo_rlp_ftype_s_vals[];
+
+/*! Data structure representing one decoded RLP frame */
+struct osmo_rlp_frame_decoded {
+   uint8_t version;
+   enum osmo_rlp_ftype ftype;
+   enum osmo_rlp_u_ftype u_ftype;
+   enum osmo_rlp_s_ftype s_ftype;
+   bool c_r;
+   bool p_f;
+   uint8_t s_bits;
+   uint16_t n_s;
+   uint16_t n_r;
+   uint32_t fcs;
+   uint8_t info[536/8];
+   uint16_t info_len;
+};
+
+int osmo_rlp_decode(struct osmo_rlp_frame_decoded *out, uint8_t version, const 
uint8_t *data, size_t data_len);
+int osmo_rlp_encode(uint8_t *out, size_t out_size, const struct 
osmo_rlp_frame_decoded *in);
+uint32_t osmo_rlp_fcs_compute(const uint8_t *in, size_t in_len);
+
+/*! @} */
diff --git a/src/gsm/Makefile.am b/src/gsm/Makefile.am
index a01189c..67ecf9d 100644
--- a/src/gsm/Makefile.am
+++ b/src/gsm/Makefile.am
@@ -36,7 +36,7 @@
gsup.c gsup_sms.c gprs_gea.c gsm0503_conv.c oap.c 
gsm0808_utils.c \
gsm23003.c gsm23236.c mncc.c bts_features.c 
oap_client.c \
gsm29118.c gsm48_rest_octets.c cbsp.c gsm48049.c \
-   gad.c bsslap.c bssmap_le.c kdf.c iuup.c gsm44021.c 
gsm44068.c
+   gad.c bsslap.c bssmap_le.c kdf.c iuup.c gsm44021.c 
gsm44068.c rlp.c

 libgsmint_la_LDFLAGS = -no-undefined
 libgsmint_la_LIBADD = $(top_builddir)/src/core/libosmocore.la 
$(top_builddir)/src/isdn/libosmoisdn.la
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 6bb3b4b..db2dbcb 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -864,5 +864,12 @@
 osmo_csd_3k6_encode_frame;
 osmo_csd_ubit_dump;

+osmo_rlp_decode;
+osmo_rlp_encode;
+osmo_rlp_fcs_compute;
+o

[S] Change in osmo-bts[master]: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

2023-11-29 Thread laforge
Attention is currently required from: fixeria, jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email )

Change subject: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without 
L3 payload
..


Patch Set 5: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
Gerrit-Change-Number: 35082
Gerrit-PatchSet: 5
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:36:15 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in osmo-mgw[master]: mgcp-cli: Transmit remote IP addr in CRCX if known and port=0

2023-11-29 Thread laforge
Attention is currently required from: dexter, neels, pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/35152?usp=email )

Change subject: mgcp-cli: Transmit remote IP addr in CRCX if known and port=0
..


Patch Set 2: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/35152?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I30165dbac5e484011d0acf46af36f105954a501d
Gerrit-Change-Number: 35152
Gerrit-PatchSet: 2
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: neels 
Gerrit-Attention: neels 
Gerrit-Attention: pespin 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:36:26 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in osmo-hnbgw[master]: mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN side

2023-11-29 Thread laforge
Attention is currently required from: pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/35153?usp=email )

Change subject: mgw_fsm: Assume IuUP HNB IP addr = Iuh during MGCP CRCX on RAN 
side
..


Patch Set 2: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/35153?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Icf43e3a1cde809d844f17ef2d0600efe64bc3dfe
Gerrit-Change-Number: 35153
Gerrit-PatchSet: 2
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:37:44 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-ggsn[master]: gtp: Add net GTP cause values and a function to check for success

2023-11-29 Thread daniel
daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35084?usp=email )

Change subject: gtp: Add net GTP cause values and a function to check for 
success
..


Patch Set 2:

(2 comments)

File gtp/gtp.h:

https://gerrit.osmocom.org/c/osmo-ggsn/+/35084/comment/f62b203f_67e652e1
PS2, Line 106: #define GTPCAUSE_129  129/* For future 
use 129-176 */
> You broke the API compat here. […]
I'm not opposed, but then that would mean removing all eight of these defines:

```c
#define GTPCAUSE_0066   /* For future use 6-48 */
#define GTPCAUSE_049   49   /* Cause values reserved for 
GPRS charging protocol use (See GTP' in GSM 12.15) 49-63 */
#define GTPCAUSE_064   64   /* For future use 64-127 */
#define GTPCAUSE_131  131   /* For future use 131-176 */
#define GTPCAUSE_177  177   /* Cause values reserved for 
GPRS charging protocol use (See GTP' In GSM 12.15) 177-191 */
#define GTPCAUSE_198  198   /* For future use */
#define GTPCAUSE_221  221   /* For Future Use 221-240 */
#define GTPCAUSE_241  241   /* Cause Values Reserved For 
Gprs Charging Protocol Use (See Gtp' In Gsm 12.15) 241-255 */
```

Having one value defined for a range is pretty useless anyway.


https://gerrit.osmocom.org/c/osmo-ggsn/+/35084/comment/b39e4a66_057fb93c
PS2, Line 142: static inline bool gtp_cause_successful(uint8_t cause)
> not sure this is really useful to have here, I'd would have left it for the 
> specific app. […]
It's used directly in libgtp as well: 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35125



--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35084?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I9c3bf64537ef2223e29f8082861fa32fde26bf68
Gerrit-Change-Number: 35084
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: osmith 
Gerrit-CC: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:45:28 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


[S] Change in osmo-ggsn[master]: gtp: Add net GTP cause values and a function to check for success

2023-11-29 Thread pespin
Attention is currently required from: daniel.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35084?usp=email )

Change subject: gtp: Add net GTP cause values and a function to check for 
success
..


Patch Set 2:

(1 comment)

File gtp/gtp.h:

https://gerrit.osmocom.org/c/osmo-ggsn/+/35084/comment/0615ecd5_413c5d61
PS2, Line 106: #define GTPCAUSE_129  129/* For future 
use 129-176 */
> I'm not opposed, but then that would mean removing all eight of these 
> defines: […]
Agree, please submit a patch dropping all of them.



-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35084?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I9c3bf64537ef2223e29f8082861fa32fde26bf68
Gerrit-Change-Number: 35084
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: osmith 
Gerrit-CC: pespin 
Gerrit-Attention: daniel 
Gerrit-Comment-Date: Wed, 29 Nov 2023 14:59:03 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: daniel 
Gerrit-MessageType: comment


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread fixeria
Attention is currently required from: dexter.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )

Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..


Patch Set 4: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 4
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 15:16:54 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in pysim[master]: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

2023-11-29 Thread dexter
dexter has submitted this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35161?usp=email )

Change subject: pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
..

pySim-shell: Do not use self.lchan.scc when sending raw APDUs.

When sending raw APDUs, we access the scc (SimCardCommands) object via
the scc member in the lchan object. Unfortunately self.lchan will not be
populated when the rs (RuntimeState) object is missing. This is in
particular the case when no profile could be detected for the card,
which is a common situation when we boostrap an unprovisioned card.

So let's access the scc object through the card object. This is also
more logical since when we send raw APDUs we work below the level of
logical channels.

Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Related: OS#6278
---
M pySim-shell.py
1 file changed, 29 insertions(+), 4 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved




diff --git a/pySim-shell.py b/pySim-shell.py
index 4e08eb7..3d8bd86 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -237,10 +237,15 @@
 @cmd2.with_argparser(apdu_cmd_parser)
 def do_apdu(self, opts):
 """Send a raw APDU to the card, and print SW + Response.
-DANGEROUS: pySim-shell will not know any card state changes, and
-not continue to work as expected if you e.g. select a different
-file."""
-data, sw = self.lchan.scc._tp.send_apdu(opts.APDU)
+CAUTION: this command bypasses the logical channel handling of 
pySim-shell and card state changes are not
+tracked. Dpending on the raw APDU sent, pySim-shell may not continue 
to work as expected if you e.g. select
+a different file."""
+
+# When sending raw APDUs we access the scc object through _scc member 
of the card object. It should also be
+# noted that the apdu command plays an exceptional role since it is 
the only card accessing command that
+# can be executed without the presence of a runtime state (self.rs) 
object. However, this also means that
+# self.lchan is also not present (see method equip).
+data, sw = self.card._scc._tp.send_apdu(opts.APDU)
 if data:
 self.poutput("SW: %s, RESP: %s" % (sw, data))
 else:

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35161?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6bbaebe7d7a2013f0ce558ca2da7d58f5e6d991a
Gerrit-Change-Number: 35161
Gerrit-PatchSet: 4
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter 
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-MessageType: merged


[S] Change in osmo-ggsn[master]: libgtp: Remove defines for reserved causes in gtp.h

2023-11-29 Thread daniel
daniel has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email )


Change subject: libgtp: Remove defines for reserved causes in gtp.h
..

libgtp: Remove defines for reserved causes in gtp.h

As discussed in Gerrit change I9c3bf64537ef2223e29f8082861fa32fde26bf68
remove defines that don't serve any purpose. These are defines for
reserved values and changing them later if a newer spec defined them
would break API.

Keep the comments to explain the missing values.

Change-Id: I8db0aa0ade59785443a407b51dea326144406dcf
---
M TODO-RELEASE
M gtp/gtp.h
2 files changed, 26 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/62/35162/1

diff --git a/TODO-RELEASE b/TODO-RELEASE
index d0852fc..d8cc3af 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
 # If any interfaces have been added since the last public release: c:r:a + 1.
 # If any interfaces have been removed or changed since the last public 
release: c:r:0.
 #library   whatdescription / commit summary line
+libgtp REMOVE  remove GTP cause defines of reserved values
diff --git a/gtp/gtp.h b/gtp/gtp.h
index c066fa6..7465cf1 100644
--- a/gtp/gtp.h
+++ b/gtp/gtp.h
@@ -53,7 +53,7 @@
 #define GTP_UPDATE_PDP_RSP   19/* Update PDP Context Response */
 #define GTP_DELETE_PDP_REQ   20/* Delete PDP Context Request */
 #define GTP_DELETE_PDP_RSP   21/* Delete PDP Context Response */
-  /* 22-25 For future use. 
*//* In version GTP 1 anonomous PDP context */
+/* 22-25 For future use. *//* In version GTP 1 anonomous PDP context */
 #define GTP_ERROR26/* Error Indication */
 #define GTP_PDU_NOT_REQ  27/* PDU Notification Request */
 #define GTP_PDU_NOT_RSP  28/* PDU Notification Response */
@@ -99,21 +99,21 @@
 #define GTPCAUSE_NO_ID_NEEDED   3  /* No identity needed */
 #define GTPCAUSE_MS_REFUSES_X   4  /* MS refuses */
 #define GTPCAUSE_MS_NOT_RESP_X  5  /* MS is not GPRS responding */
-#define GTPCAUSE_0066  /* For future use 6-48 */
-#define GTPCAUSE_049   49  /* Cause values reserved for 
GPRS charging protocol use (See GTP' in GSM 12.15) 49-63 */
-#define GTPCAUSE_064   64  /* For future use 64-127 */
+/* 6-48 For future use */
+/* 49-63 Cause values reserved for GPRS charging protocol use (See GTP' in GSM 
12.15) */
+/* 64-127 For future use */
 #define GTPCAUSE_ACC_REQ  128  /* Request accepted */
 #define GTPCAUSE_NEW_PDP_NET_PREF 129  /* New PDP type due to network 
preference */
 #define GTPCAUSE_NEW_PDP_ADDR_BEAR130  /* New PDP type due to single 
address bearer only */
-#define GTPCAUSE_131  131  /* For future use 131-176 */
-#define GTPCAUSE_177  177  /* Cause values reserved for 
GPRS charging protocol use (See GTP' In GSM 12.15) 177-191 */
+/* 131-176 For future use */
+/* 177-191 Cause values reserved for GPRS charging protocol use (See GTP' In 
GSM 12.15) */
 #define GTPCAUSE_NON_EXIST192  /* Non-existent */
 #define GTPCAUSE_INVALID_MESSAGE  193  /* Invalid message format */
 #define GTPCAUSE_IMSI_NOT_KNOWN   194  /* IMSI not known */
 #define GTPCAUSE_MS_DETACHED  195  /* MS is GPRS detached */
 #define GTPCAUSE_MS_NOT_RESP  196  /* MS is not GPRS responding */
 #define GTPCAUSE_MS_REFUSES   197  /* MS refuses */
-#define GTPCAUSE_198  198  /* For future use */
+/* 198 For future use */
 #define GTPCAUSE_NO_RESOURCES 199  /* No resources available */
 #define GTPCAUSE_NOT_SUPPORTED200  /* Service not supported */
 #define GTPCAUSE_MAN_IE_INCORRECT 201  /* Mandatory IE incorrect */
@@ -136,8 +136,8 @@
 #define GTPCAUSE_SYN_ERR_FILTER   218  /* Syntactic errors in packet 
filter(s) */
 #define GTPCAUSE_MISSING_APN  219  /* Missing or unknown APN */
 #define GTPCAUSE_UNKNOWN_PDP  220  /* Unknown PDP address or PDP 
type */
-#define GTPCAUSE_221  221  /* For Future Use 221-240 */
-#define GTPCAUSE_241  241  /* Cause Values Reserved For 
Gprs Charging Protocol Use (See Gtp' In Gsm 12.15) 241-255 */
+/* 221-240 For future use */
+/* 241-255 Cause Values Reserved For Gprs Charging Protocol Use (See Gtp' In 
Gsm 12.15) */

 static inline bool gtp_cause_successful(uint8_t cause)
 {

--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I8db0aa0ade59785443a407b51dea326144406dcf
Gerrit-Change-Number: 35162
Gerrit-Patc

[S] Change in osmo-ggsn[master]: gtp: Add net GTP cause values and a function to check for success

2023-11-29 Thread daniel
daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35084?usp=email )

Change subject: gtp: Add net GTP cause values and a function to check for 
success
..


Patch Set 2:

(1 comment)

File gtp/gtp.h:

https://gerrit.osmocom.org/c/osmo-ggsn/+/35084/comment/6c8690c8_c0d44bed
PS2, Line 106: #define GTPCAUSE_129  129/* For future 
use 129-176 */
> Agree, please submit a patch dropping all of them.
See https://gerrit.osmocom.org/c/osmo-ggsn/+/35162



--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35084?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I9c3bf64537ef2223e29f8082861fa32fde26bf68
Gerrit-Change-Number: 35084
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: osmith 
Gerrit-CC: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 15:42:10 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: daniel 
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..

Update git URLs

git.osmocom.org has been deprecated, use gerrit or gitea urls instead.

Related: 
https://osmocom.org/projects/cellular-infrastructure/wiki/Git_infrastructure
Related: OS#6251
Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
---
M README.md
M contrib/jenkins-build-common.sh
M contrib/jenkins-build-manuals.sh
M contrib/jenkins-build-osmo-bts.sh
M doc/manuals/chapters/ansible.adoc
M doc/manuals/chapters/docker.adoc
M doc/manuals/osmo-gsm-tester-manual-docinfo.xml
M src/osmo_gsm_tester/obj/osmo_vty.py
M sysmocom/ttcn3/README.txt
9 files changed, 32 insertions(+), 16 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  osmith: Verified




diff --git a/README.md b/README.md
index 3394969..9bc1dcf 100644
--- a/README.md
+++ b/README.md
@@ -16,11 +16,12 @@

 Ansible scripts to set up hosts to be used as Osmo-GSM-Tester Main Units or/and
 Slave Units on the above mentioned setup can be found at
-https://git.osmocom.org/osmo-ci/tree/ansible, which actually install sample
-system configuration files from _utils/_ directory in this same repository.
+https://gitea.osmocom.org/osmocom/osmo-ci/src/branch/master/ansible, which
+actually install sample system configuration files from _utils/_ directory in
+this same repository.

 A sample Docker setup is also maintained publicly at
-https://git.osmocom.org/docker-playground/tree/osmo-gsm-tester.
+https://gitea.osmocom.org/osmocom/docker-playground/src/branch/master/osmo-gsm-tester.

 For the complete documentation, please refer to Osmo-GSM-Tester User manual,
 available in sources under _doc/manuals/_ under this same repository, and
diff --git a/contrib/jenkins-build-common.sh b/contrib/jenkins-build-common.sh
index b41fc05..59d0d11 100644
--- a/contrib/jenkins-build-common.sh
+++ b/contrib/jenkins-build-common.sh
@@ -42,7 +42,7 @@
   exit 1
 fi

-git_url="${git_url:-https://git.osmocom.org}";
+git_url="${git_url:-https://gerrit.osmocom.org}";
 prefix="${prefix:-$base/inst-$name}"
 # prefix_real is usually identical with prefix, except when installing to a
 # different $DESTDIR than /, which is the case for example when building
diff --git a/contrib/jenkins-build-manuals.sh b/contrib/jenkins-build-manuals.sh
index 48f7780..cf2a4d8 100755
--- a/contrib/jenkins-build-manuals.sh
+++ b/contrib/jenkins-build-manuals.sh
@@ -15,7 +15,7 @@
 if [ -d "$OSMO_GSM_MANUALS_DIR" ]; then
git -C "$OSMO_GSM_MANUALS_DIR" pull
 else
-   git clone "https://git.osmocom.org/osmo-gsm-manuals"; 
"$OSMO_GSM_MANUALS_DIR"
+   git clone "https://gerrit.osmocom.org/osmo-gsm-manuals"; 
"$OSMO_GSM_MANUALS_DIR"
 fi
 git -C "$OSMO_GSM_MANUALS_DIR" checkout -f HEAD

diff --git a/contrib/jenkins-build-osmo-bts.sh 
b/contrib/jenkins-build-osmo-bts.sh
index 6e9416a..d0b9e02 100755
--- a/contrib/jenkins-build-osmo-bts.sh
+++ b/contrib/jenkins-build-osmo-bts.sh
@@ -4,7 +4,8 @@
 name="osmo-bts"
 . "$(dirname "$0")/jenkins-build-common.sh"

-have_repo octphy-2g-headers
+(git_url=https://gitea.osmocom.org/cellular-infrastructure
+ have_repo octphy-2g-headers)

 build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen --disable-uring
 build_repo libosmo-abis ${SANITIZE_FLAGS} --disable-dahdi
diff --git a/doc/manuals/chapters/ansible.adoc 
b/doc/manuals/chapters/ansible.adoc
index 4c80723..d8970aa 100644
--- a/doc/manuals/chapters/ansible.adoc
+++ b/doc/manuals/chapters/ansible.adoc
@@ -5,8 +5,8 @@
 and tedious, nowadays the Osmocom RnD and Production {app-name} setups are
 installed and maintained using Ansible scripts. The set of ansible scripts is
 available  in Osmocom's git repository
-link:https://git.osmocom.org/osmo-ci/[osmo-ci.git] under 'ansible' 
subdirectory,
-with the rest of ansible scripts to set jenkins slaves, etc.
+link:https://gitea.osmocom.org/osmocom/osmo-ci/[osmo-ci.git] under 'ansible'
+subdirectory, with the rest of ansible scripts to set jenkins slaves, etc.

 Since these set of scripts is mainly aimed at Osmocom's own setup, and debian 
is
 used there, so far only debian hosts are supported officially, though patches 
to
diff --git a/doc/manuals/chapters/docker.adoc b/doc/manuals/chapters/docker.adoc
index bc8ad00..985edc3 100644
--- a/doc/manuals/chapters/docker.adoc
+++ b/doc/manuals/chapters/docker.adoc
@@ -3,8 +3,8 @@

 A sample {app-name} setup based on docker containers and maintained by the
 Osmocom community is available in Osmocom's git repository
-link:https://git.osmocom.org/docker-playground/[docker-playground.git], under
-'osmo-gsm-tester' subdirectory. In there, one can find:
+link:https://gitea.osmocom.org/osmocom/docker-playground/[docker-playground.git],
+under 'osmo-gsm-tester' subdirectory. In there, one can find:

 - A 'Dockerfile' file can be found which buil

[S] Change in osmo-ggsn[master]: libgtp: Remove defines for reserved causes in gtp.h

2023-11-29 Thread pespin
Attention is currently required from: daniel, osmith.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email )

Change subject: libgtp: Remove defines for reserved causes in gtp.h
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I8db0aa0ade59785443a407b51dea326144406dcf
Gerrit-Change-Number: 35162
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: osmith 
Gerrit-Attention: daniel 
Gerrit-Comment-Date: Wed, 29 Nov 2023 15:49:06 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-ggsn[master]: libgtp: Remove defines for reserved causes in gtp.h

2023-11-29 Thread osmith
Attention is currently required from: daniel.

osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email )

Change subject: libgtp: Remove defines for reserved causes in gtp.h
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I8db0aa0ade59785443a407b51dea326144406dcf
Gerrit-Change-Number: 35162
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: daniel 
Gerrit-Comment-Date: Wed, 29 Nov 2023 15:49:50 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread fixeria
Attention is currently required from: pespin.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 2:

(2 comments)

Commit Message:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/8913f5a1_96c58070
PS2, Line 9: git.osmocom.org has been deprecated
Huh? I thought it's only the `git://` protocol has been deprecated and was 
disabled yesterday. When doing `git clone https://git.osmocom.org/...`, you'll 
be redirected to Gitea anyway...

The sync delay (which may be different in different projects) is a more 
reasonable argument against using `https://git.osmocom.org`, IMO.


File contrib/jenkins-build-osmo-bts.sh:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/98f9a961_9762712c
PS1, Line 7: (git_url=https://gitea.osmocom.org/cellular-infrastructure
> It needs to be this url for octphy-2g-headers only (not on gerrit), 
> everything else should be retrie […]
Likewise, cloning from `https://git.osmocom.org/octphy-2g-headers` works fine, 
git client gets redirected to 
`https://gitea.osmocom.org/cellular-infrastructure/octphy-2g-headers/`.



--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 15:50:09 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith 
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


[S] Change in osmo-gsm-tester[master]: Update git URLs

2023-11-29 Thread osmith
Attention is currently required from: pespin.

osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email )

Change subject: Update git URLs
..


Patch Set 2:

(2 comments)

Commit Message:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/9ecedff9_d5b73762
PS2, Line 9: git.osmocom.org has been deprecated
> Huh? I thought it's only the `git://` protocol has been deprecated and was 
> disabled yesterday. […]
right, `git clone https://git.osmocom.org/libosmocore` still works... agreed 
that the commit message could be better, but the change still makes sense given 
that gerrit.osmocom.org is more recent. I should have written: 
git://git.osmocom.org is deprecated. Sorry, had merged it already just before 
your comment arrived.

I guess it failed in jenkins because the workspaces weren't cleaned when git:// 
was changed to https:// in I5f51b260445624759e77a70c5065838b29ec8c01. I have 
cleaned them as I tested the patch here.


File contrib/jenkins-build-osmo-bts.sh:

https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157/comment/c86e1de5_403b2b51
PS1, Line 7: (git_url=https://gitea.osmocom.org/cellular-infrastructure
> It needs to be this url for octphy-2g-headers only (not on gerrit), 
> everything else should be retrie […]
Done



--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/35157?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
Gerrit-Change-Number: 35157
Gerrit-PatchSet: 2
Gerrit-Owner: osmith 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 15:55:17 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith 
Comment-In-Reply-To: fixeria 
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


[S] Change in docker-playground[master]: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

2023-11-29 Thread fixeria
fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email )

Change subject: ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
..


Patch Set 1:

(1 comment)

Patchset:

PS1:
> Let's address this is in a follow up patch. This patch makes jenkins-sns.sh, 
> equal to jenkins.sh. […]
Suggestion: maybe we could agree on always having the latest PCUIF version 
configured in `osmo-ttcn3-hacks.git` (we already do in `PCU_Tests.default`) and 
overwrite it here in `docker-playground.git` only if needed (e.g. for latest or 
`202[0-9]q[0-9]` branches).

This way patching the config file would be as easy as doing `echo 
"PCUIF_Types.mp_pcuif_version := 12" >> $1`.



--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35159?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Gerrit-Change-Number: 35159
Gerrit-PatchSet: 1
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 16:02:50 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: dexter 
Gerrit-MessageType: comment


[S] Change in osmo-pcu[master]: gprs_rlcmac_sched: rewrite logic around idle block skip

2023-11-29 Thread fixeria
Attention is currently required from: dexter, pespin.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/35151?usp=email )

Change subject: gprs_rlcmac_sched: rewrite logic around idle block skip
..


Patch Set 2:

(1 comment)

File src/gprs_rlcmac_sched.cpp:

https://gerrit.osmocom.org/c/osmo-pcu/+/35151/comment/01b4c1fc_4c03fc14
PS1, Line 486:   * way we help BTS energy saving (on TRX!=C0) 
by sending nothing
> @fixeria bear in mind the "skip_idle && trx != 0" was only applied inside the 
> #ifdef DIRECT_PHY [...]

It's getting more and more complicated, but it seems I have a more complete 
picture in my mind. The `#ifdef DIRECT_PHY` block was removed in a recent patch 
(I7a08d8cc670fa14f7206dbc22351f3668a17), and now this patch removes the 
`trx != 0` constraint.

> And that was done in order to make it send stuff on C0 because those osmo-bts 
> lowerlayers are not filling the block otherwise.

Ack. The `trx != 0` constraint was specifically needed for those DSP based 
models.

> I realize now though, that when proposing the cleanup in this patch, I 
> assumed those were 1 TRX only, but lc15 has several of them right?

I am not familiar with the lc15 PHY, but AFAIR there also was a sysmoBTS model 
with two TRX. Also, I don't know how those DSP based models behave when getting 
an empty DATA.req for `trx!=0`. Was this ever tested?



--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/35151?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Iadb62748b18605bf158169b317f880352bc0a5a6
Gerrit-Change-Number: 35151
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: pespin 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 16:26:25 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: fixeria 
Comment-In-Reply-To: dexter 
Gerrit-MessageType: comment


[S] Change in osmo-pcu[master]: gprs_rlcmac_sched: rewrite logic around idle block skip

2023-11-29 Thread pespin
Attention is currently required from: dexter, fixeria.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/35151?usp=email )

Change subject: gprs_rlcmac_sched: rewrite logic around idle block skip
..


Patch Set 2:

(1 comment)

File src/gprs_rlcmac_sched.cpp:

https://gerrit.osmocom.org/c/osmo-pcu/+/35151/comment/47256c5d_e54ac3a3
PS1, Line 486:   * way we help BTS energy saving (on TRX!=C0) 
by sending nothing
> Was this ever tested?

Not myself, but I'd expect them to transmit nothing or whatever? maybe 
@lafo...@osmocom.org can say from the top of his head since he knows better 
that l1 part.

It makes sense that it sends nothing, and hence why we have to force it to 
transmit a dummy rlcmac block on trx0.



--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/35151?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Iadb62748b18605bf158169b317f880352bc0a5a6
Gerrit-Change-Number: 35151
Gerrit-PatchSet: 2
Gerrit-Owner: dexter 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: fixeria 
Gerrit-Attention: dexter 
Gerrit-Comment-Date: Wed, 29 Nov 2023 16:37:20 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria 
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: dexter 
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: utils: Link with libosmoisdn to avoid undefined references

2023-11-29 Thread daniel
daniel has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email )


Change subject: utils: Link with libosmoisdn to avoid undefined references
..

utils: Link with libosmoisdn to avoid undefined references

make[3]: Entering directory '/home/daniel/scm/osmo/libosmocore/utils'
  CCLD osmo-arfcn
/usr/bin/ld: ../src/gsm/.libs/libosmogsm.so: undefined reference to 
`lapd_dl_set_flags@LIBOSMOISDN_1.0'
/usr/bin/ld: ../src/gsm/.libs/libosmogsm.so: undefined reference to 
`lapd_t200_timeout@LIBOSMOISDN_1.0'
/usr/bin/ld: ../src/gsm/.libs/libosmogsm.so: undefined reference to 
`lapd_ph_rts_ind@LIBOSMOISDN_1.0'
collect2: error: ld returned 1 exit status

Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
---
M utils/Makefile.am
1 file changed, 17 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/63/35163/1

diff --git a/utils/Makefile.am b/utils/Makefile.am
index 3ec71ea..0e11601 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -3,7 +3,7 @@
 noinst_PROGRAMS =
 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
 AM_CFLAGS = -Wall $(TALLOC_CFLAGS) $(PTHREAD_CFLAGS)
-LDADD = $(top_builddir)/src/core/libosmocore.la 
$(top_builddir)/src/gsm/libosmogsm.la $(PTHREAD_LIBS)
+LDADD = $(top_builddir)/src/core/libosmocore.la 
$(top_builddir)/src/isdn/libosmoisdn.la $(top_builddir)/src/gsm/libosmogsm.la 
$(PTHREAD_LIBS)

 if ENABLE_UTILITIES
 EXTRA_DIST = conv_gen.py conv_codes_gsm.py

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
Gerrit-Change-Number: 35163
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-MessageType: newchange


[M] Change in libosmocore[master]: osmo_io: Factor out and use common send function from backend

2023-11-29 Thread daniel
Attention is currently required from: laforge, lynxis lazus, pespin.

Hello Jenkins Builder, lynxis lazus,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/libosmocore/+/35078?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+1 by lynxis lazus, Verified-1 by Jenkins Builder


Change subject: osmo_io: Factor out and use common send function from backend
..

osmo_io: Factor out and use common send function from backend

This handles reenqueuing a message on EAGAIN and incomplete write

Change-Id: I6da2653d32aedd0e7872be0cf90a841b56462e59
---
M src/core/osmo_io.c
M src/core/osmo_io_internal.h
M src/core/osmo_io_poll.c
M src/core/osmo_io_uring.c
4 files changed, 57 insertions(+), 57 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/78/35078/2
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35078?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6da2653d32aedd0e7872be0cf90a841b56462e59
Gerrit-Change-Number: 35078
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus 
Gerrit-CC: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: laforge 
Gerrit-Attention: pespin 
Gerrit-Attention: lynxis lazus 
Gerrit-MessageType: newpatchset


[M] Change in libosmocore[master]: osmo_io: Factor out and use common send function from backend

2023-11-29 Thread daniel
Attention is currently required from: laforge, lynxis lazus, pespin.

daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35078?usp=email )

Change subject: osmo_io: Factor out and use common send function from backend
..


Patch Set 2:

(5 comments)

File src/core/osmo_io.c:

https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/c63c3397_1e3aa3a8
PS1, Line 343: void iofd_handle_send(struct osmo_io_fd *iofd, int rc, struct 
iofd_msghdr *msghdr)
> this function (like unfortuntaely many functions in the code base) would 
> benefit from a comment desc […]
Done


https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/dde3791b_d6c6a0ea
PS1, Line 343: void iofd_handle_send(struct osmo_io_fd *iofd, int rc, struct 
iofd_msghdr *msghdr)
> this function (like unfortuntaely many functions in the code base) would 
> benefit from a comment desc […]
Done


https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/8d2930d4_ca0fc16d
PS1, Line 348:  if (rc > 0 && rc < msgb_length(msg)) {
Regarding your comment about rc == 0, maybe one missing failure case is rc == 0 
 && rc < msgb_length(msg)?

Not sure though.


https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/57942bf2_352fb2a8
PS1, Line 360:
> rc == 0 case seems to be missing here?
IMO rc == 0 in send means we have successfully "written" 0 bytes to the socket 
(which also means the socket is writable).

This is (IMO correctly) handled in the success case below.

The failure cases should either be rc < msgb_length() or rc == -EAGAIN.


File src/core/osmo_io_uring.c:

https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/93398c92_a3e6f35c
PS1, Line 188:  iofd_msghdr_free(msghdr);
> Yes, previous you didn't checked for -EAGAIN, now you're checking it and 
> doing things based on it.
You marked this as resolved, but just to be clear: I think this behavior is 
okay. It's debatable whether we'd ever encounter -EAGAIN for a send in 
io_uring, but if we do I'd say reenqueueing is the correct behavior.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35078?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6da2653d32aedd0e7872be0cf90a841b56462e59
Gerrit-Change-Number: 35078
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus 
Gerrit-CC: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: laforge 
Gerrit-Attention: pespin 
Gerrit-Attention: lynxis lazus 
Gerrit-Comment-Date: Wed, 29 Nov 2023 17:04:12 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge 
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: daniel 
Comment-In-Reply-To: lynxis lazus 
Gerrit-MessageType: comment


[M] Change in libosmocore[master]: osmo_io: Remove union in struct osmo_io_ops

2023-11-29 Thread daniel
Attention is currently required from: arehbein.

daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email )

Change subject: osmo_io: Remove union in struct osmo_io_ops
..


Set Ready For Review


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Gerrit-Change-Number: 35079
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein 
Gerrit-Attention: arehbein 
Gerrit-Comment-Date: Wed, 29 Nov 2023 17:16:23 +
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in osmo-ggsn[master]: libgtp: Remove defines for reserved causes in gtp.h

2023-11-29 Thread daniel
daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email )

Change subject: libgtp: Remove defines for reserved causes in gtp.h
..


Patch Set 1: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I8db0aa0ade59785443a407b51dea326144406dcf
Gerrit-Change-Number: 35162
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 17:18:01 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-ggsn[master]: libgtp: Remove defines for reserved causes in gtp.h

2023-11-29 Thread daniel
daniel has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email )

Change subject: libgtp: Remove defines for reserved causes in gtp.h
..

libgtp: Remove defines for reserved causes in gtp.h

As discussed in Gerrit change I9c3bf64537ef2223e29f8082861fa32fde26bf68
remove defines that don't serve any purpose. These are defines for
reserved values and changing them later if a newer spec defined them
would break API.

Keep the comments to explain the missing values.

Change-Id: I8db0aa0ade59785443a407b51dea326144406dcf
---
M TODO-RELEASE
M gtp/gtp.h
2 files changed, 26 insertions(+), 9 deletions(-)

Approvals:
  daniel: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  osmith: Looks good to me, but someone else must approve




diff --git a/TODO-RELEASE b/TODO-RELEASE
index d0852fc..d8cc3af 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
 # If any interfaces have been added since the last public release: c:r:a + 1.
 # If any interfaces have been removed or changed since the last public 
release: c:r:0.
 #library   whatdescription / commit summary line
+libgtp REMOVE  remove GTP cause defines of reserved values
diff --git a/gtp/gtp.h b/gtp/gtp.h
index c066fa6..7465cf1 100644
--- a/gtp/gtp.h
+++ b/gtp/gtp.h
@@ -53,7 +53,7 @@
 #define GTP_UPDATE_PDP_RSP   19/* Update PDP Context Response */
 #define GTP_DELETE_PDP_REQ   20/* Delete PDP Context Request */
 #define GTP_DELETE_PDP_RSP   21/* Delete PDP Context Response */
-  /* 22-25 For future use. 
*//* In version GTP 1 anonomous PDP context */
+/* 22-25 For future use. *//* In version GTP 1 anonomous PDP context */
 #define GTP_ERROR26/* Error Indication */
 #define GTP_PDU_NOT_REQ  27/* PDU Notification Request */
 #define GTP_PDU_NOT_RSP  28/* PDU Notification Response */
@@ -99,21 +99,21 @@
 #define GTPCAUSE_NO_ID_NEEDED   3  /* No identity needed */
 #define GTPCAUSE_MS_REFUSES_X   4  /* MS refuses */
 #define GTPCAUSE_MS_NOT_RESP_X  5  /* MS is not GPRS responding */
-#define GTPCAUSE_0066  /* For future use 6-48 */
-#define GTPCAUSE_049   49  /* Cause values reserved for 
GPRS charging protocol use (See GTP' in GSM 12.15) 49-63 */
-#define GTPCAUSE_064   64  /* For future use 64-127 */
+/* 6-48 For future use */
+/* 49-63 Cause values reserved for GPRS charging protocol use (See GTP' in GSM 
12.15) */
+/* 64-127 For future use */
 #define GTPCAUSE_ACC_REQ  128  /* Request accepted */
 #define GTPCAUSE_NEW_PDP_NET_PREF 129  /* New PDP type due to network 
preference */
 #define GTPCAUSE_NEW_PDP_ADDR_BEAR130  /* New PDP type due to single 
address bearer only */
-#define GTPCAUSE_131  131  /* For future use 131-176 */
-#define GTPCAUSE_177  177  /* Cause values reserved for 
GPRS charging protocol use (See GTP' In GSM 12.15) 177-191 */
+/* 131-176 For future use */
+/* 177-191 Cause values reserved for GPRS charging protocol use (See GTP' In 
GSM 12.15) */
 #define GTPCAUSE_NON_EXIST192  /* Non-existent */
 #define GTPCAUSE_INVALID_MESSAGE  193  /* Invalid message format */
 #define GTPCAUSE_IMSI_NOT_KNOWN   194  /* IMSI not known */
 #define GTPCAUSE_MS_DETACHED  195  /* MS is GPRS detached */
 #define GTPCAUSE_MS_NOT_RESP  196  /* MS is not GPRS responding */
 #define GTPCAUSE_MS_REFUSES   197  /* MS refuses */
-#define GTPCAUSE_198  198  /* For future use */
+/* 198 For future use */
 #define GTPCAUSE_NO_RESOURCES 199  /* No resources available */
 #define GTPCAUSE_NOT_SUPPORTED200  /* Service not supported */
 #define GTPCAUSE_MAN_IE_INCORRECT 201  /* Mandatory IE incorrect */
@@ -136,8 +136,8 @@
 #define GTPCAUSE_SYN_ERR_FILTER   218  /* Syntactic errors in packet 
filter(s) */
 #define GTPCAUSE_MISSING_APN  219  /* Missing or unknown APN */
 #define GTPCAUSE_UNKNOWN_PDP  220  /* Unknown PDP address or PDP 
type */
-#define GTPCAUSE_221  221  /* For Future Use 221-240 */
-#define GTPCAUSE_241  241  /* Cause Values Reserved For 
Gprs Charging Protocol Use (See Gtp' In Gsm 12.15) 241-255 */
+/* 221-240 For future use */
+/* 241-255 Cause Values Reserved For Gprs Charging Protocol Use (See Gtp' In 
Gsm 12.15) */

 static inline bool gtp_cause_successful(uint8_t cause)
 {

--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/35162?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: 

[S] Change in libosmocore[master]: utils: Link with libosmoisdn to avoid undefined references

2023-11-29 Thread pespin
Attention is currently required from: daniel, fixeria, jolly.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email )

Change subject: utils: Link with libosmoisdn to avoid undefined references
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
Gerrit-Change-Number: 35163
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: jolly 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: daniel 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 17:31:22 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in libosmocore[master]: osmo_io: Remove union in struct osmo_io_ops

2023-11-29 Thread daniel
Attention is currently required from: arehbein, daniel.

Hello Jenkins Builder, arehbein,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder


Change subject: osmo_io: Remove union in struct osmo_io_ops
..

osmo_io: Remove union in struct osmo_io_ops

This allows us to check that the correct callbacks are set. The checks
are already in e.g. osmo_iofd_write_msgb(), but the union prevented us
from distinguishing between write_cb() and sendto_cb() etc.

Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Related: #OS6263
---
M TODO-RELEASE
M include/osmocom/core/osmo_io.h
M src/core/osmo_io.c
3 files changed, 49 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/79/35079/3
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Gerrit-Change-Number: 35079
Gerrit-PatchSet: 3
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein 
Gerrit-Attention: arehbein 
Gerrit-Attention: daniel 
Gerrit-MessageType: newpatchset


[M] Change in libosmocore[master]: osmo_io: Remove union in struct osmo_io_ops

2023-11-29 Thread Jenkins Builder
Attention is currently required from: arehbein, daniel.

Jenkins Builder has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email )

Change subject: osmo_io: Remove union in struct osmo_io_ops
..


Patch Set 3:

(1 comment)

File src/core/osmo_io.c:

Robot Comment from checkpatch (run ID jenkins-gerrit-lint-12714):
https://gerrit.osmocom.org/c/libosmocore/+/35079/comment/ebf6c5e6_a0b1fc97
PS3, Line 388: static bool iofd_read_callback_set(struct osmo_io_fd* iofd)
"foo* bar" should be "foo *bar"



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Gerrit-Change-Number: 35079
Gerrit-PatchSet: 3
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein 
Gerrit-Attention: arehbein 
Gerrit-Attention: daniel 
Gerrit-Comment-Date: Wed, 29 Nov 2023 17:59:08 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[M] Change in libosmocore[master]: osmo_io: Remove union in struct osmo_io_ops

2023-11-29 Thread daniel
Attention is currently required from: arehbein.

daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email )

Change subject: osmo_io: Remove union in struct osmo_io_ops
..


Patch Set 3:

(1 comment)

File src/core/osmo_io.c:

https://gerrit.osmocom.org/c/libosmocore/+/35079/comment/b7664ff5_c2daa8a4
PS3, Line 546:  if (iofd->io_ops.read_cb)
The fact that this happened to work is even more reason to remove the union.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Gerrit-Change-Number: 35079
Gerrit-PatchSet: 3
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein 
Gerrit-Attention: arehbein 
Gerrit-Comment-Date: Wed, 29 Nov 2023 17:59:49 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[M] Change in libosmocore[master]: osmo_io: Remove union in struct osmo_io_ops

2023-11-29 Thread daniel
Attention is currently required from: arehbein.

Hello Jenkins Builder, arehbein,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email

to look at the new patch set (#4).


Change subject: osmo_io: Remove union in struct osmo_io_ops
..

osmo_io: Remove union in struct osmo_io_ops

This allows us to check that the correct callbacks are set. The checks
are already in e.g. osmo_iofd_write_msgb(), but the union prevented us
from distinguishing between write_cb() and sendto_cb() etc.

Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Related: #OS6263
---
M TODO-RELEASE
M include/osmocom/core/osmo_io.h
M src/core/osmo_io.c
3 files changed, 49 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/79/35079/4
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Gerrit-Change-Number: 35079
Gerrit-PatchSet: 4
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein 
Gerrit-Attention: arehbein 
Gerrit-MessageType: newpatchset


[S] Change in osmo-ttcn3-hacks[master]: hnbgw: Rename mgcp conns to reflect each side peer

2023-11-29 Thread pespin
pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35164?usp=email )


Change subject: hnbgw: Rename mgcp conns to reflect each side peer
..

hnbgw: Rename mgcp conns to reflect each side peer

Change-Id: Ie68d0397a56d48223fb4b1ffe1710f988518257f
---
M hnbgw/HNBGW_Tests.ttcn
1 file changed, 19 insertions(+), 10 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/64/35164/1

diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index 5bcd40c..67411ff 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -230,8 +230,8 @@
integer got_dlcx_count,
MgcpCallId mgcp_call_id optional,
MgcpEndpoint mgcp_ep,
-   CrcxResponse mgw_conn_1,
-   CrcxResponse mgw_conn_2,
+   CrcxResponse mgw_conn_ran,
+   CrcxResponse mgw_conn_cn,
uint7_t rtp_payload_type,
charstring rtp_sdp_format,
HostName hnb_rtp_ip,
@@ -247,13 +247,13 @@
got_dlcx_count := 0,
mgcp_call_id := omit,
mgcp_ep := "rtpbridge/1@mgw",
-   mgw_conn_1 := {
+   mgw_conn_ran := {
resp := 1,
mgw_rtp_ip := "127.1.2.1",
mgw_rtp_port := 1,
mgcp_connection_id := '1'H
},
-   mgw_conn_2 := {
+   mgw_conn_cn := {
resp := 1,
mgw_rtp_ip := "127.1.2.2",
mgw_rtp_port := 2,
@@ -1131,9 +1131,9 @@
  * Return true when an OK reply was sent, false otherwise.
  * Count occurrence of Osmux, include Osmux parameters in the reply if 
necessary. */
 function f_handle_crcx(inout MgcpParameters pars, MgcpCommand mgcp_cmd) return 
template MgcpResponse {
-   var CrcxResponse conn := pars.mgw_conn_1;
+   var CrcxResponse conn := pars.mgw_conn_ran;
if (pars.got_crcx_count > 0) {
-   conn := pars.mgw_conn_2;
+   conn := pars.mgw_conn_cn;
}
pars.got_crcx_count := pars.got_crcx_count + 1;

@@ -1252,7 +1252,7 @@
T.stop;

/* Expect RAB Assignment Request with IP/port from CRCX ACK via Iuh */
-   rab_sml := ts_RAB_SML(t_RAB_id(23), 
f_ts_RAB_TLA(pars.mgw_conn_1.mgw_rtp_ip), 
t_RAB_binding_port(pars.mgw_conn_1.mgw_rtp_port));
+   rab_sml := ts_RAB_SML(t_RAB_id(23), 
f_ts_RAB_TLA(pars.mgw_conn_ran.mgw_rtp_ip), 
t_RAB_binding_port(pars.mgw_conn_ran.mgw_rtp_port));
tx := valueof(ts_RANAP_RabAssReq(rab_sml));

f_rua_expect(tx);
@@ -1273,9 +1273,9 @@
[] MGCP.receive(tr_MDCX(tr_SDP(pars.hnb_rtp_ip, pars.hnb_rtp_port))) -> 
value mgcp_cmd {
log("MDCX1", mgcp_cmd);
/* Verify SDP of MDCX */
-   var SDP_Message sdp := 
valueof(ts_SDP(pars.mgw_conn_1.mgw_rtp_ip, pars.mgw_conn_1.mgw_rtp_ip, 
hex2str(pars.mgcp_call_id), "42", pars.mgw_conn_1.mgw_rtp_port,
+   var SDP_Message sdp := 
valueof(ts_SDP(pars.mgw_conn_ran.mgw_rtp_ip, pars.mgw_conn_ran.mgw_rtp_ip, 
hex2str(pars.mgcp_call_id), "42", pars.mgw_conn_ran.mgw_rtp_port,
{ int2str(pars.rtp_payload_type) }, { 
valueof(ts_SDP_rtpmap(pars.rtp_payload_type, pars.rtp_sdp_format)), 
valueof(ts_SDP_ptime(20)) } ));
-   var template MgcpResponse mgcp_rsp := 
ts_MDCX_ACK(mgcp_cmd.line.trans_id, pars.mgw_conn_1.mgcp_connection_id, sdp);
+   var template MgcpResponse mgcp_rsp := 
ts_MDCX_ACK(mgcp_cmd.line.trans_id, pars.mgw_conn_ran.mgcp_connection_id, sdp);
MGCP.send(valueof(mgcp_rsp));
}
/* Handle CRCX for second leg of endpoint, answer with IP/port */
@@ -1288,7 +1288,7 @@
}

/* Expect RAB Assignment Response with IP/port from second CRCX ACK */
-   rab_smdl := ts_RAB_SMdL(t_RAB_id(23), 
f_ts_RAB_TLA(pars.mgw_conn_2.mgw_rtp_ip), 
t_RAB_binding_port(pars.mgw_conn_2.mgw_rtp_port));
+   rab_smdl := ts_RAB_SMdL(t_RAB_id(23), 
f_ts_RAB_TLA(pars.mgw_conn_cn.mgw_rtp_ip), 
t_RAB_binding_port(pars.mgw_conn_cn.mgw_rtp_port));
tx := valueof(ts_RANAP_RabAssResp(rab_smdl));

f_bssap_expect(tx);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35164?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie68d0397a56d48223fb4b1ffe1710f988518257f
Gerrit-Change-Number: 35164
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-MessageType: newchange


[S] Change in osmo-ttcn3-hacks[master]: hnbgw: Rename record CrcxResponse->MgwResponse

2023-11-29 Thread pespin
pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35165?usp=email )


Change subject: hnbgw: Rename record CrcxResponse->MgwResponse
..

hnbgw: Rename record CrcxResponse->MgwResponse

The previous name is misleading, since they are also used during MDCX.

Change-Id: I1ffcb1100b0f92f7175ff08f9d4df49c0cf596b5
---
M hnbgw/HNBGW_Tests.ttcn
1 file changed, 15 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/65/35165/1

diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index 67411ff..7f2d6c0 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -219,7 +219,7 @@
sccp_addr_peer := omit
 }

-type record CrcxResponse {
+type record MgwResponse {
integer resp,
HostName mgw_rtp_ip,
PortNumber mgw_rtp_port,
@@ -230,8 +230,8 @@
integer got_dlcx_count,
MgcpCallId mgcp_call_id optional,
MgcpEndpoint mgcp_ep,
-   CrcxResponse mgw_conn_ran,
-   CrcxResponse mgw_conn_cn,
+   MgwResponse mgw_conn_ran,
+   MgwResponse mgw_conn_cn,
uint7_t rtp_payload_type,
charstring rtp_sdp_format,
HostName hnb_rtp_ip,
@@ -1131,7 +1131,7 @@
  * Return true when an OK reply was sent, false otherwise.
  * Count occurrence of Osmux, include Osmux parameters in the reply if 
necessary. */
 function f_handle_crcx(inout MgcpParameters pars, MgcpCommand mgcp_cmd) return 
template MgcpResponse {
-   var CrcxResponse conn := pars.mgw_conn_ran;
+   var MgwResponse conn := pars.mgw_conn_ran;
if (pars.got_crcx_count > 0) {
conn := pars.mgw_conn_cn;
}

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35165?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1ffcb1100b0f92f7175ff08f9d4df49c0cf596b5
Gerrit-Change-Number: 35165
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-MessageType: newchange


[S] Change in osmo-ttcn3-hacks[master]: hnbgw: Allow announcing a different mgw-local IuUP address after MDCX

2023-11-29 Thread pespin
pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35166?usp=email )


Change subject: hnbgw: Allow announcing a different mgw-local IuUP address 
after MDCX
..

hnbgw: Allow announcing a different mgw-local IuUP address after MDCX

This will allow emulating an MGW deciding to change its local IuUP IP
address due to received remote address in MGCP MDCX, and announce the
changed address back in MGCP MDCX. A test validating this scenario
against osmo-hnbgw will be added in a follow-up patch.

Related: SYS#6657
Change-Id: Ia724e0363a8bab56f5d31e7f7f7a127af584f935
---
M hnbgw/HNBGW_Tests.ttcn
1 file changed, 27 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/66/35166/1

diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index 7f2d6c0..d4073d1 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -222,6 +222,8 @@
 type record MgwResponse {
integer resp,
HostName mgw_rtp_ip,
+   /* if set, used after first received MDCX: */
+   HostName mgw_rtp_ip_mdcx optional,
PortNumber mgw_rtp_port,
MgcpConnectionId mgcp_connection_id
 }
@@ -250,12 +252,14 @@
mgw_conn_ran := {
resp := 1,
mgw_rtp_ip := "127.1.2.1",
+   mgw_rtp_ip_mdcx := omit,
mgw_rtp_port := 1,
mgcp_connection_id := '1'H
},
mgw_conn_cn := {
resp := 1,
mgw_rtp_ip := "127.1.2.2",
+   mgw_rtp_ip_mdcx := omit,
mgw_rtp_port := 2,
mgcp_connection_id := '2'H
},
@@ -1271,9 +1275,16 @@
interleave {
/* Expect MDCX with IP/port from RAB Assignment Response */
[] MGCP.receive(tr_MDCX(tr_SDP(pars.hnb_rtp_ip, pars.hnb_rtp_port))) -> 
value mgcp_cmd {
+   var HostName mgw_rtp_ip;
log("MDCX1", mgcp_cmd);
+   if (ispresent(pars.mgw_conn_ran.mgw_rtp_ip_mdcx)) {
+   mgw_rtp_ip := pars.mgw_conn_ran.mgw_rtp_ip_mdcx;
+   } else {
+   mgw_rtp_ip := pars.mgw_conn_ran.mgw_rtp_ip;
+   }
+
/* Verify SDP of MDCX */
-   var SDP_Message sdp := 
valueof(ts_SDP(pars.mgw_conn_ran.mgw_rtp_ip, pars.mgw_conn_ran.mgw_rtp_ip, 
hex2str(pars.mgcp_call_id), "42", pars.mgw_conn_ran.mgw_rtp_port,
+   var SDP_Message sdp := valueof(ts_SDP(mgw_rtp_ip, mgw_rtp_ip, 
hex2str(pars.mgcp_call_id), "42", pars.mgw_conn_ran.mgw_rtp_port,
{ int2str(pars.rtp_payload_type) }, { 
valueof(ts_SDP_rtpmap(pars.rtp_payload_type, pars.rtp_sdp_format)), 
valueof(ts_SDP_ptime(20)) } ));
var template MgcpResponse mgcp_rsp := 
ts_MDCX_ACK(mgcp_cmd.line.trans_id, pars.mgw_conn_ran.mgcp_connection_id, sdp);
MGCP.send(valueof(mgcp_rsp));

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35166?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia724e0363a8bab56f5d31e7f7f7a127af584f935
Gerrit-Change-Number: 35166
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-MessageType: newchange


[M] Change in osmo-ttcn3-hacks[master]: hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg

2023-11-29 Thread pespin
pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35167?usp=email )


Change subject: hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg
..

hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg

Change-Id: Ibfc37118ed3a67e4ca3f417273bedba127be7639
Related: SYS#6657
Related: OS#6127
---
M hnbgw/HNBGW_Tests.ttcn
M hnbgw/expected-results.xml
2 files changed, 50 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/67/35167/1

diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index d4073d1..15fc85f 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -606,7 +606,6 @@
/* We cannot use vc_conn.start(f_init_handler(fn, id, pars)); as we 
cannot have
 *  a stand-alone 'derefers()' call, see 
https://www.eclipse.org/forums/index.php/t/1091364/ */
pars.hnb := g_hnb_cfg[pars.hnb_idx];
-   pars.mgcp_pars := valueof(t_MgcpParams);
vc_conn.start(derefers(fn)(id, pars));
 }

@@ -993,6 +992,7 @@
cn_idx := f_cn_idx(ps_domain, cn_nr),
imsi := f_gen_imsi(imsi_suffix),
ps_domain := ps_domain,
+   mgcp_pars := t_MgcpParams,
hnb := omit,/* filled in later */
expect_separate_sccp_cr := expect_separate_sccp_cr,
tx_sccp_cr_data_len := tx_sccp_cr_data_len,
@@ -1276,9 +1276,13 @@
/* Expect MDCX with IP/port from RAB Assignment Response */
[] MGCP.receive(tr_MDCX(tr_SDP(pars.hnb_rtp_ip, pars.hnb_rtp_port))) -> 
value mgcp_cmd {
var HostName mgw_rtp_ip;
+   var boolean exp_rua_rab_reass := false;
log("MDCX1", mgcp_cmd);
if (ispresent(pars.mgw_conn_ran.mgw_rtp_ip_mdcx)) {
mgw_rtp_ip := pars.mgw_conn_ran.mgw_rtp_ip_mdcx;
+   if (pars.mgw_conn_ran.mgw_rtp_ip != 
pars.mgw_conn_ran.mgw_rtp_ip_mdcx) {
+   exp_rua_rab_reass := true;
+   }
} else {
mgw_rtp_ip := pars.mgw_conn_ran.mgw_rtp_ip;
}
@@ -1288,6 +1292,21 @@
{ int2str(pars.rtp_payload_type) }, { 
valueof(ts_SDP_rtpmap(pars.rtp_payload_type, pars.rtp_sdp_format)), 
valueof(ts_SDP_ptime(20)) } ));
var template MgcpResponse mgcp_rsp := 
ts_MDCX_ACK(mgcp_cmd.line.trans_id, pars.mgw_conn_ran.mgcp_connection_id, sdp);
MGCP.send(valueof(mgcp_rsp));
+
+   /* If IP address changed, we expect HNBGW to Modify the RAB 
through RAB-Ass-Req: */
+   if (exp_rua_rab_reass) {
+   var template RAB_SetupOrModifyList rab_sml;
+   /* Expect RAB Assignment Request with IP/port from MDCX 
ACK via Iuh */
+   rab_sml := ts_RAB_SML(t_RAB_id(23), 
f_ts_RAB_TLA(pars.mgw_conn_ran.mgw_rtp_ip_mdcx), 
t_RAB_binding_port(pars.mgw_conn_ran.mgw_rtp_port));
+   tx := valueof(ts_RANAP_RabAssReq(rab_sml));
+
+   f_rua_expect(tx);
+   /* Send back RAB Assignment Response via Iuh */
+   rab_smdl := ts_RAB_SMdL(t_RAB_id(23), 
f_ts_RAB_TLA(pars.hnb_rtp_ip), t_RAB_binding_port(pars.hnb_rtp_port));
+   tx := valueof(ts_RANAP_RabAssResp(rab_smdl));
+   RUA.send(tx);
+   /* This shouldn't trigger any MGCP, since nothing 
changed on the HNB IP side. Continue below. */
+   }
}
/* Handle CRCX for second leg of endpoint, answer with IP/port */
[] MGCP.receive(tr_CRCX(pars.mgcp_ep, tr_SDP(pars.cn_rtp_ip, 
pars.cn_rtp_port))) -> value mgcp_cmd {
@@ -1487,6 +1506,23 @@
f_shutdown_helper();
 }

+/* Test case where IuUP IP address announced by HNB and updated through MDCX
+ * makes MGW select a new local IuUP address. HNBGW is expected to update the 
HNB
+ * through RAB-Modify-Req. */
+testcase TC_rab_assign_mgw_iuup_addr_chg() runs on test_CT {
+   var ConnHdlr vc_conn;
+   g_num_hnbs := 1;
+   f_init();
+   var template (value) TestHdlrParams pars := t_pars(3);
+   /* Emulate change of local IuUP IP address after rx MDCX: */
+   pars.mgcp_pars.mgw_conn_ran.mgw_rtp_ip_mdcx := "127.3.2.1";
+
+   vc_conn := f_start_handler_with_pars(refers(f_tc_rab_assignment), pars);
+   vc_conn.done;
+
+   f_shutdown_helper();
+}
+
 /* Create an Iuh connection; send InitialUE; transceive data both directions */
 friend function f_tc_ranap_bidir(charstring id, TestHdlrParams pars) runs on 
ConnHdlr {
f_init_handler(pars);
@@ -2688,6 +2724,7 @@
execute(TC_rab_release());
execute(TC_rab_assign_fail());
execute(TC_rab_assign_mgcp_to());
+   execute(TC_rab_assign_mgw_iuup_addr_chg());
execute(TC_ranap_cs_mo_disconnect());
execute(TC_ranap_ps_mo_di

[M] Change in osmo-hnbgw[master]: mgw_fsm: Modify RAB on HNB if IuUP local IP addr at MGW changes durin...

2023-11-29 Thread pespin
pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/35168?usp=email )


Change subject: mgw_fsm: Modify RAB on HNB if IuUP local IP addr at MGW changes 
during MDCX
..

mgw_fsm: Modify RAB on HNB if IuUP local IP addr at MGW changes during MDCX

Allow IP address renegotation between HNB and MGW:
* Upon MGCP MDCX ACK received from the RAN-side conn, if the IP address/port
  changes, then restart the RAB-Ass-Req+Resp procedure on Iuh.
* Upon RAB-Ass-Resp received from the HNB, if the IP address/port changes,
  then go through another MDCX + MDCX ACK prcoedure on MGCP.

An MDCX counter is introduced to avoid infinite loops where the HNB and
the MGW keep changing their IP address triggered by the change on the
other side, eg. due to incorrect network/routing setup.
The counter is also used to track count in order to make sure that
always at least 1 MDCX is transmitted, in order to change conn_mode to
SEND_RECV.

Related: OS#6127
Change-Id: I936a50fed38a201c4a8da99b40f07082049e5157
---
M src/osmo-hnbgw/mgw_fsm.c
1 file changed, 110 insertions(+), 61 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/68/35168/1

diff --git a/src/osmo-hnbgw/mgw_fsm.c b/src/osmo-hnbgw/mgw_fsm.c
index e1e53fb..1e04f58 100644
--- a/src/osmo-hnbgw/mgw_fsm.c
+++ b/src/osmo-hnbgw/mgw_fsm.c
@@ -109,6 +109,11 @@
ranap_message *ranap_rab_ass_req_message;
ranap_message *ranap_rab_ass_resp_message;
struct msgb *ranap_rab_ass_resp_msgb;
+   /* IP address contained in ranap_rab_ass_resp_msgb/message: */
+   struct osmo_sockaddr hnb_rtp_addr;
+   /* Number of MDCX transmitted. Used to detect current mgw conn_mode and
+* detect modify infinite loops: */
+   unsigned int mdcx_tx_cnt;

/* MGW context */
struct mgcp_client *mgcpc;
@@ -205,8 +210,6 @@
struct mgw_fsm_priv *mgw_fsm_priv = fi->priv;
const struct mgcp_conn_peer *mgw_info;
struct osmo_sockaddr_str addr_str;
-   struct osmo_sockaddr *addr = &mgw_fsm_priv->ci_hnb_crcx_ack_addr;
-   RANAP_RAB_AssignmentRequestIEs_t *ies;
int rc;

switch (event) {
@@ -224,7 +227,7 @@
addr_str.af = AF_INET6;
addr_str.port = mgw_info->port;
osmo_strlcpy(addr_str.ip, mgw_info->addr, sizeof(addr_str.ip));
-   rc = osmo_sockaddr_str_to_sockaddr(&addr_str, &addr->u.sas);
+   rc = osmo_sockaddr_str_to_sockaddr(&addr_str, 
&mgw_fsm_priv->ci_hnb_crcx_ack_addr.u.sas);
if (rc < 0) {
LOGPFSML(fi, LOGL_ERROR,
 "Failed to convert RTP IP-address (%s) and 
Port (%u) to its binary representation\n",
@@ -233,16 +236,6 @@
return;
}

-   ies = 
&mgw_fsm_priv->ranap_rab_ass_req_message->msg.raB_AssignmentRequestIEs;
-   rc = ranap_rab_ass_req_ies_replace_inet_addr(ies, addr, 
mgw_fsm_priv->rab_id);
-   if (rc < 0) {
-   LOGPFSML(fi, LOGL_ERROR,
-"Failed to replace RTP IP-address (%s) and 
Port (%u) in RAB-AssignmentRequest\n",
-mgw_info->addr, mgw_info->port);
-   osmo_fsm_inst_state_chg(fi, MGW_ST_FAILURE, 0, 0);
-   return;
-   }
-
mgw_fsm_state_chg(fi, MGW_ST_ASSIGN);
return;
default:
@@ -256,8 +249,16 @@
struct hnbgw_context_map *map = mgw_fsm_priv->map;
RANAP_RAB_AssignmentRequestIEs_t *ies;
struct msgb *msg;
+   int rc;

ies = 
&mgw_fsm_priv->ranap_rab_ass_req_message->msg.raB_AssignmentRequestIEs;
+   rc = ranap_rab_ass_req_ies_replace_inet_addr(ies, 
&mgw_fsm_priv->ci_hnb_crcx_ack_addr, mgw_fsm_priv->rab_id);
+   if (rc < 0) {
+   LOGPFSML(fi, LOGL_ERROR, "Failed to replace RTP IP-address and 
Port in RAB-AssignmentRequest\n");
+   osmo_fsm_inst_state_chg(fi, MGW_ST_FAILURE, 0, 0);
+   return;
+   }
+
msg = ranap_rab_ass_req_encode(ies);
if (!msg) {
LOGPFSML(fi, LOGL_ERROR, "failed to re-encode 
RAB-AssignmentRequest message\n");
@@ -273,9 +274,72 @@

 static void mgw_fsm_assign(struct osmo_fsm_inst *fi, uint32_t event, void 
*data)
 {
+   struct mgw_fsm_priv *mgw_fsm_priv = fi->priv;
+   struct hnbgw_context_map *map = mgw_fsm_priv->map;
+   RANAP_RAB_AssignmentResponseIEs_t *ies;
+   bool rab_failed_at_hnb;
+   struct osmo_sockaddr addr;
+   enum mgw_fsm_state next_st;
+   int rc;
+
switch (event) {
case MGW_EV_RAB_ASS_RESP:
-   mgw_fsm_state_chg(fi, MGW_ST_MDCX_HNB);
+   LOGPFSML(fi, LOGL_DEBUG, "RAB-AssignmentResponse received, 
completing HNB side call-leg on MGW...\n");
+   ies = 
&

[M] Change in libosmocore[master]: osmo_io: Factor out and use common send function from backend

2023-11-29 Thread pespin
Attention is currently required from: daniel, laforge, lynxis lazus.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35078?usp=email )

Change subject: osmo_io: Factor out and use common send function from backend
..


Patch Set 2:

(3 comments)

File src/core/osmo_io.c:

https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/65b7ef21_6f5bf225
PS1, Line 348:  if (rc > 0 && rc < msgb_length(msg)) {
> Regarding your comment about rc == 0, maybe one missing failure case is rc == 
> 0  && rc < msgb_length […]
That should fall into the more generic "rc < msgb_length(msg)" condition, I 
don't think the specific case you mention should be handled differently.


https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/442aee50_3a53f950
PS1, Line 360:
> IMO rc == 0 in send means we have successfully "written" 0 bytes to the 
> socket (which also means the […]
ack, makes sense, the special case for rc=0 is in the recv path (socket 
closed). I doubt we'll ever see rc=0 here, I'd expect it to return -EAGAIN 
instead.

send(len=0) would probably return an error, or maybe it returns 0 instead to 
mention it is writable.


File src/core/osmo_io_uring.c:

https://gerrit.osmocom.org/c/libosmocore/+/35078/comment/be9f52f1_8e2dfc28
PS2, Line 196:  iofd_handle_send_completion(iofd, rc, msghdr);
The goto can easily be dropped:

if (IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED)) {
msgb_free(msghdr->msg);
iofd_msghdr_free(msghdr);
} else {
iofd_handle_send_completion(iofd, rc, msghdr);
}

iofd->u.uring.write_msghdr = NULL;
/* submit the next to-be-transmitted message for this file descriptor */
if (iofd->u.uring.write_enabled && !IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))
iofd_uring_submit_tx(iofd);

You can btw probably ass OSMO_UNLIKELY() to the if condition checking 
IOFD_FLAG_CLOSED.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35078?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6da2653d32aedd0e7872be0cf90a841b56462e59
Gerrit-Change-Number: 35078
Gerrit-PatchSet: 2
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus 
Gerrit-CC: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: laforge 
Gerrit-Attention: daniel 
Gerrit-Attention: lynxis lazus 
Gerrit-Comment-Date: Wed, 29 Nov 2023 18:26:15 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Comment-In-Reply-To: daniel 
Gerrit-MessageType: comment


[M] Change in libosmocore[master]: osmo_io: Remove union in struct osmo_io_ops

2023-11-29 Thread pespin
Attention is currently required from: arehbein, daniel, laforge.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email )

Change subject: osmo_io: Remove union in struct osmo_io_ops
..


Patch Set 4:

(1 comment)

Patchset:

PS4:
I'd actually keep the union, imho there's nothing wrong with it if used, plus:
- Doesn't break ABI with previous libosmocore release
- It saves some bytes on each osmo_io (there can be a big number of them in an 
app).

I agree though that the comment you mentioned should be fixed by checking the 
correct io_mode is in used before checking the pointer, since it's shared with 
other io_modes through the union.

TL;DR: Fix the code bugs, leave the union.

If still others prefer merging this, I won't oppose, just saying.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35079?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I138d57843edc29000530bb7896bcb239002ecbec
Gerrit-Change-Number: 35079
Gerrit-PatchSet: 4
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein 
Gerrit-Reviewer: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: arehbein 
Gerrit-Attention: laforge 
Gerrit-Attention: daniel 
Gerrit-Comment-Date: Wed, 29 Nov 2023 18:31:40 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in osmo-bts[master]: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

2023-11-29 Thread jolly
Attention is currently required from: fixeria, jolly, laforge.

Hello Jenkins Builder, fixeria, laforge,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email

to look at the new patch set (#6).

The following approvals got outdated and were removed:
Code-Review+1 by laforge, Verified+1 by Jenkins Builder


Change subject: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without 
L3 payload
..

LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

If the channel is activated for immediate assignment, the initial data
link establishment on main signaling link with SAPI 0 must have L3
infomation included in the SABM message. If this is not the case,
release the data link without notifying BSC.

Related: OS#5971
Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
---
M include/osmo-bts/lchan.h
M src/common/rsl.c
2 files changed, 37 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/82/35082/6
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
Gerrit-Change-Number: 35082
Gerrit-PatchSet: 6
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[M] Change in osmo-bts[master]: Use polling based LAPDm with frame numbers

2023-11-29 Thread jolly
Attention is currently required from: fixeria, jolly, laforge.

Hello Jenkins Builder, fixeria, laforge,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-bts/+/35007?usp=email

to look at the new patch set (#7).

The following approvals got outdated and were removed:
Code-Review+2 by fixeria, Code-Review-1 by laforge, Verified+1 by Jenkins 
Builder

The change is no longer submittable: Code-Review and Verified are unsatisfied 
now.


Change subject: Use polling based LAPDm with frame numbers
..

Use polling based LAPDm with frame numbers

Osmo-bts uses the new polling based LAPDm implementation.

The OML message NM_ATT_T200 is ignored, because T200 timeouts are set to
the minimal response time. Longer timeouts would cause lower throughput
in case of lost frames. Shorter timeouts would cause LAPDm to fail.

Related: OS#4074
Depends: libosmocore.git I6ebe83f829d7751ea9de1d90eb478c7a628db64c
Change-Id: Ic6d7902b13cf491daaa8752db78f9875387aeffd
---
M include/osmo-bts/bts.h
M include/osmo-bts/oml.h
M src/common/bts.c
M src/common/l1sap.c
M src/common/lchan.c
M src/common/oml.c
6 files changed, 108 insertions(+), 73 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/07/35007/7
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35007?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic6d7902b13cf491daaa8752db78f9875387aeffd
Gerrit-Change-Number: 35007
Gerrit-PatchSet: 7
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in osmo-bts[master]: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without L3 payload

2023-11-29 Thread Jenkins Builder
Attention is currently required from: fixeria, jolly, laforge.

Jenkins Builder has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email )

Change subject: LAPDm: Reject (release) establishment on DCCH, SAPI 0 without 
L3 payload
..


Patch Set 6:

(1 comment)

File src/common/rsl.c:

Robot Comment from checkpatch (run ID jenkins-gerrit-lint-12721):
https://gerrit.osmocom.org/c/osmo-bts/+/35082/comment/f624a0bf_62a63d35
PS6, Line 3841: /* Reject inital establishment without 
L3 info. */
'inital' may be misspelled - perhaps 'initial'?



--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
Gerrit-Change-Number: 35082
Gerrit-PatchSet: 6
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-CC: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 18:45:47 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: utils: Link with libosmoisdn to avoid undefined references

2023-11-29 Thread laforge
Attention is currently required from: daniel, fixeria, jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email )

Change subject: utils: Link with libosmoisdn to avoid undefined references
..


Patch Set 1: Code-Review-1

(1 comment)

Patchset:

PS1:
I think this is wrong.  Either libosmogsm depends on libosmoisdn, and then the 
dependency should be handled at the library level.  the user program shouldn't 
have to know downstream dependencies of the library they link to.  Or the 
application itself depends on libosmoisdn, at which point it is correct to 
directly link to it.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
Gerrit-Change-Number: 35163
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: jolly 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: daniel 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:42:37 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in osmo-hnbgw[master]: mgw_fsm: Modify RAB on HNB if IuUP local IP addr at MGW changes durin...

2023-11-29 Thread laforge
Attention is currently required from: pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/35168?usp=email )

Change subject: mgw_fsm: Modify RAB on HNB if IuUP local IP addr at MGW changes 
during MDCX
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/35168?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I936a50fed38a201c4a8da99b40f07082049e5157
Gerrit-Change-Number: 35168
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:43:49 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-ttcn3-hacks[master]: hnbgw: Rename mgcp conns to reflect each side peer

2023-11-29 Thread laforge
Attention is currently required from: pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35164?usp=email )

Change subject: hnbgw: Rename mgcp conns to reflect each side peer
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35164?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie68d0397a56d48223fb4b1ffe1710f988518257f
Gerrit-Change-Number: 35164
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:44:12 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-ttcn3-hacks[master]: hnbgw: Rename record CrcxResponse->MgwResponse

2023-11-29 Thread laforge
Attention is currently required from: pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35165?usp=email )

Change subject: hnbgw: Rename record CrcxResponse->MgwResponse
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35165?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1ffcb1100b0f92f7175ff08f9d4df49c0cf596b5
Gerrit-Change-Number: 35165
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:44:25 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmo-ttcn3-hacks[master]: hnbgw: Allow announcing a different mgw-local IuUP address after MDCX

2023-11-29 Thread laforge
Attention is currently required from: pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35166?usp=email )

Change subject: hnbgw: Allow announcing a different mgw-local IuUP address 
after MDCX
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35166?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia724e0363a8bab56f5d31e7f7f7a127af584f935
Gerrit-Change-Number: 35166
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:45:06 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in osmo-ttcn3-hacks[master]: hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg

2023-11-29 Thread laforge
Attention is currently required from: pespin.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35167?usp=email )

Change subject: hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35167?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ibfc37118ed3a67e4ca3f417273bedba127be7639
Gerrit-Change-Number: 35167
Gerrit-PatchSet: 1
Gerrit-Owner: pespin 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:45:28 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: utils: Link with libosmoisdn to avoid undefined references

2023-11-29 Thread fixeria
Attention is currently required from: daniel, fixeria, jolly, laforge.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email )

Change subject: utils: Link with libosmoisdn to avoid undefined references
..


Patch Set 1:

(2 comments)

Commit Message:

https://gerrit.osmocom.org/c/libosmocore/+/35163/comment/ec36a68b_72005910
PS1, Line 10: osmo-arfcn
Weird. osmo-arfcn is not calling any of these functions. It should not depend 
on LAPDm at all, it's just a very simple "calculator". Perhaps it's the 
`-no-undefined` in `libosmogsm_la_LDFLAGS` somehow triggering the linker? I am 
unable to reproduce this when building libosmocore locally.


Patchset:

PS1:
> I think this is wrong. […]
Those symbols are needed for libosmogsm. In `src/gsm/Makefile.am` we list 
`libosmoisdn.la` as a dependency of `libgsmint.la`, which in turn is a 
dependency of `libosmogsm.la`. I would expect `libosmoisdn.la` to be an 
explicit dependency of `libosmogsm.la`, just like the `libosmocore.la`.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
Gerrit-Change-Number: 35163
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: jolly 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-CC: fixeria 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: daniel 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 20:55:33 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge 
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: utils: Link with libosmoisdn to avoid undefined references

2023-11-29 Thread fixeria
Attention is currently required from: daniel, fixeria, jolly, laforge.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email )

Change subject: utils: Link with libosmoisdn to avoid undefined references
..


Patch Set 1:

(1 comment)

Patchset:

PS1:
> Those symbols are needed for libosmogsm. In `src/gsm/Makefile.am` we list 
> `libosmoisdn. […]
Running `make -C utils/ V=s` locally:

```
depbase=`echo osmo-arfcn.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -DBUILDING_LIBOSMOCORE 
-Wall -Wall  -pthread -std=gnu11 -DBUILDING_LIBOSMOCORE -Wall -MT osmo-arfcn.o 
-MD -MP -MF $depbase.Tpo -c -o osmo-arfcn.o osmo-arfcn.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall  -pthread -std=gnu11 
-DBUILDING_LIBOSMOCORE -Wall   -o osmo-arfcn osmo-arfcn.o 
../src/core/libosmocore.la ../src/gsm/libosmogsm.la
libtool: link: gcc -Wall -std=gnu11 -DBUILDING_LIBOSMOCORE -Wall -o 
.libs/osmo-arfcn osmo-arfcn.o  ../src/core/.libs/libosmocore.so 
../src/gsm/.libs/libosmogsm.so 
/home/fixeria/projects/osmocom/libosmocore/src/isdn/.libs/libosmoisdn.so 
/home/fixeria/projects/osmocom/libosmocore/src/core/.libs/libosmocore.so -lsctp 
-luring -lmnl -ltalloc -lgnutls -pthread -Wl,-rpath -Wl,/usr/local/lib
```

In my case `libosmoisdn.la` is listed, as expected. I can even remove 
`libosmocore.la` from the `LDADD` and the build would still succeed, since it's 
also an implicit dependency of `libosmogsm.la`.

```
fixeria@LEGION:~$ libtool --version
libtool (GNU libtool) 2.4.7.4-1ec8f-dirty

fixeria@LEGION:~$ /bin/ld -v
GNU ld (GNU Binutils) 2.41.0

fixeria@LEGION:~$ gcc -v
gcc version 13.2.1 20230801 (GCC)
```



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
Gerrit-Change-Number: 35163
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: jolly 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-CC: fixeria 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: daniel 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 29 Nov 2023 21:12:18 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge 
Comment-In-Reply-To: fixeria 
Gerrit-MessageType: comment


[S] Change in libosmocore[master]: utils: Link with libosmoisdn to avoid undefined references

2023-11-29 Thread fixeria
Attention is currently required from: daniel, jolly, laforge.

fixeria has removed fixeria from this change.  ( 
https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email )

Change subject: utils: Link with libosmoisdn to avoid undefined references
..


Removed reviewer fixeria .
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35163?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e99231899b269a4ec0faf720aff4dc8d2b74323
Gerrit-Change-Number: 35163
Gerrit-PatchSet: 1
Gerrit-Owner: daniel 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: jolly 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-CC: fixeria 
Gerrit-Attention: jolly 
Gerrit-Attention: laforge 
Gerrit-Attention: daniel 
Gerrit-MessageType: deleteReviewer


  1   2   >