lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

  • 1 participants
  • 97208 discussions
[L] Change in pysim[master]: bip: UDP channels for CAT_TP
by dexter 23 Nov '26

23 Nov '26
Attention is currently required from: Hoernchen. dexter has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43716?usp=email ) Change subject: bip: UDP channels for CAT_TP ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43716?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I015c5eb8768c70751b198d9259c58dab22e4a8ff Gerrit-Change-Number: 43716 Gerrit-PatchSet: 2 Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Comment-Date: Mon, 23 Nov 2026 11:20:58 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: udm: TC_auth_info_retrieve: Expect UDM to increment SQN when issuing ...
by osmith 23 Nov '26

23 Nov '26
Attention is currently required from: fixeria, pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44156?usp=email ) Change subject: udm: TC_auth_info_retrieve: Expect UDM to increment SQN when issuing auth vector ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44156?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ife3ed372a777477d9b71c6f4764f925f20aa2127 Gerrit-Change-Number: 44156 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Mon, 23 Nov 2026 11:09:39 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in libosmocore[master]: osmo_io: Refactor iofd_msghdr_alloc()
by pespin 23 Nov '26

23 Nov '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/44141?usp=email ) ( 2 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: osmo_io: Refactor iofd_msghdr_alloc() ...................................................................... osmo_io: Refactor iofd_msghdr_alloc() * flags can be passed during iofd_msghdr_alloc() as a parameter easily rather than later on assigning it to the already created object, do so. * msghdr has to be filled in differently mainly based on whether it is to be used for read or write related operations. Hence, split the allocation into 2 functions and fill as much as possible inside the allocation function (eg. internal pointers from the iofd_msghdr to the (sub) struct msghdr one. This way all users of the iofd_msghdr alloction are simplified a lot. Change-Id: I6552db468aaad7f638dade748f94a30255307f03 --- M src/core/osmo_io.c M src/core/osmo_io_internal.h M src/core/osmo_io_poll.c M src/core/osmo_io_uring.c 4 files changed, 101 insertions(+), 111 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve fixeria: Looks good to me, approved diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c index 83f3c05..a341b5c 100644 --- a/src/core/osmo_io.c +++ b/src/core/osmo_io.c @@ -136,15 +136,13 @@ /*! Allocate the msghdr. * \param[in] iofd the osmo_io file structure * \param[in] action the action this msg(hdr) is for (read, write, ..) - * \param[in] msg the msg buffer to use. Will allocate a new one if NULL + * \param[in] flags Flags to set on the msghdr and be passed on its fd operations. * \param[in] cmsg_size size (in bytes) of iofd_msghdr.cmsg buffer. Can be 0 if cmsg is not used. * \returns the newly allocated msghdr or NULL in case of error */ -struct iofd_msghdr *iofd_msghdr_alloc(struct osmo_io_fd *iofd, enum iofd_msg_action action, struct msgb *msg, - size_t cmsg_size) +static struct iofd_msghdr *_iofd_msghdr_alloc(struct osmo_io_fd *iofd, enum iofd_msg_action action, + int flags, size_t cmsg_size) { struct iofd_msghdr *msghdr; - uint8_t idx, io_len; - msghdr = talloc_zero_size(iofd, sizeof(struct iofd_msghdr) + cmsg_size); if (!msghdr) @@ -152,20 +150,42 @@ msghdr->action = action; msghdr->iofd = iofd; + msghdr->flags = flags; + + msghdr->hdr.msg_iov = &msghdr->iov[0]; + + if (cmsg_size > 0) { + msghdr->hdr.msg_control = msghdr->cmsg; + msghdr->hdr.msg_controllen = cmsg_size; + } + return msghdr; +} + +/*! Allocate the msghdr. + * \param[in] iofd the osmo_io file structure + * \param[in] action the action this msg(hdr) is for (read, write, ..) + * \param[in] flags Flags to set on the msghdr and be passed on its fd operations. + * \param[in] cmsg_size size (in bytes) of iofd_msghdr.cmsg buffer. Can be 0 if cmsg is not used. + * \returns the newly allocated msghdr or NULL in case of error */ +struct iofd_msghdr *iofd_msghdr_alloc_for_reading(struct osmo_io_fd *iofd, enum iofd_msg_action action, + int flags, size_t cmsg_size) +{ + struct iofd_msghdr *msghdr; + uint8_t idx, io_len; + + msghdr = _iofd_msghdr_alloc(iofd, action, flags, cmsg_size); + if (!msghdr) + return NULL; /* Allocate the number of read buffers, configured by the user. Use msg as first buffer, if not NULL. * Only READ may have multiple buffers, because packets will only be written to the first buffer. */ io_len = (action == IOFD_ACT_READ) ? iofd->io_read_buffers : 1; for (idx = 0; idx < io_len; idx++) { - if (msg) { - talloc_steal(iofd, msg); - msghdr->msg[idx] = msg; - msg = NULL; - } else { - msghdr->msg[idx] = iofd_msgb_alloc(iofd); - if (!msghdr->msg[idx]) - break; - } + msghdr->msg[idx] = iofd_msgb_alloc(iofd); + if (!msghdr->msg[idx]) + break; + msghdr->iov[idx].iov_base = msghdr->msg[idx]->tail; + msghdr->iov[idx].iov_len = msgb_tailroom(msghdr->msg[idx]); } /* If at least one msgb is allocated, we can continue with only one msgb, instead of completely failing. */ if (idx == 0) { @@ -174,6 +194,47 @@ } msghdr->io_len = idx; + msghdr->hdr.msg_iovlen = idx; + + if (action != IOFD_ACT_READ) { + msghdr->hdr.msg_name = &msghdr->osa.u.sa; + msghdr->hdr.msg_namelen = sizeof(msghdr->osa.u.sas); + } + + return msghdr; +} + +/*! Allocate the msghdr. + * \param[in] iofd the osmo_io file structure + * \param[in] action the action this msg(hdr) is for (read, write, ..) + * \param[in] flags Flags to set on the msghdr and be passed on its fd operations. + * \param[in] cmsg_size size (in bytes) of iofd_msghdr.cmsg buffer. Can be 0 if cmsg is not used. + * \param[in] msg the msg buffer to use. Will allocate a new one if NULL + * \returns the newly allocated msghdr or NULL in case of error */ +struct iofd_msghdr *iofd_msghdr_alloc_for_writing(struct osmo_io_fd *iofd, enum iofd_msg_action action, + int flags, ssize_t cmsg_size, struct msgb *msg) +{ + struct iofd_msghdr *msghdr; + + OSMO_ASSERT(msg); + + msghdr = _iofd_msghdr_alloc(iofd, action, flags, cmsg_size); + if (!msghdr) + return NULL; + + talloc_steal(iofd, msg); + msghdr->msg[0] = msg; + + msghdr->iov[0].iov_base = msgb_data(msghdr->msg[0]); + msghdr->iov[0].iov_len = msgb_length(msghdr->msg[0]); + + msghdr->io_len = 1; + msghdr->hdr.msg_iovlen = 1; + + if (action != IOFD_ACT_WRITE) { + msghdr->hdr.msg_name = &msghdr->osa.u.sa; + /* msghdr->hdr.msg_namelen to be filled in by user when setting address! */ + } return msghdr; } @@ -640,7 +701,6 @@ { int rc; struct iofd_msghdr *msghdr; - int idx; if (OSMO_UNLIKELY(msgb_length(msg) == 0)) { LOGPIO(iofd, LOGL_ERROR, "Length is 0, rejecting msgb.\n"); @@ -654,30 +714,25 @@ msghdr = llist_last_entry_or_null(&iofd->tx_queue.msg_queue, struct iofd_msghdr, list); if (msghdr && msghdr->io_len < iofd->io_write_buffers) { /* Add msg to existing msghdr. */ - msghdr->msg[msghdr->io_len++] = msg; - } else { - /* Create new msghdr with msg. */ - msghdr = iofd_msghdr_alloc(iofd, IOFD_ACT_WRITE, msg, 0); - if (!msghdr) - return -ENOMEM; + msghdr->msg[msghdr->io_len] = msg; + msghdr->iov[msghdr->io_len].iov_base = msgb_data(msg); + msghdr->iov[msghdr->io_len].iov_len = msgb_length(msg); + msghdr->io_len++; + msghdr->hdr.msg_iovlen = msghdr->io_len; msghdr->hdr.msg_iov = &msghdr->iov[0]; - msghdr->flags = MSG_NOSIGNAL; + return 0; } - /* Add set IO vector to msg. */ - idx = msghdr->io_len - 1; - msghdr->iov[idx].iov_base = msgb_data(msg); - msghdr->iov[idx].iov_len = msgb_length(msg); - msghdr->hdr.msg_iovlen = msghdr->io_len; + /* Create new msghdr with msg and enqueue it. */ + msghdr = iofd_msghdr_alloc_for_writing(iofd, IOFD_ACT_WRITE, MSG_NOSIGNAL, 0, msg); + if (!msghdr) + return -ENOMEM; - /* Only new msghdr will be enqueued. */ - if (msghdr->io_len == 1) { - rc = iofd_txqueue_enqueue(iofd, msghdr); - if (rc < 0) { - iofd_msghdr_free(msghdr); - LOGPIO(iofd, LOGL_ERROR, "enqueueing message failed (%d). Rejecting msgb\n", rc); - return rc; - } + rc = iofd_txqueue_enqueue(iofd, msghdr); + if (rc < 0) { + iofd_msghdr_free(msghdr); + LOGPIO(iofd, LOGL_ERROR, "enqueueing message failed (%d). Rejecting msgb\n", rc); + return rc; } return 0; @@ -710,20 +765,14 @@ OSMO_ASSERT(iofd->mode == OSMO_IO_FD_MODE_RECVFROM_SENDTO); - struct iofd_msghdr *msghdr = iofd_msghdr_alloc(iofd, IOFD_ACT_SENDTO, msg, 0); + struct iofd_msghdr *msghdr = iofd_msghdr_alloc_for_writing(iofd, IOFD_ACT_SENDTO, sendto_flags, 0, msg); if (!msghdr) return -ENOMEM; if (dest) { msghdr->osa = *dest; - msghdr->hdr.msg_name = &msghdr->osa.u.sa; msghdr->hdr.msg_namelen = osmo_sockaddr_size(&msghdr->osa); } - msghdr->flags = sendto_flags; - msghdr->iov[0].iov_base = msgb_data(msghdr->msg[0]); - msghdr->iov[0].iov_len = msgb_length(msghdr->msg[0]); - msghdr->hdr.msg_iov = &msghdr->iov[0]; - msghdr->hdr.msg_iovlen = 1; rc = iofd_txqueue_enqueue(iofd, msghdr); if (rc < 0) { @@ -773,32 +822,19 @@ return -EINVAL; } - msghdr = iofd_msghdr_alloc(iofd, IOFD_ACT_SENDMSG, msg, msgh->msg_controllen); + msghdr = iofd_msghdr_alloc_for_writing(iofd, IOFD_ACT_SENDMSG, sendmsg_flags, msgh->msg_controllen, msg); if (!msghdr) return -ENOMEM; /* copy over optional address */ if (msgh->msg_name) { memcpy(&msghdr->osa, msgh->msg_name, msgh->msg_namelen); - msghdr->hdr.msg_name = &msghdr->osa.u.sa; - msghdr->hdr.msg_namelen = msgh->msg_namelen; + msghdr->hdr.msg_namelen = osmo_sockaddr_size(&msghdr->osa); } - /* build iov from msgb */ - msghdr->iov[0].iov_base = msgb_data(msghdr->msg[0]); - msghdr->iov[0].iov_len = msgb_length(msghdr->msg[0]); - msghdr->hdr.msg_iov = &msghdr->iov[0]; - msghdr->hdr.msg_iovlen = 1; - /* copy over the cmsg from the msghdr */ - if (msgh->msg_control && msgh->msg_controllen) { - msghdr->hdr.msg_control = msghdr->cmsg; - msghdr->hdr.msg_controllen = msgh->msg_controllen; + if (msgh->msg_control && msgh->msg_controllen) memcpy(msghdr->cmsg, msgh->msg_control, msgh->msg_controllen); - } - - /* copy over msg_flags */ - msghdr->hdr.msg_flags = sendmsg_flags; rc = iofd_txqueue_enqueue(iofd, msghdr); if (rc < 0) { diff --git a/src/core/osmo_io_internal.h b/src/core/osmo_io_internal.h index 81a70f3..6ad9313 100644 --- a/src/core/osmo_io_internal.h +++ b/src/core/osmo_io_internal.h @@ -185,7 +185,10 @@ IOFD_SEG_ACT_DEFER, }; -struct iofd_msghdr *iofd_msghdr_alloc(struct osmo_io_fd *iofd, enum iofd_msg_action action, struct msgb *msg, size_t cmsg_size); +struct iofd_msghdr *iofd_msghdr_alloc_for_reading(struct osmo_io_fd *iofd, enum iofd_msg_action action, + int flags, size_t cmsg_size); +struct iofd_msghdr *iofd_msghdr_alloc_for_writing(struct osmo_io_fd *iofd, enum iofd_msg_action action, + int flags, ssize_t cmsg_size, struct msgb *msg); void iofd_msghdr_free(struct iofd_msghdr *msghdr); struct msgb *iofd_msgb_alloc2(struct osmo_io_fd *iofd, size_t size); diff --git a/src/core/osmo_io_poll.c b/src/core/osmo_io_poll.c index b861675..60f2cfd 100644 --- a/src/core/osmo_io_poll.c +++ b/src/core/osmo_io_poll.c @@ -87,7 +87,6 @@ enum iofd_msg_action action; struct iofd_msghdr *msghdr; int rc; - uint8_t idx; if (what & OSMO_FD_READ) { @@ -105,34 +104,12 @@ OSMO_ASSERT(0); } - msghdr = iofd_msghdr_alloc(iofd, action, NULL, iofd->cmsg_size); + msghdr = iofd_msghdr_alloc_for_reading(iofd, action, 0, iofd->cmsg_size); if (!msghdr) { LOGPIO(iofd, LOGL_ERROR, "Could not allocate msghdr for reading\n"); OSMO_ASSERT(0); } - for (idx = 0; idx < msghdr->io_len; idx++) { - msghdr->iov[idx].iov_base = msghdr->msg[idx]->tail; - msghdr->iov[idx].iov_len = msgb_tailroom(msghdr->msg[idx]); - } - - switch (action) { - case IOFD_ACT_RECVMSG: - msghdr->hdr.msg_control = msghdr->cmsg; - msghdr->hdr.msg_controllen = iofd->cmsg_size; - /* fall-through */ - case IOFD_ACT_RECVFROM: - msghdr->hdr.msg_name = &msghdr->osa.u.sa; - msghdr->hdr.msg_namelen = osmo_sockaddr_size(&msghdr->osa); - /* fall-through */ - case IOFD_ACT_READ: - msghdr->hdr.msg_iov = &msghdr->iov[0]; - msghdr->hdr.msg_iovlen = msghdr->io_len; - break; - default: - OSMO_ASSERT(0); - } - switch (action) { case IOFD_ACT_READ: rc = readv(ofd->fd, msghdr->hdr.msg_iov, msghdr->hdr.msg_iovlen); diff --git a/src/core/osmo_io_uring.c b/src/core/osmo_io_uring.c index 400b65b..8c1c7af 100644 --- a/src/core/osmo_io_uring.c +++ b/src/core/osmo_io_uring.c @@ -248,7 +248,6 @@ { struct iofd_msghdr *msghdr; struct io_uring_sqe *sqe; - uint8_t idx; /* Tell iofd_uring_get_sqe() not to allocate a new ring, if we want to enqueue multiple read SQEs. */ sqe = iofd_uring_get_sqe(iofd, true); @@ -259,34 +258,12 @@ OSMO_ASSERT(0); } - msghdr = iofd_msghdr_alloc(iofd, action, NULL, iofd->cmsg_size); + msghdr = iofd_msghdr_alloc_for_reading(iofd, action, 0, iofd->cmsg_size); if (!msghdr) { LOGPIO(iofd, LOGL_ERROR, "Could not allocate msghdr for reading\n"); OSMO_ASSERT(0); } - for (idx = 0; idx < msghdr->io_len; idx++) { - msghdr->iov[idx].iov_base = msghdr->msg[idx]->tail; - msghdr->iov[idx].iov_len = msgb_tailroom(msghdr->msg[idx]); - } - - switch (action) { - case IOFD_ACT_RECVMSG: - msghdr->hdr.msg_control = msghdr->cmsg; - msghdr->hdr.msg_controllen = iofd->cmsg_size; - /* fall-through */ - case IOFD_ACT_RECVFROM: - msghdr->hdr.msg_name = &msghdr->osa.u.sa; - msghdr->hdr.msg_namelen = osmo_sockaddr_size(&msghdr->osa); - /* fall-through */ - case IOFD_ACT_READ: - msghdr->hdr.msg_iov = &msghdr->iov[0]; - msghdr->hdr.msg_iovlen = msghdr->io_len; - break; - default: - OSMO_ASSERT(0); - } - switch (action) { case IOFD_ACT_READ: io_uring_prep_readv(sqe, iofd->fd, msghdr->iov, msghdr->hdr.msg_iovlen, -1); @@ -713,15 +690,12 @@ LOGPIO(iofd, LOGL_ERROR, "Could not allocate msgb for writing\n"); OSMO_ASSERT(0); } - msghdr = iofd_msghdr_alloc(iofd, IOFD_ACT_WRITE, msg, 0); + msghdr = iofd_msghdr_alloc_for_writing(iofd, IOFD_ACT_WRITE, 0, 0, msg); if (!msghdr) { LOGPIO(iofd, LOGL_ERROR, "Could not allocate msghdr for writing\n"); OSMO_ASSERT(0); } - msghdr->iov[0].iov_base = msgb_data(msg); - msghdr->iov[0].iov_len = msgb_length(msg); - sqe = iofd_uring_get_sqe(iofd, false); if (!sqe) { LOGPIO(iofd, LOGL_ERROR, "Could not get io_uring_sqe\n"); -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44141?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I6552db468aaad7f638dade748f94a30255307f03 Gerrit-Change-Number: 44141 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <daniel(a)totalueberwachung.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: udm: TC_auth_info_retrieve: Expect UDM to increment SQN when issuing ...
by pespin 23 Nov '26

