Attention is currently required from: msuraev.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/29555 )
Change subject: Better handling of send() error
......................................................................
Patch Set 1:
(1 comment)
File src/stream.c:
https://gerrit.osmocom.org/c/libosmo-netif/+/29555/comment/e928417a_c2f18203
PS1, Line 1335: LOGP(DLINP, LOGL_ERROR, "error to send: %s\n", (ret == -1) ? strerror(errno) : strerror(-ret));
there's no function here returning a value < -1, so this line should be totally changed.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/29555
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Iaa7e16e717c56466c5d9a64deb438776ca88022e
Gerrit-Change-Number: 29555
Gerrit-PatchSet: 1
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 03 Oct 2022 08:40:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: keith.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/29559 )
Change subject: Update MNCC field validation mask.
......................................................................
Patch Set 1:
(2 comments)
Commit Message:
https://gerrit.osmocom.org/c/osmo-msc/+/29559/comment/e562f6ac_0c86370d
PS1, Line 13: #OS5282
OS#5282
File src/libmsc/mncc.c:
https://gerrit.osmocom.org/c/osmo-msc/+/29559/comment/281e3ca4_ab5eb5b4
PS1, Line 113: 0x7fff
Good catch. It's indeed so easy to forget updating this mask because all other MNCC_F_* entries are defined in 'include/osmocom/msc/mncc.h', while this one lives here. I believe it's a good idea to move MNCC_F_ALL to the header. Will submit a patch on top of yours.
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/29559
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I9e7d224e7f2d6d2824b2466752b6e8c994ac5a3d
Gerrit-Change-Number: 29559
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: keith <keith(a)rhizomatica.org>
Gerrit-Comment-Date: Mon, 03 Oct 2022 08:38:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-sip-connector/+/29560
to look at the new patch set (#2).
Change subject: Set MNCC_F_GCR field when the gcr is present
......................................................................
Set MNCC_F_GCR field when the gcr is present
Commit bd66804082bf813a1f925c6af4df28fd664ac1de established that the
MNCC field flag MNCC_F_GCR should be set when the GCR is present,
but did not set it.
Change-Id: Idad3210055a0d25be6220301b965e3d4c7323692
---
M src/mncc.c
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/60/29560/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-sip-connector/+/29560
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Change-Id: Idad3210055a0d25be6220301b965e3d4c7323692
Gerrit-Change-Number: 29560
Gerrit-PatchSet: 2
Gerrit-Owner: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset
keith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sip-connector/+/29560 )
Change subject: Set MNCC_F_GCR field when the gcr is present
......................................................................
Set MNCC_F_GCR field when the gcr is present
Commit bd66804082bf813a1f925c6af4df28fd664ac1de established that the
MNCC field flag MNCC_F_GCR should be set when the GCR is present,
but did not set it.
Change-Id: Idad3210055a0d25be6220301b965e3d4c7323692
---
M src/mncc.c
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/60/29560/1
diff --git a/src/mncc.c b/src/mncc.c
index f302b3e..ddc1ae6 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -936,10 +936,13 @@
/* Encode the Global Call Reference (if present) */
if (call->gcr_present) {
msg = msgb_alloc(sizeof(mncc.gcr), "MNCC GCR");
- if (msg == NULL || (rc = osmo_enc_gcr(msg, &call->gcr)) == 0)
+ if (msg == NULL || (rc = osmo_enc_gcr(msg, &call->gcr)) == 0) {
LOGP(DMNCC, LOGL_ERROR, "MNCC leg(%u) failed to encode GCR\n", call->id);
- else
+ } else {
memcpy(&mncc.gcr[0], msg->data, rc);
+ mncc.fields |= MNCC_F_GCR;
+ }
+
msgb_free(msg);
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-sip-connector/+/29560
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Change-Id: Idad3210055a0d25be6220301b965e3d4c7323692
Gerrit-Change-Number: 29560
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith(a)rhizomatica.org>
Gerrit-MessageType: newchange
keith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/29559 )
Change subject: Update MNCC field validation mask.
......................................................................
Update MNCC field validation mask.
In c6921e5068ba62cde67707fb3c8103919d1e0c0e, 0x4000 was added to the
possible MNCC field flags, but before this commit, using it would
result in an ERROR of "Unknown MNCC field mask 0x....."
Related: #OS5282
Change-Id: I9e7d224e7f2d6d2824b2466752b6e8c994ac5a3d
---
M src/libmsc/mncc.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/59/29559/1
diff --git a/src/libmsc/mncc.c b/src/libmsc/mncc.c
index 0a38997..f446f98 100644
--- a/src/libmsc/mncc.c
+++ b/src/libmsc/mncc.c
@@ -110,7 +110,7 @@
* MNCC validation code. Move to libosmocore once headers are merged
************************************************************************/
-#define MNCC_F_ALL 0x3fff
+#define MNCC_F_ALL 0x7fff
static int check_string_terminated(const char *str, unsigned int size)
{
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/29559
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I9e7d224e7f2d6d2824b2466752b6e8c994ac5a3d
Gerrit-Change-Number: 29559
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith(a)rhizomatica.org>
Gerrit-MessageType: newchange