Attention is currently required from: laforge, fixeria, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/32181 )
Change subject: tests: Add initial osmo_io tests
......................................................................
Patch Set 3:
(2 comments)
File tests/osmo_io/osmo_io_test.c:
https://gerrit.osmocom.org/c/libosmocore/+/32181/comment/6b87a6cd_252d080a
PS2, Line 41: void *ctx = NULL;
> static? not critical in a test, though
Ack
File tests/osmo_io/osmo_io_test.c:
https://gerrit.osmocom.org/c/libosmocore/+/32181/comment/fb1f7106_2fefff97
PS3, Line 54: printf("%s: Write returned rc=%d\n", osmo_iofd_get_name(iofd), rc);
so in read_cb you have to free msg, but in write_cb you don't?
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/32181
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia67629e53f4d2e5784177250d58e268fdfcaa0c2
Gerrit-Change-Number: 32181
Gerrit-PatchSet: 3
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 03 Apr 2023 08:59:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
Attention is currently required from: osmith, Hoernchen, neels, fixeria, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/30934 )
Change subject: Add osmo_io with initial poll backend
......................................................................
Patch Set 8: Code-Review+1
(3 comments)
File src/core/osmo_io.c:
https://gerrit.osmocom.org/c/libosmocore/+/30934/comment/f3774e3f_863afd46
PS8, Line 169: llist_add_tail(&msghdr->list, &iofd->tx_queue.msg_queue);
Could be msgb_enqueue_count(), but it can stay this way too.
https://gerrit.osmocom.org/c/libosmocore/+/30934/comment/97d19e82_37b0b785
PS8, Line 206: iofd->tx_queue.current_length--;
Could be msgb_dequeue_count(), but can stay this way too.
File src/core/osmo_io_poll.c:
https://gerrit.osmocom.org/c/libosmocore/+/30934/comment/25c87e73_39e41f78
PS8, Line 85: if (iofd->closed)
is this the new -EBADF to handle case where recvmsg_cb closes th iofd? What if iofd is freed by recvmsg_cb(), can that happen? you would be accessing freed memory here.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/30934
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I50d73cf550d6ce8154bf827bf47408131cf5b0a0
Gerrit-Change-Number: 30934
Gerrit-PatchSet: 8
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Hoernchen <ewild(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: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 03 Apr 2023 08:57:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/32185 )
Change subject: xua_rkm: handle_rkey_reg(): properly handle Routing Context IE
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I'm not sure if this will address the problem in general. AFAIR, the entire libosmo-sigtran codebase was written based on the assumption that routing context 0 means "no routing context IE is used".
Yes, in theory, an explicit routing context 0 IE is possible to use (as per spec), but I think it is a valid constraint to say we don't support routing context 0. So either the user wants to use the routing context IE on a given link (and then has to use a non-zero routing context), or they do not want to use a routing context at all (which we represent as routing context 0 internally).
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/32185
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: Ide7b1d62cc78effdda9950112f495c9ca276cae5
Gerrit-Change-Number: 32185
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sun, 02 Apr 2023 16:29:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/32185 )
Change subject: xua_rkm: handle_rkey_reg(): properly handle Routing Context IE
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I'm not sure if this will address the problem in general. AFAIR, the entire libosmo-sigtran codebase was written based on the assumption that routing context 0 means "no routing context IE is used".
Yes, in theory, an explicit routing context 0 IE is possible to use (as per spec), but I think it is a valid constraint to say we don't support routing context 0. So either the user wants to use the routing context IE on a given link (and then has to use a non-zero routing context), or they do not want to use a routing context at all (which we represent as routing context 0 internally).
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/32185
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: Ide7b1d62cc78effdda9950112f495c9ca276cae5
Gerrit-Change-Number: 32185
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sun, 02 Apr 2023 16:29:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment