pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/34228 )
Change subject: socket: Avoid aborting socket creation if setsockopt for ASCONF fails
......................................................................
socket: Avoid aborting socket creation if setsockopt for ASCONF fails
Avoid aborting the entire socket creation, since those sockopt are fairly
new in the kernel (v5.4), and the feature can still be enabled in older
versions system-wide with sysctl. The worst it can happen is that the
ability to submit address updates (such as Peer Primary Address) doesn't
work, which is not really critical.
Related: SYS#6501
Change-Id: Iff261c8592b6b3c4237c90c84b4e8e921e3c4a65
---
M src/core/socket.c
1 file changed, 20 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/src/core/socket.c b/src/core/socket.c
index 02d05e2..3c2ba50 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -850,7 +850,8 @@
LOGP(DLGLOBAL, LOGL_ERROR,
"cannot setsockopt(SCTP_AUTH_SUPPORTED) socket: %s:%u: %s\n",
strbuf, local_port, strerror(err));
- goto ret_close;
+ /* do not fail, some features such as Peer Primary Address won't be available
+ * unless configured system-wide through sysctl */
}
rc = setsockopt_sctp_asconf_supported(sfd);
@@ -860,7 +861,8 @@
LOGP(DLGLOBAL, LOGL_ERROR,
"cannot setsockopt(SCTP_ASCONF_SUPPORTED) socket: %s:%u: %s\n",
strbuf, local_port, strerror(err));
- goto ret_close;
+ /* do not fail, some features such as Peer Primary Address won't be available
+ * unless configured system-wide through sysctl */
}
}
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/34228
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iff261c8592b6b3c4237c90c84b4e8e921e3c4a65
Gerrit-Change-Number: 34228
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/34215 )
Change subject: Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
......................................................................
Patch Set 5: Code-Review+2
(2 comments)
File osmo_dia2gsup-master/Dockerfile:
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/25e310d9_24e…
PS2, Line 19: rebar3 escriptize
> I tried but $distro-erlang image is already changing the user to some non-root user which then doesn […]
Ok, fine then.
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/6eb8b157_c98…
PS2, Line 26: --config /data/osmo_dia2gsup.config
> Ack
Done
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34215
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
Gerrit-Change-Number: 34215
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 13:36:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/34223 )
Change subject: osmo_ortp: register a PayloadType for RTP_PT_CSDATA
......................................................................
Patch Set 1: Code-Review+2
(2 comments)
File src/trau/osmo_ortp.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/34223/comment/4873b6f0_8c7055b3
PS1, Line 42: static PayloadType *payload_type_clearmode;
> I wonder why do we need all these static variables taking memory if they are not really used at all […]
TBH, I have no idea. We can try getting rid of them in a separate patch.
https://gerrit.osmocom.org/c/libosmo-abis/+/34223/comment/9e3017dd_72168a09
PS1, Line 307: rtp_profile_set_payload(osmo_pt_profile, RTP_PT_AMR, &payload_type_amr);
> I'm unable to find where does payload_type_amr come from, I don't see it declared anywhere... […]
It's provided by libortp:
```
include/ortp/payloadtype.h:ORTP_VAR_PUBLIC PayloadType payload_type_amr;
```
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/34223
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I48e91d2c4e9124ee1b7eb88e26af24603aa69f25
Gerrit-Change-Number: 34223
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 13:34:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: osmith, fixeria.
Hello osmith, Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/34215
to look at the new patch set (#5).
Change subject: Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
......................................................................
Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
- Add a docker container to run osmo_dia2gsup from git master.
- Add infrastructure to run the osmo-dia2gsup container against
osmo-ttcn3-hacks.git/dia2gsup testsuite.
Related: OS#5757
Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
---
M jenkins-common.sh
M make/Makefile
A osmo_dia2gsup-master/Dockerfile
A osmo_dia2gsup-master/Makefile
A osmo_dia2gsup-master/osmo_dia2gsup.config
A ttcn3-dia2gsup-test/DIA2GSUP_Tests.cfg
A ttcn3-dia2gsup-test/Dockerfile
A ttcn3-dia2gsup-test/Makefile
A ttcn3-dia2gsup-test/jenkins.sh
A ttcn3-dia2gsup-test/osmo_dia2gsup.config
10 files changed, 143 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/15/34215/5
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34215
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
Gerrit-Change-Number: 34215
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: osmith, fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/34215 )
Change subject: Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
......................................................................
Patch Set 4:
(5 comments)
File osmo_dia2gsup-master/Dockerfile:
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/b08337ce_0eb…
PS2, Line 19: rebar3 escriptize
> Maybe copy the resulting `osmo-dia2gsup` to `/usr/local/bin` here, so that it's easier to call it?
I tried but $distro-erlang image is already changing the user to some non-root user which then doesn't have rights to copy stuff to /usr/local/bin.
I didn't want to go the way to change that and all dependent images, so I'm just running the binary from the local path since anyway it's only used in this container.
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/256626d8_924…
PS2, Line 26: --config /data/osmo_dia2gsup.config
> You're passing the config file twice. […]
Ack
File ttcn3-dia2gsup-test/Makefile:
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/0bb5d4bd_6c7…
PS2, Line 1:
> ws
Ack
File ttcn3-dia2gsup-test/jenkins.sh:
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/a763f9cc_577…
PS2, Line 6: debian-bookworm-erlang
> This looks like a dependency of `osmo_dia2gsup-$IMAGE_SUFFIX`, and should not be listed here if so. […]
Ack
https://gerrit.osmocom.org/c/docker-playground/+/34215/comment/7f2acb00_cf6…
PS2, Line 31: /bin/sh -c "ERL_FLAGS='-config /data/osmo_dia2gsup.config' /tmp/osmo_dia2gsup/_build/default/bin/osmo-dia2gsup --config /data/osmo_dia2gsup.config >/data/osmo_dia2gsup.log 2>&1"
> This line is already specified in `CMD` of the respective Dockerfile, why duplicating it here?
Ack
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34215
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
Gerrit-Change-Number: 34215
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 12:28:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
pespin has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/34200 )
Change subject: debian-*-erlang: Install libsctp to enable sctp support in erlang apps
......................................................................
debian-*-erlang: Install libsctp to enable sctp support in erlang apps
The current "--enable-sctp" flag when building erlang consists of
supporting SCTP if the libsctp library is found at runtime, by
dynamically linking to it only when SCTP features are requested.
The erlang package in debian only lists libsctp as a Build-Depends, but
it is not installed by default, so apps wishing to use SCTP will fail:
"""
[error] CRASH REPORT Process <0.155.0> with 0 neighbours crashed with reason: no match of right hand value {error,{shutdown,{open,eprotonosupport}
"""
Installing the libsctp library fixes the issue.
Related: OS#5757
Change-Id: I5ca332f9064c16491116608577b3f68379d840e6
---
M debian-bookworm-erlang/Dockerfile
M debian-bullseye-erlang/Dockerfile
2 files changed, 24 insertions(+), 0 deletions(-)
Approvals:
osmith: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/debian-bookworm-erlang/Dockerfile b/debian-bookworm-erlang/Dockerfile
index 0c13fd5..811500e 100644
--- a/debian-bookworm-erlang/Dockerfile
+++ b/debian-bookworm-erlang/Dockerfile
@@ -46,6 +46,7 @@
apt-get update && \
apt-get install -y --no-install-recommends \
libpcap-dev \
+ libsctp1 \
&& \
apt-get clean
diff --git a/debian-bullseye-erlang/Dockerfile b/debian-bullseye-erlang/Dockerfile
index 9477ebc..9a90c0c 100644
--- a/debian-bullseye-erlang/Dockerfile
+++ b/debian-bullseye-erlang/Dockerfile
@@ -37,6 +37,7 @@
RUN apt-get update && \
apt-get -y install \
libpcap-dev \
+ libsctp1 \
&& \
apt-get clean
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34200
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I5ca332f9064c16491116608577b3f68379d840e6
Gerrit-Change-Number: 34200
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
Attention is currently required from: arehbein, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/34224 )
Change subject: stream tests: Eliminate timestamps from output
......................................................................
Patch Set 2: Code-Review-2
(1 comment)
Patchset:
PS2:
I'm sorry but I just have the feeling that you are now just simply giving an excuse saying they are a burden because you don't know why suddenly timestamps are changing. I'm not finding this acceptable.
Furthermore, I'm not even understanding if they are changing already in master or only as a result of your next patch.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/34224
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I7faed932927d4f6e328a28c7f30a647a7272e89c
Gerrit-Change-Number: 34224
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: arehbein <arehbein(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 12:23:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: osmith.
Hello osmith, Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/34215
to look at the new patch set (#4).
Change subject: Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
......................................................................
Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
- Add a docker container to run osmo_dia2gsup from git master.
- Add infrastructure to run the osmo-dia2gsup container against
osmo-ttcn3-hacks.git/dia2gsup testsuite.
Related: OS#5757
Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
---
M jenkins-common.sh
M make/Makefile
A osmo_dia2gsup-master/Dockerfile
A osmo_dia2gsup-master/Makefile
A osmo_dia2gsup-master/osmo_dia2gsup.config
A ttcn3-dia2gsup-test/DIA2GSUP_Tests.cfg
A ttcn3-dia2gsup-test/Dockerfile
A ttcn3-dia2gsup-test/Makefile
A ttcn3-dia2gsup-test/jenkins.sh
A ttcn3-dia2gsup-test/osmo_dia2gsup.config
10 files changed, 146 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/15/34215/4
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34215
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
Gerrit-Change-Number: 34215
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: pespin, daniel.
Hello osmith, Jenkins Builder, fixeria, daniel,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/34200
to look at the new patch set (#4).
Change subject: debian-*-erlang: Install libsctp to enable sctp support in erlang apps
......................................................................
debian-*-erlang: Install libsctp to enable sctp support in erlang apps
The current "--enable-sctp" flag when building erlang consists of
supporting SCTP if the libsctp library is found at runtime, by
dynamically linking to it only when SCTP features are requested.
The erlang package in debian only lists libsctp as a Build-Depends, but
it is not installed by default, so apps wishing to use SCTP will fail:
"""
[error] CRASH REPORT Process <0.155.0> with 0 neighbours crashed with reason: no match of right hand value {error,{shutdown,{open,eprotonosupport}
"""
Installing the libsctp library fixes the issue.
Related: OS#5757
Change-Id: I5ca332f9064c16491116608577b3f68379d840e6
---
M debian-bookworm-erlang/Dockerfile
M debian-bullseye-erlang/Dockerfile
2 files changed, 24 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/00/34200/4
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34200
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I5ca332f9064c16491116608577b3f68379d840e6
Gerrit-Change-Number: 34200
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge, fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/34223 )
Change subject: osmo_ortp: register a PayloadType for RTP_PT_CSDATA
......................................................................
Patch Set 1: Code-Review+1
(2 comments)
File src/trau/osmo_ortp.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/34223/comment/e3d2f363_d5075621
PS1, Line 42: static PayloadType *payload_type_clearmode;
I wonder why do we need all these static variables taking memory if they are not really used at all after create_payload_types() finishes....
https://gerrit.osmocom.org/c/libosmo-abis/+/34223/comment/4894211b_e31f4e59
PS1, Line 307: rtp_profile_set_payload(osmo_pt_profile, RTP_PT_AMR, &payload_type_amr);
I'm unable to find where does payload_type_amr come from, I don't see it declared anywhere... :/
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/34223
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I48e91d2c4e9124ee1b7eb88e26af24603aa69f25
Gerrit-Change-Number: 34223
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 12:13:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/34228 )
Change subject: socket: Avoid aborting socket creation if setsockopt for ASCONF fails
......................................................................
socket: Avoid aborting socket creation if setsockopt for ASCONF fails
Avoid aborting the entire socket creation, since those sockopt are fairly
new in the kernel (v5.4), and the feature can still be enabled in older
versions system-wide with sysctl. The worst it can happen is that the
ability to submit address updates (such as Peer Primary Address) doesn't
work, which is not really critical.
Related: SYS#6501
Change-Id: Iff261c8592b6b3c4237c90c84b4e8e921e3c4a65
---
M src/core/socket.c
1 file changed, 20 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/28/34228/1
diff --git a/src/core/socket.c b/src/core/socket.c
index 02d05e2..3c2ba50 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -850,7 +850,8 @@
LOGP(DLGLOBAL, LOGL_ERROR,
"cannot setsockopt(SCTP_AUTH_SUPPORTED) socket: %s:%u: %s\n",
strbuf, local_port, strerror(err));
- goto ret_close;
+ /* do not fail, some features such as Peer Primary Address won't be available
+ * unless configured system-wide through sysctl */
}
rc = setsockopt_sctp_asconf_supported(sfd);
@@ -860,7 +861,8 @@
LOGP(DLGLOBAL, LOGL_ERROR,
"cannot setsockopt(SCTP_ASCONF_SUPPORTED) socket: %s:%u: %s\n",
strbuf, local_port, strerror(err));
- goto ret_close;
+ /* do not fail, some features such as Peer Primary Address won't be available
+ * unless configured system-wide through sysctl */
}
}
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/34228
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iff261c8592b6b3c4237c90c84b4e8e921e3c4a65
Gerrit-Change-Number: 34228
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: osmith.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/34227 )
Change subject: jobs/coverity: fix path to home dir
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/34227
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I87fadd2dffcfaa04eaa942dfb8a496334cb722d5
Gerrit-Change-Number: 34227
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 11:20:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: pespin, daniel.
arehbein has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/34224 )
Change subject: stream tests: Eliminate timestamps from output
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS1:
> Removing time from test output just because you don't know why it changes it not a valid rationale. […]
Well you're right, I have adapted the rationale.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/34224
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I7faed932927d4f6e328a28c7f30a647a7272e89c
Gerrit-Change-Number: 34224
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 11:19:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: arehbein, daniel.
Hello Jenkins Builder, pespin, daniel,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-netif/+/34224
to look at the new patch set (#2).
Change subject: stream tests: Eliminate timestamps from output
......................................................................
stream tests: Eliminate timestamps from output
There is no reason to keep track of timestamps in this test and maintining precisely the same timestamps can be time consuming.
If we want to guarantee certain timings, those won't depend on absolute timestamps (overridden or not), so we should either add specific tests for timings, or add some overall max. time for the test to run through.
Change-Id: I7faed932927d4f6e328a28c7f30a647a7272e89c
---
M tests/stream/stream_test.c
M tests/stream/stream_test.err
M tests/stream/stream_test.ok
3 files changed, 139 insertions(+), 135 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/24/34224/2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/34224
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I7faed932927d4f6e328a28c7f30a647a7272e89c
Gerrit-Change-Number: 34224
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: arehbein <arehbein(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: dexter.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34194 )
Change subject: PCUIF: use confirm flag in struct gsm_pcu_if_pch
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34194
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: I7017ca20ca7e0b77d0f363121e4f17280e39e8ac
Gerrit-Change-Number: 34194
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 11:18:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/34226
to look at the new patch set (#2).
Change subject: debian-bookworm-build: add curl
......................................................................
debian-bookworm-build: add curl
Add curl, as required by the coverity job to submit the API request.
Change-Id: I70eb2b94d0eda4b371d674e1087b4dc13397dcdf
---
M debian-bookworm-build/Dockerfile
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/26/34226/2
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34226
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I70eb2b94d0eda4b371d674e1087b4dc13397dcdf
Gerrit-Change-Number: 34226
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset
Attention is currently required from: dexter.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/34191 )
Change subject: pcuif_proto: use confirm flag in struct gsm_pcu_if_pch
......................................................................
Patch Set 3: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/34191
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I3364d2268bdef9c4d2feeb8e3d51a64e34bca68c
Gerrit-Change-Number: 34191
Gerrit-PatchSet: 3
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 11:12:39 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/34225 )
Change subject: sigtran: Document SCTP (peer) primary address configuration
......................................................................
sigtran: Document SCTP (peer) primary address configuration
Related: OS#6076
Related: SYS#6501
Change-Id: I8737ca3033293391c999395e2db1fe19cac3e911
---
M common/chapters/sigtran.adoc
1 file changed, 95 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-manuals refs/changes/25/34225/1
diff --git a/common/chapters/sigtran.adoc b/common/chapters/sigtran.adoc
index 51ef65e..3f819a3 100644
--- a/common/chapters/sigtran.adoc
+++ b/common/chapters/sigtran.adoc
@@ -358,6 +358,90 @@
multiple `local-ip` VTY commands within one `asp` (SCTP client role) or
within one `listen m3ua 2905` (SCTP server role).
+==== SCTP Primary Address
+
+SCTP has the concept of "primary address" in an association. The primary address
+is a remote address selected from those announced by the peer, and it is the
+"active" one chosen to transmit user data. The other remote addresses, that are not
+used, are kept as backups, and only used to transmit user data whenever the SCTP
+implementation decides to change the primary address, be it due to user policy
+configuration change or due to the previous primary link becoming unusable. Only
+confirmed remote addresses (through HEARTBEAT mechanism) are electable to be
+used as primary address.
+
+By default, the Linux kernel SCTP stack implementation will probably take the
+first remote address provided at connect() time in order to start the initial
+handshake, and continue with next provided remote addresses if the first one
+fails to confirm the handshake. The remote address which successfully confirmed
+the handshake is then used as a primary address (since it's likely the only
+confirmed so far), and will be kept until the link is considered down.
+
+Some deployment setups may have requirements on preferred links to be used when
+transmitting data (eg. network setups with primary and secondary paths). This
+can be accomplished by explicitly notifying the kernel to use one of the remote
+addresses through the SCTP_PRIMARY_ADDR sockopt, plus monitoring the address
+availability changes on the socket and re-enforcing the primary address when it
+becomes available again. This is supported in the Osmocom SIGTRAN stack by using
+the `primary` parameter in one of the `remote-ip` commands under the `asp` node:
+
+----
+cs7 instance 0
+ asp my-asp 2905 0 m3ua
+ remote-ip 10.11.12.13
+ remote-ip 16.17.18.19 primary <1>
+ ...
+----
+<1> Use 16.17.18.19 as primary address for the SCTP association. User data will
+be in general transmitted over this path.
+
+==== SCTP Peer Primary Address
+
+The SCTP extension ASCONF (RFC5061) allows, when negotiated and supported by
+both peers, to dynamically announce to the peer the addition or deletion of IP
+addresses to the association. It also allows one peer announcing to the other
+peer the desired IP address it should be using as a primary address when sending
+data to it.
+
+In the Linux kernel SCTP stack, this is accomplished by setting the sockopt
+SCTP_SET_PEER_PRIMARY_ADDR, which will trigger an ASCONF SCTP message to the
+peer with the provided local IP address.This is supported in the Osmocom SIGTRAN
+stack by using the `primary` parameter in one of the `local-ip` commands under
+the `asp` node:
+
+----
+cs7 instance 0
+ asp my-asp 2905 0 m3ua
+ local-ip 10.11.12.13
+ local-ip 16.17.18.19 primary <1>
+ ...
+----
+<1> Announce 16.17.18.19 to the peer as the primary address to be used when
+transmitting user data to us.
+
+In order to be able to use this feature, the SCTP association peer must support
+the ASCONF extension. The extension support is negotiation during the INIT
+handhsake of the association. Furthermore, for ASCONF features to work properly,
+the assoc also needs to announce/use the AUTH extension, as per RFC5061 section
+4.2.7. Otherwise, the peer receiving an SCTP INIT with
+ExtensionFeatures=ASCONF,ASCONF_ACK but without AUTH, will reject the assoc with
+an ABORT since it's not complying with spec (this behavior can be tweaked
+through sysctl "net.sctp.addip_noauth_enable").
+
+As of the time of writing this documentation (linux 6.4.12) and since basically
+ever, those extensions are runtime-disabled by default. They can be enabled per
+socket using the kernel sockopts SCTP_ASCONF_SUPPORTED and SCTP_AUTH_SUPPORTED,
+and that's what the Osmocom stack is currently doing for all SCTP sockets.
+However, those sockopts are farily new (linux v5.4), which means user running
+older kernels will see in the logs setting those sockopts fail, but connection
+will keep ongoing, simply without those features available (so setting `primary`
+in the configuration won't have any effect here).
+On those older kernels, if this feature is still desired, it can be used
+by means of enabling the SCTP extensions in all socket system-wide through sysctl:
+----
+net.sctp.auth_enable=1
+net.sctp.addip_enable=1
+----
+
==== SCTP role
The _SCTP role_ defines which of the two L4 protocol roles SCTP assumes:
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/34225
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-Change-Id: I8737ca3033293391c999395e2db1fe19cac3e911
Gerrit-Change-Number: 34225
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
osmith has submitted this change. ( https://gerrit.osmocom.org/c/meta-telephony/+/34206 )
Change subject: libosmocore: use --disable-uring
......................................................................
libosmocore: use --disable-uring
Disable it as the library is not available in OE packaging, and kernels
are probably too old to make use of this feature.
Related: OS#5751
Change-Id: I92335090e49de82384ac3ff837cbad48fcc5c3f5
---
M recipes-osmocom/libosmocore/libosmocore_git.bb
1 file changed, 14 insertions(+), 1 deletion(-)
Approvals:
daniel: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
osmith: Verified
diff --git a/recipes-osmocom/libosmocore/libosmocore_git.bb b/recipes-osmocom/libosmocore/libosmocore_git.bb
index 292596f..8bd37de 100644
--- a/recipes-osmocom/libosmocore/libosmocore_git.bb
+++ b/recipes-osmocom/libosmocore/libosmocore_git.bb
@@ -24,7 +24,7 @@
RREPLACES_libosmogsm = "DONOTREPLACElibosmocore"
RREPLACES_libosmovty = "DONOTREPLACElibosmocore"
-EXTRA_OECONF += "--disable-pcsc"
+EXTRA_OECONF += "--disable-pcsc --disable-uring"
# OS#4062: Some gcc version (< 7.3.0) on ARM generate wrong code for __thread
# variables that crash at runtime. It seems, due to some unknown reason, that we
--
To view, visit https://gerrit.osmocom.org/c/meta-telephony/+/34206
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: meta-telephony
Gerrit-Branch: 201705
Gerrit-Change-Id: I92335090e49de82384ac3ff837cbad48fcc5c3f5
Gerrit-Change-Number: 34206
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: merged
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/meta-telephony/+/34206 )
Change subject: libosmocore: use --disable-uring
......................................................................
Patch Set 1: Verified+1
--
To view, visit https://gerrit.osmocom.org/c/meta-telephony/+/34206
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: meta-telephony
Gerrit-Branch: 201705
Gerrit-Change-Id: I92335090e49de82384ac3ff837cbad48fcc5c3f5
Gerrit-Change-Number: 34206
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Aug 2023 10:24:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment