Attention is currently required from: falconia.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/37311?usp=email )
Change subject: fix E1 TS output when used with osmo-e1d
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-mgw/+/37311/comment/a937735b_e4490875
PS1, Line 16: correctly.
This commit log could just say:
"Use proper API e1inp_ts_send_raw() to enqueue messages in ts->raw.tx_queue, so that e1inp driver notification works properly."
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/37311?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: I6ce9a1dea6834632faf75059e85ca9a0c25d57c2
Gerrit-Change-Number: 37311
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: falconia <falcon(a)freecalypso.org>
Gerrit-Comment-Date: Tue, 02 Jul 2024 02:18:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/37321?usp=email )
Change subject: mux from not-started raw TS: fill with 0xFF
......................................................................
mux from not-started raw TS: fill with 0xFF
When the channelized mux reads from a raw TS, but that raw TS is
not in tx_started state yet, the read function returns "fake" data.
However, it was actually returning uninitialized memory content,
rather than 0xFF filler used everywhere else, thereby transmitting
uninit-memory garbage to whatever is connected to the E1 line.
Change it to fill with 0xFF, same as the filler used in other cases
such as inactive timeslots.
Change-Id: I42849a6d19b020bab789853c3b60af6a1c09f92f
---
M src/mux_demux.c
1 file changed, 20 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/21/37321/1
diff --git a/src/mux_demux.c b/src/mux_demux.c
index a0ae717..72379fe 100644
--- a/src/mux_demux.c
+++ b/src/mux_demux.c
@@ -55,8 +55,10 @@
/* If we're not started yet, we 'fake' data until the other side
* send something */
- if (l < 0 && errno == EAGAIN && !ts->raw.tx_started)
+ if (l < 0 && errno == EAGAIN && !ts->raw.tx_started) {
+ memset(buf, 0xFF, len);
return len;
+ }
ts->raw.tx_started = true;
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/37321?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I42849a6d19b020bab789853c3b60af6a1c09f92f
Gerrit-Change-Number: 37321
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-MessageType: newchange
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/37318?usp=email )
Change subject: configure.ac: lower libusb-1.0 requirement to 1.0.20
......................................................................
configure.ac: lower libusb-1.0 requirement to 1.0.20
Current configure.ac requires libusb version to be >= 1.0.21.
Slackware 14.2 has libusb version 1.0.20. Lowering the
requirement in configure.ac produces a successful build,
i.e., the actual code does not use any libusb APIs that are
new with version 1.0.21.
Change-Id: I15586757e2985184359a4488c79f2c587affeb56
---
M configure.ac
1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/18/37318/1
diff --git a/configure.ac b/configure.ac
index 8bec040..cea8eb4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,7 @@
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.9.0)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.9.0)
PKG_CHECK_MODULES(LIBOSMOUSB, libosmousb >= 1.9.0)
-PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.21)
+PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.20)
AC_CONFIG_MACRO_DIR([m4])
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/37318?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I15586757e2985184359a4488c79f2c587affeb56
Gerrit-Change-Number: 37318
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-MessageType: newchange
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/37319?usp=email )
Change subject: e1_ts_stop: clear tx_started flag
......................................................................
e1_ts_stop: clear tx_started flag
ts->raw.tx_started flag gets set in the channelized mux process
when bytes begin arriving from the raw TS client application.
However, there is no reset of this flag anywhere, hence if a user
opens some TS, then kills that client application, then opens it
again (with the same or different client app), there is a flood
of error messages about TS read underflow. Solution: clear the
tx_started flag when the TS is stopped.
Change-Id: I28ff68208f1d3d20dc57c5306fec74bd2f884cb1
---
M src/ctl.c
1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/19/37319/1
diff --git a/src/ctl.c b/src/ctl.c
index e63589b..a9818b3 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -119,6 +119,7 @@
ts->raw.rx_buf = NULL;
ts->raw.rx_buf_size = 0;
ts->raw.rx_buf_used = 0;
+ ts->raw.tx_started = false;
}
static void
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/37319?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I28ff68208f1d3d20dc57c5306fec74bd2f884cb1
Gerrit-Change-Number: 37319
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-MessageType: newchange