23 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44156?usp=email ) Change subject: udm: TC_auth_info_retrieve: Expect UDM to increment SQN when issuing auth vector ...................................................................... udm: TC_auth_info_retrieve: Expect UDM to increment SQN when issuing auth vector open5gs.git aea6708bd246504adfb72fa3e17918f0a88fbb70 recently applied multiple fixes related to SQN advance when generating an auth vector. As a result, after GET ../authentication-subscription, the UDM will request a PATCH for the same path/object, incrementing SQN on it. Adapt the test to expect the PATCH message. Related: https://github.com/open5gs/open5gs/issues/5000 Change-Id: Ife3ed372a777477d9b71c6f4764f925f20aa2127 --- M library/TS29505_Subscription_Data_Templates.ttcn M udm/ConnHdlr.ttcn M udm/gen_links.sh 3 files changed, 61 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/44156/1 diff --git a/library/TS29505_Subscription_Data_Templates.ttcn b/library/TS29505_Subscription_Data_Templates.ttcn index 00db772..c592077 100644 --- a/library/TS29505_Subscription_Data_Templates.ttcn +++ b/library/TS29505_Subscription_Data_Templates.ttcn @@ -46,8 +46,12 @@ enum_val := enum_val } +template (present) PatchOperation +tr_PatchOperation(template (present) PatchOperation_enum enum_val := ?) := { + enum_val := enum_val +} template (value) PatchOperation -ts_PatchOperation(PatchOperation_enum enum_val) := { +ts_PatchOperation(template (value) PatchOperation_enum enum_val) := { enum_val := enum_val } @@ -79,6 +83,16 @@ enum_val := enum_val } +template (present) PatchItem +tr_PatchItem(template (present) PatchOperation op, + template (present) charstring path, + template charstring from_ := *, + template JSON_Generic.JSON_generic_val value_ := *) := { + op := op, + path := path, + from_ := from_, + value_ := value_ +} template (value) PatchItem ts_PatchItem(template (value) PatchOperation op, template (value) charstring path, diff --git a/udm/ConnHdlr.ttcn b/udm/ConnHdlr.ttcn index 0a7ab1c..99cce49 100644 --- a/udm/ConnHdlr.ttcn +++ b/udm/ConnHdlr.ttcn @@ -30,6 +30,7 @@ import from Prometheus_Checker all; +import from JSON_Generic_Templates all; import from TS29503_Nudm_UEAU all; import from TS29503_Nudm_UEAU_Templates all; import from TS29505_Subscription_Data all; @@ -151,6 +152,7 @@ var HTTP2_Msg http2_rx; var template (present) HTTP2_Msg http2_exp_rx; var template (value) AuthenticationInfoRequest1 auth_info_req; + var template (present) PatchItem_list patch_item_li; auth_info_req := ts_AuthenticationInfoRequest1(servingNetworkName := g_pars.serving_network, ausfInstanceId := g_pars.ausf_instance_id); @@ -160,6 +162,11 @@ as_Nudr_DR_get_authentication_subscription(); + patch_item_li := { tr_PatchItem(op := tr_PatchOperation(replace_), + path := "/sequenceNumber/sqn", + value_ := tr_JSON_generic_val_string(pattern "????????????")) } + as_Nudr_DR_patch_authentication_subscription(patch_item_li); + /* 3GPP TS 29.503 Table 6.3.3.2.4.2.2-2 */ http2_exp_rx := tr_HTTP2_Msg(http2_tx.conn_id, @@ -328,7 +335,7 @@ return http2_msg; } -/* 3GPP TS 29.505 5.2.2 Resource: AuthenticationSubscription */ +/* 3GPP TS 29.505 5.2.2 Resource: AuthenticationSubscription (GET) */ altstep as_Nudr_DR_get_authentication_subscription() runs on ConnHdlr { var HTTP2_Msg http2_rx; @@ -339,11 +346,12 @@ auth_sub := ts_AuthenticationSubscription(ts_AuthMethod(FiveG_AKA), encPermanentKey := "3c6e0b8a9c15224a8228b9a98ca1531d", - sequenceNumber := ts_SequenceNumber(sqn := "0"), + sequenceNumber := ts_SequenceNumber(sqn := "000000000000"), authenticationManagementField := "8000", encOpcKey := "762a2206fe0b4151ace403c86a11e479"); body_enc := f_enc_AuthenticationSubscription(valueof(auth_sub)); + /* Table 5.2.2.3.1-3 */ http2_tx := ts_HTTP2_Msg_200_OK(http2_rx.conn_id, http2_rx.stream_id, headers := { @@ -357,6 +365,41 @@ } } +/* 3GPP TS 29.505 5.2.2.3.2 AuthenticationSubscription (PATCH) */ +function f_tr_Nudr_DR_patch_authentication_subscription(template (present) PatchItem_list patch_item_li := ?) +runs on ConnHdlr return template (present) HTTP2_Msg { + var template (present) HTTP2_Msg http2_msg; + var template (present) HTTP2_header_block hb; + var template (present) HTTP2_pseudo_headers pseudo_headers; + var template HTTP2_header_list headers := *; + + pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "PATCH", + path := tr_Nudr_DR_path_authentication_subscription(g_pars.imsi_str)); + hb := tr_HTTP2_header_block(pseudo_headers, headers); + http2_msg := tr_HTTP2_Msg(?, ?, + hb := hb, + body := tr_HTTP2_Data_frame(data := decmatch patch_item_li)); + return http2_msg; +} + +/* 3GPP TS 29.505 5.2.2 Resource: AuthenticationSubscription (PATCH) */ +altstep as_Nudr_DR_patch_authentication_subscription(template (present) PatchItem_list patch_item_li := ?) +runs on ConnHdlr { + var HTTP2_Msg http2_rx; + [] HTTP2_CONN[HTTP2_CONN_SCP].receive(f_tr_Nudr_DR_patch_authentication_subscription(patch_item_li)) -> value http2_rx { + var template (value) HTTP2_Msg http2_tx; + + /* Table 5.2.2.3.2-3 */ + http2_tx := ts_HTTP2_Msg_204_No_Content(http2_rx.conn_id, + http2_rx.stream_id, + headers := { + ts_HTTP2_Hdr_content_type("application/json") + }); + HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); + setverdict(pass); + } +} + /* 3GPP TS 29.505 5.2.24.3.1 Resource: AuthenticationStatus (PUT) */ function f_tr_Nudr_DR_put_authentication_status() runs on ConnHdlr return template (present) HTTP2_Msg { diff --git a/udm/gen_links.sh b/udm/gen_links.sh index d50f68b..72c9e09 100755 --- a/udm/gen_links.sh +++ b/udm/gen_links.sh @@ -46,7 +46,7 @@ FILES+="SCTP_Templates.ttcn " FILES+="HTTP2_CodecPort.ttcn HTTP2_CodecPort_CtrlFunct.ttcn HTTP2_CodecPort_CtrlFunctDef.cc HTTP2_Templates.ttcn HTTP2_Functions.ttcn HTTP2_Msg.ttcn HTTP2_Adapter.ttcn HTTP2_Server_Emulation.ttcn " FILES+="HTTP_Adapter.ttcn Prometheus_Checker.ttcn " -FILES+="TS29571_CommonData_Templates.ttcn TS29503_Nudm_UEAU_Templates.ttcn TS29505_Subscription_Data_Templates.ttcn " +FILES+="JSON_Generic_Templates.ttcn TS29571_CommonData_Templates.ttcn TS29503_Nudm_UEAU_Templates.ttcn TS29505_Subscription_Data_Templates.ttcn " gen_links $DIR $FILES gen_links_finish -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44156?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ife3ed372a777477d9b71c6f4764f925f20aa2127 Gerrit-Change-Number: 44156 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in libosmocore[master]: core/exec: Use close_range() libc API when available
by jolly 23 Nov '26

23 Nov '26
Attention is currently required from: Hoernchen, laforge, pespin. jolly has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmocore/+/44099?usp=email ) Change subject: core/exec: Use close_range() libc API when available ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44099?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I6589564c406095a1e6584d8c0e65c28594326f31 Gerrit-Change-Number: 44099 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Comment-Date: Mon, 23 Nov 2026 10:41:11 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: udr: Fix TC_authentication_subscription expectancies
by osmith 23 Nov '26

23 Nov '26
Attention is currently required from: fixeria, pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44155?usp=email ) Change subject: udr: Fix TC_authentication_subscription expectancies ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44155?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I5fd5ced21f881f66cd57aa7cfc243e189cdb2ebb Gerrit-Change-Number: 44155 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-CC: Jenkins Builder Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Mon, 23 Nov 2026 10:19:00 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: udr: Fix TC_authentication_subscription expectancies
by pespin 23 Nov '26

23 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44155?usp=email ) Change subject: udr: Fix TC_authentication_subscription expectancies ...................................................................... udr: Fix TC_authentication_subscription expectancies open5gs.git aea6708bd246504adfb72fa3e17918f0a88fbb70 recently fixed SQN advancing on certain scenarios, and also fixed this weird increment of SQN that happened as a reslt of patching the SQN. Adapt the test to expect the value patched, not an incremented one. Related: https://github.com/open5gs/open5gs/issues/5000 Change-Id: I5fd5ced21f881f66cd57aa7cfc243e189cdb2ebb --- M udr/UDR_Tests.ttcn 1 file changed, 1 insertion(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/55/44155/1 diff --git a/udr/UDR_Tests.ttcn b/udr/UDR_Tests.ttcn index c85c0df..791ea36 100644 --- a/udr/UDR_Tests.ttcn +++ b/udr/UDR_Tests.ttcn @@ -124,8 +124,7 @@ f_n35_patch_authentication_subscription({ ts_PatchItem(op := ts_PatchOperation(replace_), path := "/sequenceNumber/sqn", value_ := ts_JSON_generic_val_string(hex2str(f_Nudr_DR_sqn_int2hex(sqn)))) }); - /* Upon patch, open5gs-udrd increments (+32) the sqn: */ - f_n35_get_authentication_subscription(exp_sqn := sqn + 32); + f_n35_get_authentication_subscription(exp_sqn := sqn); setverdict(pass); } testcase TC_authentication_subscription() runs on MTC_CT { -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44155?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I5fd5ced21f881f66cd57aa7cfc243e189cdb2ebb Gerrit-Change-Number: 44155 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in libosmocore[master]: osmo_io: Refactor iofd_msghdr_alloc()
by pespin 23 Nov '26

