arehbein has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/31092 )
Change subject: osmo-pcu: Transition to use of 'telnet_init_default'
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS1:
> I wonder why this comment was ignored and the patch was merged :/
I don't know (I didn't merge it). Is there some related follow-up that needs to be done here and in the other projects?
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/31092
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I9559486ce64a9ccf348b4ee0e1d09141dbc1ae8f
Gerrit-Change-Number: 31092
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 18 Feb 2023 17:55:04 +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: neels, laforge, fixeria, pespin.
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/28993 )
Change subject: Update multiaddr helper
......................................................................
Patch Set 15:
(2 comments)
This change is ready for review.
File src/socket.c:
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/d50974e3_a6308368
PS9, Line 220:
> (assert()s also clarify to the reader the intended usage, and to coverity what to expect. […]
Done
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/b23b0bfe_d9439222
PS9, Line 236: if (hosts[i])
> That seems like odd side-effect to me for which I couldn't find any tests. […]
Done
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28993
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Icef53fe4b6e51563d97a1bc48001d67679b3b6e9
Gerrit-Change-Number: 28993
Gerrit-PatchSet: 15
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-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 18 Feb 2023 17:22:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: msuraev <msuraev(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, laforge, pespin, fixeria.
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/28995 )
Change subject: Add osmo_sockaddr_to_str_buf3()
......................................................................
Patch Set 10:
(1 comment)
This change is ready for review.
File include/osmocom/core/sockaddr_str.h:
https://gerrit.osmocom.org/c/libosmocore/+/28995/comment/15241651_8c310e6c
PS9, Line 64: ((R) && (R)->af == AF_INET6) ? "[" : "", \
> IIUC the only need for using [] in IPv6 addresses is to differentiate the address from the port part […]
Done
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28995
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I36f20701663c3c7eae7fedc6551da44800b325bf
Gerrit-Change-Number: 28995
Gerrit-PatchSet: 10
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-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: dexter <pmaier(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 18 Feb 2023 17:14:18 +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: neels, laforge, fixeria, pespin, msuraev.
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/28993 )
Change subject: Update multiaddr helper
......................................................................
Patch Set 14:
(5 comments)
This change is ready for review.
Commit Message:
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/10b1579c_df3fe954
PS13, Line 10: * properly handle OOM
> OOM is not the responsibility of functions like snprintf(), the caller shall check rc < len
Done
File src/core/socket.c:
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/ccb888a8_bf79f780
PS13, Line 229: const struct sockaddr *addr = &(*addrs)[i];
> to conform with typical osmo style, suggest using struct osmo_sockaddr instead, and below use addr. […]
Simply changing addr type to "const struct osmo_sockaddr *" leads to memory corruption. Perhaps that's because we're casting from double pointer (we receive array of sockaddr structs)? Did I misunderstood your suggestion?
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/2e9664a6_cb459aa7
PS13, Line 244: OSMO_STRBUF_PRINTF(*sb, "%s%s", oss->ip, after);
> no need to use osmo_sockaddr_str here, instead do […]
We can't use osmo_sockaddr_to_str_buf2 because it always prints port in addition to host. I've added similar function in preceeding patch.
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/e2bf3560_19ed923a
PS13, Line 252: return -ENOSPC;
> do not size check!! this breaks the osmo_strbuf usage. […]
Done
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/31718281_3658a78a
PS13, Line 260:
> just put the function block of multiaddr_strbuf() in here. […]
Done
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28993
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Icef53fe4b6e51563d97a1bc48001d67679b3b6e9
Gerrit-Change-Number: 28993
Gerrit-PatchSet: 14
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-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 18 Feb 2023 17:07:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31032 )
Change subject: Add function to set Sa bits to common part
......................................................................
Add function to set Sa bits to common part
Change-Id: I4f5f975f0e5f708ae573a1e1ce41c6a08c207fad
---
M TODO-RELEASE
M include/osmocom/abis/e1_input.h
M src/e1_input.c
3 files changed, 20 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/TODO-RELEASE b/TODO-RELEASE
index d0852fc..c021505 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
# If any interfaces have been added since the last public release: c:r:a + 1.
# If any interfaces have been removed or changed since the last public release: c:r:0.
#library what description / commit summary line
+libosmo-abis struct e1inp_driver Field added at the end (ABI break)
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index 7b97a46..a66f8eb 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -187,6 +187,9 @@
int default_delay;
int has_keepalive;
const char *bind_addr;
+
+ /* Set Sa bits to transmit in TS0 (MSB to LSB): Sa8 Sa7 Sa5 Sa4 Sa64 Sa63 Sa62 Sa61/Sa6 */
+ int (*set_sa_bits)(struct e1inp_line *line, uint8_t sa_bits);
};
struct e1inp_line_ops {
@@ -328,6 +331,12 @@
/* configure and initialize one timeslot dedicated to nothing */
int e1inp_ts_config_none(struct e1inp_ts *ts, struct e1inp_line *line);
+/*
+ * configure Sa bits on TS0, if supported by driver (TABLE 5A and 5B of ITU-T G.704)
+ * sa_bits (MSB to LSB): Sa8 Sa7 Sa5 Sa4 Sa64 Sa63 Sa62 Sa61/Sa6
+ */
+int e1inp_ts_set_sa_bits(struct e1inp_line *line, uint8_t sa_bits);
+
/* obtain a string identifier/name for the given timeslot */
void e1inp_ts_name(char *out, size_t out_len, const struct e1inp_ts *ts);
diff --git a/src/e1_input.c b/src/e1_input.c
index a7313dd..2d10513 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -455,6 +455,16 @@
return 0;
}
+int e1inp_ts_set_sa_bits(struct e1inp_line *line, uint8_t sa_bits)
+{
+ struct e1inp_driver *driver;
+
+ driver = line->driver;
+ if (!driver->set_sa_bits)
+ return -ENOTSUP;
+ return driver->set_sa_bits(line, sa_bits);
+}
+
static int e1inp_line_use_cb(struct osmo_use_count_entry *use_count_entry, int32_t old_use_count,
const char *file, int file_line)
{
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31032
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I4f5f975f0e5f708ae573a1e1ce41c6a08c207fad
Gerrit-Change-Number: 31032
Gerrit-PatchSet: 5
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: merged
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31035 )
Change subject: Use correct bit order of RAW channels at misdn driver
......................................................................
Use correct bit order of RAW channels at misdn driver
mISDN Kernel driver uses reversed bit order for RAW (transparent)
channels. With this patch, the order is reversed. Now it uses the
same bit order as RTP payload does. Also it uses same bit order as
other drivers do, like dahdi and e1d.
Change-Id: I77b899bceacdf5484ea9a841cad55775864b4c82
---
M src/input/misdn.c
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/src/input/misdn.c b/src/input/misdn.c
index fc06857..9c3da98 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -514,6 +514,7 @@
LOGPITS(e1i_ts, DLMIB, LOGL_DEBUG, "RAW CHAN TX: %s\n", osmo_hexdump(msg->data, msg->len));
+ osmo_revbytebits_buf(msg->data, msg->len);
hh = (struct mISDNhead *) msgb_push(msg, sizeof(*hh));
hh->prim = PH_DATA_REQ;
hh->id = 0;
@@ -560,6 +561,7 @@
case PH_DATA_IND:
/* remove the Misdn Header */
msg->l2h = msgb_pull(msg, MISDN_HEADER_LEN);
+ osmo_revbytebits_buf(msg->data, msg->len);
LOGPITS(e1i_ts, DLMIB, LOGL_DEBUG, "RAW CHAN RX: %s\n",
osmo_hexdump(msgb_l2(msg), msgb_l2len(msg)));
return e1inp_rx_ts(e1i_ts, msg, 0, 0);
5 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31035
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I77b899bceacdf5484ea9a841cad55775864b4c82
Gerrit-Change-Number: 31035
Gerrit-PatchSet: 9
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged