Attention is currently required from: jolly, pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31031 )
Change subject: Add more L1 signals to common part
......................................................................
Patch Set 4: Code-Review+1
(1 comment)
Patchset:
PS4:
i still don't understand the motivation but seems you know what you're doing
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31031
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I295dc340d3d3a7cbb5aba5afe807746acbcde33f
Gerrit-Change-Number: 31031
Gerrit-PatchSet: 4
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 02:35:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: jolly, pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31034 )
Change subject: Add setting of Sa bits to misdn driver
......................................................................
Patch Set 7:
(1 comment)
File src/input/misdn.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/31034/comment/e3766c99_027fee8d
PS7, Line 314: (sa_bits >> 4) & 1, (sa_bits >> 5) & 1, sa_bits & 1, (sa_bits >> 6) & 1, sa_bits >> 7);
(just saying because it was discussed before: this indent is fine. it doesn't align with the opening brace, but indenting by a single tab is also good)
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31034
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I54205a2534a7638cc071888d853f9d6d312dc9f0
Gerrit-Change-Number: 31034
Gerrit-PatchSet: 7
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 02:32:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: jolly, pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31033 )
Change subject: Add L1 signals to misdn driver
......................................................................
Patch Set 7:
(1 comment)
File src/input/misdn.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/31033/comment/655f695a_290aa100
PS5, Line 110: get_value_string(e1inp_signal_names, S_L_INP_LINE_SA_BITS),
> Yes, indeed. I'll indent it to column after "LOGP(".
btw, i usually indent to the opening brace because that's what vim does for me, but also simply indenting by one tab is totally fine and has its own benefits.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31033
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Id8b6fad9b073cf92eee92a6906bf5b57af37e2f0
Gerrit-Change-Number: 31033
Gerrit-PatchSet: 7
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 02:29:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: jolly <andreas(a)eversberg.eu>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: jolly, pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31031 )
Change subject: Add more L1 signals to common part
......................................................................
Patch Set 4:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/libosmo-abis/+/31031/comment/0cd74022_dab14e8a
PS4, Line 8:
would be good to explain the aim here, and point at the code that will use this, e.g. by a gerrit change-id hash
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31031
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I295dc340d3d3a7cbb5aba5afe807746acbcde33f
Gerrit-Change-Number: 31031
Gerrit-PatchSet: 4
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 02:25:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: jolly, pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31032 )
Change subject: Add function to set Sa bits to common part
......................................................................
Patch Set 4:
(2 comments)
Patchset:
PS4:
(btw often gerrit indicates a merge conflict that isn't really one, just rebase and submit again should solve that)
File TODO-RELEASE:
https://gerrit.osmocom.org/c/libosmo-abis/+/31032/comment/03735e29_91d6c1ea
PS1, Line 12: libosmo-abis struct e1inp_driver Field addet at the end
> typo: added. […]
Done
--
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: 4
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-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 02:22:21 +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: fixeria, pespin, msuraev.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/28993 )
Change subject: Update multiaddr helper
......................................................................
Patch Set 13: Code-Review-1
(6 comments)
Commit Message:
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/1bd38237_d7fbe84d
PS13, Line 10: * properly handle OOM
OOM is not the responsibility of functions like snprintf(), the caller shall check rc < len
File src/core/socket.c:
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/ac9b0dc0_7f1faa20
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.u.sas; and osmo_sockaddr_to_str_buf2() (s.b.)
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/e232e1d3_265fbe3b
PS13, Line 244: OSMO_STRBUF_PRINTF(*sb, "%s%s", oss->ip, after);
no need to use osmo_sockaddr_str here, instead do
OSMO_STRBUF_APPEND(sb, osmo_sockaddr_to_str_buf2, &addr);
OSMO_STRBUF_PRINTF(sb, "%s", after);
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/0b126cdc_9bb4fd8a
PS13, Line 252: return -ENOSPC;
do not size check!! this breaks the osmo_strbuf usage.
A foo_buf() function should always return sb.chars_needed, the nr of characters that *would* have been written if the buffer were long enough, like snprintf() does. this enables the caller to allocate enough buffer and call the function again (which OSMO_NAME_C_IMPL() does). That is the entire idea behind the OSMO_STRBUF_* macros, which never write past the buffer length and ensure terminating nul like snprintf(). Also same as with snprintf(), it is the caller's responsibility to check that the returned len is < the buffer len.
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/29a24887_23e643d7
PS13, Line 260:
just put the function block of multiaddr_strbuf() in here.
the typical pattern we have is foo_buf() and foo_c() functions, rather not open another family of functions that pass osmo_strbuf around. OSMO_STRBUF_APPEND() is there to just use the foo_buf() variant efficiently and avoid passing osmo_strbuf around. IOW an osmo_strbuf should remain within a function body.
File src/socket.c:
https://gerrit.osmocom.org/c/libosmocore/+/28993/comment/2ef79e93_a505c1fb
PS9, Line 220:
> Seems rather pointless to me: that's a static function with only few invocations, not part of public […]
(assert()s also clarify to the reader the intended usage, and to coverity what to expect. so it's a good thing to add, but also not super critical)
--
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: 13
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: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 02:07:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
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: fixeria, msuraev.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/31299 )
Change subject: socket: propagate error in osmo_sock_unix_init() to the caller
......................................................................
Patch Set 2:
(2 comments)
File src/core/socket.c:
https://gerrit.osmocom.org/c/libosmocore/+/31299/comment/49812fc3_4e563c93
PS1, Line 1422: return -1;
> Removing this looks unrelated. […]
agree
possibly need to do more of rc = -errno above, connect() and bind() manpages should tell
File src/core/socket.c:
https://gerrit.osmocom.org/c/libosmocore/+/31299/comment/e1b8fde0_e3a11fe6
PS2, Line 1401: close(sfd);
rather keep the 'goto err', instead of duplicating the exit-cleanup code
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/31299
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia90d2ca3106b58dc5953d930f13df829d5b6966f
Gerrit-Change-Number: 31299
Gerrit-PatchSet: 2
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-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 13 Feb 2023 01:25:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment