Attention is currently required from: pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/27916 )
Change subject: CM Serv Rej: do not crash on use count mismatch
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> That's my point, this shutdown is done because something is wrong in the code. […]
I know, but still, *let's not crash osmo-msc*.
the conn is being released, a use count confusion is not critical
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/27916
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I2009df42d1f27ec0d011e22bfc46dbc17afe7239
Gerrit-Change-Number: 27916
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 30 Apr 2022 20:34:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27988 )
Change subject: octoi: only memcpy() if it is present in _octoi_tx_echo()
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27988
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I5f5ed937643162d6ef6ce0cf2908432c007943c1
Gerrit-Change-Number: 27988
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Sat, 30 Apr 2022 10:52:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27988 )
Change subject: octoi: only memcpy() if it is present in _octoi_tx_echo()
......................................................................
octoi: only memcpy() if it is present in _octoi_tx_echo()
If the caller specifies zero-length data or a NULL pointer, don't
attempt to call memcpy() on that.
Change-Id: I5f5ed937643162d6ef6ce0cf2908432c007943c1
---
M src/octoi/octoi_sock.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/88/27988/1
diff --git a/src/octoi/octoi_sock.c b/src/octoi/octoi_sock.c
index 4245d80..eac07ee 100644
--- a/src/octoi/octoi_sock.c
+++ b/src/octoi/octoi_sock.c
@@ -130,7 +130,8 @@
} u;
u.echo.seq_nr = htons(seq_nr);
- memcpy(u.echo.data, data, data_len);
+ if (data && data_len)
+ memcpy(u.echo.data, data, data_len);
if (is_req)
msgt = E1OIP_MSGT_ECHO_REQ;
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27988
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I5f5ed937643162d6ef6ce0cf2908432c007943c1
Gerrit-Change-Number: 27988
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27987 )
Change subject: bts/osmo-bts.cfg: reduce OML logging verbosity, degrade to notice
......................................................................
bts/osmo-bts.cfg: reduce OML logging verbosity, degrade to notice
Average size of osmo-bts.log after running ttcn3-bts-test is ~178 MB,
and more than 52% (!) of it is the OML logging messages. Other than
making the logfile bigger, bursts of OML messages make it really hard
to follow the output of osmo-bts when running tests natively.
Change-Id: Ib5346a3ca42917169e195f905472ccea7579e5eb
---
M bts/osmo-bts.cfg
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/87/27987/1
diff --git a/bts/osmo-bts.cfg b/bts/osmo-bts.cfg
index 5609212..f581be0 100644
--- a/bts/osmo-bts.cfg
+++ b/bts/osmo-bts.cfg
@@ -18,7 +18,6 @@
!
logging level set-all notice
logging level rsl info
- logging level oml info
logging level meas info
logging level pag info
logging level l1c info
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27987
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: Ib5346a3ca42917169e195f905472ccea7579e5eb
Gerrit-Change-Number: 27987
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27986 )
Change subject: BTS_Tests: fix expectations in TC_speech_no_rtp_tch[fh]
......................................................................
BTS_Tests: fix expectations in TC_speech_no_rtp_tch[fh]
On receipt of a FACCH block, trxcon generates not only a DATA.ind,
but also one or two artificial TRAFFIC.ind with BFI. These BFIs
have CRC != 0 indicating their nature, so my initial assumption
about CRC being 0 was incorrect.
Instead of checking CRC, let's count received dummy FACCH frammes.
This patch makes both TC_speech_no_rtp_tch[fh] pass.
Change-Id: Ic680002f60e598cfeeb448c517581b3506355e5b
Related: SYS#5919
Fixes: OS#4823
---
M bts/BTS_Tests.ttcn
1 file changed, 27 insertions(+), 12 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/86/27986/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 06fe43b..4bcb90b 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -7893,10 +7893,12 @@
Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
}
+/* Verify that we get dummy FACCH blocks on Downlink in the absence of RTP frames */
private function f_TC_speech_no_rtp(charstring id) runs on ConnHdlr {
- var template L1ctlDlMessage tr_bad_frame;
+ var integer facch_count := 0;
+ var integer facch_count_exp;
var L1ctlDlMessage l1_dl;
- timer T := 8.0;
+ timer T := 2.0;
f_l1_tune(L1CTL);
RSL.clear;
@@ -7907,27 +7909,40 @@
f_sleep(2.0); /* ... so let's give the L1 some time to stabilize */
L1CTL.clear;
- /* A universal template for bad Downlink frame: {DATA,TRAFFIC}.ind */
- tr_bad_frame := tr_L1CTL_TRAFFIC_IND(g_chan_nr, tr_RslLinkID_DCCH(0));
- tr_bad_frame.header.msg_type := (L1CTL_DATA_IND, L1CTL_TRAFFIC_IND);
- tr_bad_frame.dl_info.fire_crc := (1..255); /* != 0 */
- tr_bad_frame.payload := ?;
-
T.start;
alt {
- /* OS#4823: DATA.ind or TRAFFIC.ind with bad CRC most likely means that
- * the IUT is sending *dummy bursts*, so the L1 fails to decode them. */
- [] L1CTL.receive(tr_bad_frame) -> value l1_dl {
- setverdict(fail, "Received {DATA,TRAFFIC}.ind with bad CRC: ", l1_dl);
+ /* Expect dummy FACCH frames with LAPDm func=UI */
+ [] L1CTL.receive(tr_L1CTL_DATA_IND(g_chan_nr, tr_RslLinkID_DCCH(0))) -> value l1_dl {
+ var octetstring payload := l1_dl.payload.data_ind.payload;
+ /* XXX: TITAN does not support match(payload, '0303012b?#19'O) */
+ if (substr(payload, 0, 4) != '0303012B'O) {
+ setverdict(fail, "Unexpected FACCH payload := ", payload);
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+ }
+ log("Rx FACCH frame: ", payload);
+ facch_count := facch_count + 1;
+ repeat;
}
[] as_l1_sacch();
[] L1CTL.receive { repeat; }
[] T.timeout {
/* We're done, break the loop */
+ log("Rx ", facch_count, " dummy FACCH blocks");
setverdict(pass);
}
}
+ /* Expect a certain number of FACCH frames depending on the channel rate */
+ if (match(g_chan_nr, t_RslChanNr_Bm(?))) {
+ facch_count_exp := 90; /* ~50 FACCH/F blocks/s, so at least 90 in 2s */
+ } else {
+ facch_count_exp := 40; /* ~25 FACCH/H blocks/s, so at least 40 in 2s */
+ }
+ if (facch_count < facch_count_exp) {
+ setverdict(fail, "Expected at least ", facch_count_exp, " DL FACCH frames, ",
+ "but received ", facch_count);
+ }
+
f_rsl_chan_deact();
f_L1CTL_DM_REL_REQ(L1CTL, g_chan_nr);
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27986
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: Ic680002f60e598cfeeb448c517581b3506355e5b
Gerrit-Change-Number: 27986
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange