fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/29160 )
Change subject: Fix handling of Re-Synchronization-Info AVP in AIR
......................................................................
Fix handling of Re-Synchronization-Info AVP in AIR
Below is an example of a decoded Requested-EUTRAN-Authentication-Info:
[{
'Requested-EUTRAN-Authentication-Info',
[1], %% Number-Of-Requested-Vectors
[1], %% Immediate-Response-Preferred
[[ %% Re-Synchronization-Info
154,153,78,226,63,248,178,208,169,186,215,18,159,150,252,
103,249,220,169,90,223,249,219,26,172,118,171,193,216,221
]],
[] %% AVP
}]
As can be seen, the value of Re-Synchronization-Info is not a binary,
but a list, so indeed is_binary(ReSyncInfo) would yeild false. Use
is_list() instead and convert to binary using list_to_binary().
Change-Id: Ie5eded2f5fb2de01f69d2a9c0e5d70283bf5cbf5
Related: OS#5646
---
M src/server_cb.erl
1 file changed, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo_dia2gsup refs/changes/60/29160/1
diff --git a/src/server_cb.erl b/src/server_cb.erl
index dc7fe59..9893cb3 100644
--- a/src/server_cb.erl
+++ b/src/server_cb.erl
@@ -189,10 +189,11 @@
GsupTx1 = #{message_type => send_auth_info_req, imsi => list_to_binary(UserName),
supported_rat_types => [rat_eutran_sgs], current_rat_type => rat_eutran_sgs},
case ReqEU of
- #'Requested-EUTRAN-Authentication-Info'{'Re-Synchronization-Info' = ReSyncInfo}
- when is_binary(ReSyncInfo) ->
- GsupTx2 = #{rand => string:substr(ReSyncInfo, 1, 16),
- auts => string:substr(ReSyncInfo, 17)};
+ #'Requested-EUTRAN-Authentication-Info'{'Re-Synchronization-Info' = [ReSyncInfo]}
+ when is_list(ReSyncInfo) ->
+ ReSyncInfoBin = list_to_binary(ReSyncInfo),
+ GsupTx2 = #{rand => string:substr(ReSyncInfoBin, 1, 16),
+ auts => string:substr(ReSyncInfoBin, 17)};
_ ->
GsupTx2 = #{}
end,
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/29160
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: Ie5eded2f5fb2de01f69d2a9c0e5d70283bf5cbf5
Gerrit-Change-Number: 29160
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/29159 )
Change subject: cosmetic: constify function parameters, return proper error
......................................................................
Set Ready For Review
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29159
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I398e3efa3e097de8907617cfdf363e1d3b96f666
Gerrit-Change-Number: 29159
Gerrit-PatchSet: 1
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Thu, 18 Aug 2022 15:00:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/29158 )
Change subject: cosmetic: add spec reference
......................................................................
Set Ready For Review
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29158
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I4d6bf9d0e681db779770b2fb815f7f9c5e608b15
Gerrit-Change-Number: 29158
Gerrit-PatchSet: 1
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Thu, 18 Aug 2022 15:00:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: neels.
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/29084 )
Change subject: SIGTRAN: cache Optional Data for SCCP CR and CC
......................................................................
Patch Set 6:
(1 comment)
This change is ready for review.
Patchset:
PS6:
That's preliminary version: the cache size of 256 is arbitrary, seems like osmo_sccp_tx_data() doesn't make any data fragmentation so I'm unsure how to properly handle larger optional data yet.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29084
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I0033faf9da393418930252233ce74d62cd1cef8a
Gerrit-Change-Number: 29084
Gerrit-PatchSet: 6
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 18 Aug 2022 14:58:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: neels, msuraev.
Hello Jenkins Builder, neels, laforge, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-sccp/+/29085
to look at the new patch set (#9).
Change subject: SCCP: Log more data on CR size error
......................................................................
SCCP: Log more data on CR size error
Related: OS#5579
Change-Id: I4d7fc44fde5b900907ec5ebec0450040a764802a
---
M src/sccp.c
1 file changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/85/29085/9
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29085
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I4d7fc44fde5b900907ec5ebec0450040a764802a
Gerrit-Change-Number: 29085
Gerrit-PatchSet: 9
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: neels, fixeria, msuraev.
Hello Jenkins Builder, neels, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-sccp/+/29087
to look at the new patch set (#10).
Change subject: SIGTRAN: add function to check connection existence
......................................................................
SIGTRAN: add function to check connection existence
Add convenience helper to check if particular connection ID exists and use it to
properly report errors when attempting to send messages over non-existent connections.
Change-Id: Iffedf55b4c292ee6b2f97bcdeef6dc13c050ce01
---
M examples/sccp_test_vty.c
M include/osmocom/sigtran/sccp_helpers.h
M src/sccp_helpers.c
M src/sccp_scoc.c
4 files changed, 36 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/87/29087/10
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29087
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: Iffedf55b4c292ee6b2f97bcdeef6dc13c050ce01
Gerrit-Change-Number: 29087
Gerrit-PatchSet: 10
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-MessageType: newpatchset
neels has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/29121 )
Change subject: use_count: Return if uc is NULL
......................................................................
use_count: Return if uc is NULL
The documentation for osmo_use_count_get_put states the return value is
"Negative on range violations or USE_LIST == NULL, the use_cb()'s
return value, or 0 on success"
However, the code in _osmo_use_count_get_put doesn't check if uc is NULL
- instead it would crash in osmo_use_count_find() where it is dereferenced.
Add a check for uc and return -EINVAL if it is NULL.
Change-Id: I792563696860a3100e95cafdd5fe57511819ef56
Related: SYS#5895
---
M src/use_count.c
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
neels: Looks good to me, approved
fixeria: Looks good to me, but someone else must approve
dexter: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/src/use_count.c b/src/use_count.c
index 6c52899..9714403 100644
--- a/src/use_count.c
+++ b/src/use_count.c
@@ -235,6 +235,8 @@
{
struct osmo_use_count_entry *e;
int32_t old_use_count;
+ if (!uc)
+ return -EINVAL;
if (!change)
return 0;
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/29121
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I792563696860a3100e95cafdd5fe57511819ef56
Gerrit-Change-Number: 29121
Gerrit-PatchSet: 2
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: daniel.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/29121 )
Change subject: use_count: Return if uc is NULL
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/29121
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I792563696860a3100e95cafdd5fe57511819ef56
Gerrit-Change-Number: 29121
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 18 Aug 2022 14:13:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: neels, daniel.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/29121 )
Change subject: use_count: Return if uc is NULL
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/29121
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I792563696860a3100e95cafdd5fe57511819ef56
Gerrit-Change-Number: 29121
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 18 Aug 2022 14:06:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/o…
Package network:osmocom:nightly/osmo-upf failed to build in openSUSE_Tumbleweed/x86_64
Check out the package for editing:
osc checkout network:osmocom:nightly osmo-upf
Last lines of build log:
[ 44s] checking whether to build static libraries... yes
[ 44s] checking for pkg-config... /usr/bin/pkg-config
[ 44s] checking for x86_64-suse-linux-gnu-pkg-config... /usr/bin/x86_64-suse-linux-gnu-pkg-config
[ 44s] checking pkg-config is at least version 0.20... yes
[ 44s] checking for LIBOSMOCORE... yes
[ 44s] checking for LIBOSMOVTY... yes
[ 44s] checking for LIBOSMOCTRL... yes
[ 44s] checking for LIBOSMOGTLV... no
[ 44s] configure: error: Package requirements (libosmo-gtlv >= 0.1.0) were not met:
[ 44s]
[ 44s] Package 'libosmo-gtlv', required by 'virtual:world', not found
[ 44s]
[ 44s] Consider adjusting the PKG_CONFIG_PATH environment variable if you
[ 44s] installed software in a non-standard prefix.
[ 44s]
[ 44s] Alternatively, you may set the environment variables LIBOSMOGTLV_CFLAGS
[ 44s] and LIBOSMOGTLV_LIBS to avoid the need to call pkg-config.
[ 44s] See the pkg-config man page for more details.
[ 44s] error: Bad exit status from /var/tmp/rpm-tmp.sj6drq (%build)
[ 44s]
[ 44s] RPM build errors:
[ 44s] Bad exit status from /var/tmp/rpm-tmp.sj6drq (%build)
[ 44s] ### VM INTERACTION START ###
[ 44s] [ 37.697494][ T1] sysrq: Power Off
[ 44s] [ 37.700408][ T18] reboot: Power down
[ 44s] ### VM INTERACTION END ###
[ 44s]
[ 44s] lamb16 failed "build osmo-upf.spec" at Thu Aug 18 13:29:37 UTC 2022.
[ 44s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)