23 Nov '26
Attention is currently required from: daniel, jolly, osmith, pespin. Hello Jenkins Builder, daniel, fixeria, jolly, laforge, osmith, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/libosmocore/+/44141?usp=email to look at the new patch set (#3). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder The change is no longer submittable: Verified is unsatisfied now. Change subject: osmo_io: Refactor iofd_msghdr_alloc() ...................................................................... osmo_io: Refactor iofd_msghdr_alloc() * flags can be passed during iofd_msghdr_alloc() as a parameter easily rather than later on assigning it to the already created object, do so. * msghdr has to be filled in differently mainly based on whether it is to be used for read or write related operations. Hence, split the allocation into 2 functions and fill as much as possible inside the allocation function (eg. internal pointers from the iofd_msghdr to the (sub) struct msghdr one. This way all users of the iofd_msghdr alloction are simplified a lot. Change-Id: I6552db468aaad7f638dade748f94a30255307f03 --- M src/core/osmo_io.c M src/core/osmo_io_internal.h M src/core/osmo_io_poll.c M src/core/osmo_io_uring.c 4 files changed, 101 insertions(+), 111 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/41/44141/3 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44141?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I6552db468aaad7f638dade748f94a30255307f03 Gerrit-Change-Number: 44141 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <daniel(a)totalueberwachung.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: daniel <daniel(a)totalueberwachung.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Attention: osmith <osmith(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ci[master]: jobs/ttcn3: add nrf
by osmith 23 Nov '26

23 Nov '26
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/44154?usp=email ) Change subject: jobs/ttcn3: add nrf ...................................................................... jobs/ttcn3: add nrf Change-Id: Ie02e8887d4521e0f4083b6e79d3a840f0dbaeaa7 --- M jobs/ttcn3-testsuites-testenv.yml 1 file changed, 17 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/jobs/ttcn3-testsuites-testenv.yml b/jobs/ttcn3-testsuites-testenv.yml index e3e9a98..634b6f8 100644 --- a/jobs/ttcn3-testsuites-testenv.yml +++ b/jobs/ttcn3-testsuites-testenv.yml @@ -299,6 +299,12 @@ timer: H 11 * * * email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com + - ttcn3-nrf-test-ogs: + testsuite: nrf + args: -b osmocom:nightly + timer: H 11 * * * + email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com + # --------------------------------------------- # Debian latest # --------------------------------------------- @@ -561,6 +567,11 @@ args: -b osmocom:latest timer: H 13 * * * + - ttcn3-nrf-test-ogs-latest: + testsuite: nrf + args: -b osmocom:latest + timer: H 13 * * * + # --------------------------------------------- # Debian nightly + io_uring (OS#6357) # --------------------------------------------- @@ -833,6 +844,12 @@ timer: H 18 * * * email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com + - ttcn3-nrf-test-ogs-asan: + testsuite: nrf + args: -b osmocom:nightly:asan + timer: H 18 * * * + email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com + # --------------------------------------------- # Build from source with osmo-dev (for programs # where we don't have binary packages in OBS) -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/44154?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ie02e8887d4521e0f4083b6e79d3a840f0dbaeaa7 Gerrit-Change-Number: 44154 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ci[master]: jobs/ttcn3: add nrf
by pespin 23 Nov '26

23 Nov '26
Attention is currently required from: fixeria, osmith. pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/44154?usp=email ) Change subject: jobs/ttcn3: add nrf ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/44154?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ie02e8887d4521e0f4083b6e79d3a840f0dbaeaa7 Gerrit-Change-Number: 44154 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Mon, 23 Nov 2026 09:34:49 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.