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
[S] Change in osmo-ci[master]: timeout: always use "timeout -v"
by osmith 24 Nov '26

24 Nov '26
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/44158?usp=email ) Change subject: timeout: always use "timeout -v" ...................................................................... timeout: always use "timeout -v" Make more obvious what is going on when a process gets killed by timeout. Otherwise people may spend a lot of time trying to find the reason for what looks like a crash in the logs. Example: $ timeout -v 1s sleep 3 timeout: sending signal TERM to command 'sleep' Change-Id: I6e2d12590d38823b7ffd1c8c8d7c8a148fbdcf08 --- M ansible/files/octsimtest/start-hook.sh M jobs/gerrit-osmo-ccid-firmware-hwtest.yml M jobs/gerrit-verifications-dahdi.yml M jobs/gerrit-verifications.yml M jobs/master-builds-dahdi.yml M jobs/master-builds.yml M jobs/octsim_osmo-ccid-firmware.yml M scripts/android/publish-apks-for-tags.sh M scripts/kernel/build.sh M scripts/repo-install-test.sh 10 files changed, 12 insertions(+), 12 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/58/44158/1 diff --git a/ansible/files/octsimtest/start-hook.sh b/ansible/files/octsimtest/start-hook.sh index 13a67d4..ee33369 100644 --- a/ansible/files/octsimtest/start-hook.sh +++ b/ansible/files/octsimtest/start-hook.sh @@ -24,7 +24,7 @@ if [ -n "$CAPTURE_BUS_ID" ]; then echo "[start-hook] starting usbmon capture on bus $CAPTURE_BUS_ID" modprobe usbmon - timeout 1h \ + timeout -v 1h \ dumpcap \ -i usbmon"$CAPTURE_BUS_ID" \ -w logs/usbmon.pcapng \ diff --git a/jobs/gerrit-osmo-ccid-firmware-hwtest.yml b/jobs/gerrit-osmo-ccid-firmware-hwtest.yml index d124e86..9f3d419 100644 --- a/jobs/gerrit-osmo-ccid-firmware-hwtest.yml +++ b/jobs/gerrit-osmo-ccid-firmware-hwtest.yml @@ -27,7 +27,7 @@ sudo /etc/osmo-ccid-firmware-tests/start-hook.sh FAIL=0 - timeout 30m ./run-tests || FAIL=1 + timeout -v 30m ./run-tests || FAIL=1 sudo /etc/osmo-ccid-firmware-tests/stop-hook.sh exit $FAIL diff --git a/jobs/gerrit-verifications-dahdi.yml b/jobs/gerrit-verifications-dahdi.yml index b56350e..2df1610 100644 --- a/jobs/gerrit-verifications-dahdi.yml +++ b/jobs/gerrit-verifications-dahdi.yml @@ -70,7 +70,7 @@ git -C /linux.git -c color.ui=always log -1 --oneline {linux-repo-branch} git clone -q /linux.git -b {linux-repo-branch} /linux chown -R build:build /linux - timeout 10m su build -c /build/contrib/jenkins.sh + timeout -v 10m su build -c /build/contrib/jenkins.sh " wrappers: diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml index 5eba131..df2b16f 100644 --- a/jobs/gerrit-verifications.yml +++ b/jobs/gerrit-verifications.yml @@ -105,7 +105,7 @@ docker_img_aram_applet: 'registry.osmocom.org/osmocom-build/debian-bookworm-aram-applet' docker_img_rp2040: 'registry.osmocom.org/osmocom-build/debian-bookworm-rp2040' docker_img_pysim: 'registry.osmocom.org/osmocom-build/pysim-build' - timeout_cmd: '/usr/bin/timeout 30m' + timeout_cmd: '/usr/bin/timeout -v 30m' wrapper_cmd: '{timeout_cmd} /osmo-ci/scripts/wrapper_core_bt_on_error.sh' cmd: | docker pull {docker_img} diff --git a/jobs/master-builds-dahdi.yml b/jobs/master-builds-dahdi.yml index a42e2d5..d7df834 100644 --- a/jobs/master-builds-dahdi.yml +++ b/jobs/master-builds-dahdi.yml @@ -60,7 +60,7 @@ git -C /linux.git -c color.ui=always log -1 --oneline {linux-repo-branch} git clone -q /linux.git -b {linux-repo-branch} /linux chown -R build:build /linux - timeout 10m su build -c /build/contrib/jenkins.sh + timeout -v 10m su build -c /build/contrib/jenkins.sh " wrappers: diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml index 4310448..28836c4 100644 --- a/jobs/master-builds.yml +++ b/jobs/master-builds.yml @@ -88,7 +88,7 @@ docker_img_aram_applet: 'registry.osmocom.org/osmocom-build/debian-bookworm-aram-applet' docker_img_rp2040: 'registry.osmocom.org/osmocom-build/debian-bookworm-rp2040' docker_img_pysim: 'registry.osmocom.org/osmocom-build/pysim-build' - timeout_cmd: '/usr/bin/timeout 30m' + timeout_cmd: '/usr/bin/timeout -v 30m' wrapper_cmd: '{timeout_cmd} /osmo-ci/scripts/wrapper_core_bt_on_error.sh' cmd: | docker pull {docker_img} diff --git a/jobs/octsim_osmo-ccid-firmware.yml b/jobs/octsim_osmo-ccid-firmware.yml index 37e1632..ecf9381 100644 --- a/jobs/octsim_osmo-ccid-firmware.yml +++ b/jobs/octsim_osmo-ccid-firmware.yml @@ -28,7 +28,7 @@ sudo /etc/osmo-ccid-firmware-tests/start-hook.sh FAIL=0 - timeout $TIMEOUT ./run-tests || FAIL=1 + timeout -v $TIMEOUT ./run-tests || FAIL=1 sudo /etc/osmo-ccid-firmware-tests/stop-hook.sh exit $FAIL diff --git a/scripts/android/publish-apks-for-tags.sh b/scripts/android/publish-apks-for-tags.sh index d6bef52..f8f01bf 100755 --- a/scripts/android/publish-apks-for-tags.sh +++ b/scripts/android/publish-apks-for-tags.sh @@ -115,7 +115,7 @@ -v "$PWD:/build" \ -w /build \ "$DOCKER_IMAGE" \ - timeout 60m contrib/jenkins.sh + timeout -v 60m contrib/jenkins.sh } publish_apk() { diff --git a/scripts/kernel/build.sh b/scripts/kernel/build.sh index f1a1e0a..1d770f0 100755 --- a/scripts/kernel/build.sh +++ b/scripts/kernel/build.sh @@ -15,7 +15,7 @@ -v "$SCRIPT_DIR:/scripts/kernel/" \ -v "$PWD/output:/output" \ "$IMAGE" \ - timeout 3h sh -exc " + timeout -v 3h sh -exc " git config --global --add safe.directory /linux.git git -C /linux.git log -1 --oneline $LINUX_REPO_BRANCH git clone -q /linux.git -b $LINUX_REPO_BRANCH /linux diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh index a378502..0b2a9d6 100755 --- a/scripts/repo-install-test.sh +++ b/scripts/repo-install-test.sh @@ -105,7 +105,7 @@ prepare_img find_free_ssh_port - (timeout 1h qemu-system-x86_64 \ + (timeout -v 1h qemu-system-x86_64 \ -cpu host \ -device "virtio-net-pci,netdev=net" \ -display none \ @@ -120,7 +120,7 @@ } qemu_ssh() { - timeout "${TIMEOUT:-1m}" \ + timeout -v "${TIMEOUT:-1m}" \ sshpass -p root \ ssh \ -p "$SSH_PORT" \ @@ -132,7 +132,7 @@ } qemu_scp() { - timeout "${TIMEOUT:-1m}" \ + timeout -v "${TIMEOUT:-1m}" \ sshpass -p root \ scp \ -P "$SSH_PORT" \ -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/44158?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I6e2d12590d38823b7ffd1c8c8d7c8a148fbdcf08 Gerrit-Change-Number: 44158 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_dl_forward
by pespin 23 Nov '26

23 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44157?usp=email ) Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_dl_forward ...................................................................... smf: Introduce test TC_n11_handover_inter_ngran_n2_dl_forward Related: SYS#8338 Change-Id: I11609e8b75d5ff03d2ca635599d99a7523b6787e --- M library/HTTP2_Msg.ttcn M library/PFCP_Templates.ttcn M library/TS29502_Nsmf_PDUSession_Templates.ttcn M library/ngap/NGAP_EncDec.cc M library/ngap/NGAP_Types.ttcn M smf/SMF_Session_CT.ttcn M smf/SMF_Session_CT_5G.ttcn M smf/SMF_Tests.ttcn M smf/expected-results.xml 9 files changed, 359 insertions(+), 16 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/57/44157/1 diff --git a/library/HTTP2_Msg.ttcn b/library/HTTP2_Msg.ttcn index 23cb945..8d7ac89 100644 --- a/library/HTTP2_Msg.ttcn +++ b/library/HTTP2_Msg.ttcn @@ -86,6 +86,12 @@ body := body ); +template (present) HTTP2_Msg +tr_HTTP2_Msg_200_OK(template (present) IPL4asp_Types.ConnectionId conn_id := ?, + template (present) integer stream_id := ?, + template HTTP2_header_list headers := *, + template HTTP2_Data_frame body := omit) := +tr_HTTP2_Msg_Status(conn_id, stream_id, 200, headers, body); template (value) HTTP2_Msg ts_HTTP2_Msg_200_OK(template (value) IPL4asp_Types.ConnectionId conn_id, template (value) integer stream_id, diff --git a/library/PFCP_Templates.ttcn b/library/PFCP_Templates.ttcn index 5eea706..4e9ea05 100644 --- a/library/PFCP_Templates.ttcn +++ b/library/PFCP_Templates.ttcn @@ -1294,6 +1294,15 @@ } } +template (present) Remove_FAR +tr_PFCP_Remove_FAR(template (present) LIN4_BO_LAST far_id := ?) := { + elementIdentifier := 16, + lengthIndicator := ?, + grouped_ie := { + far_id := tr_PFCP_FAR_ID(far_id) + } +} + /* 8.2.36 PDR ID */ template (value) PDR_ID ts_PFCP_PDR_ID(template (value) OCT2 pdr_id) := { @@ -1358,6 +1367,16 @@ } } + +template (present) Remove_PDR +tr_PFCP_Remove_PDR(template (present) OCT2 pdr_id := ?) := { + elementIdentifier := 15, + lengthIndicator := ?, + grouped_ie := { + pdr_id := tr_PFCP_PDR_ID(pdr_id) + } +} + /* 7.5.2.4 Create URR IE within PFCP Session Establishment Request */ template (value) Create_URR ts_PFCP_Create_URR(template (value) LIN4_BO_LAST urr_id, @@ -1480,7 +1499,8 @@ } } -template (value) Created_PDR ts_PFCP_Created_PDR(PDR_ID pdr_id, template (value) F_TEID local_F_TEID) := { +template (value) Created_PDR ts_PFCP_Created_PDR(template (value) PDR_ID pdr_id, + template (value) F_TEID local_F_TEID) := { elementIdentifier := 8, lengthIndicator := 0, grouped_ie := { @@ -1578,6 +1598,11 @@ } template (present) PDU_PFCP tr_PFCP_Session_Mod_Req(template (present) OCT8 seid := ?, + template Remove_PDR_list remove_pdr_list := *, + template Remove_FAR_list remove_far_list := *, + template Create_PDR_list create_pdr_list := *, + template Create_FAR_list create_far_list := *, + template Update_PDR_list update_pdr_list := *, template Update_FAR_list update_far_list := *) modifies tr_PDU_PFCP_ := { seid := seid, @@ -1590,13 +1615,13 @@ remove_QER_list := *, remove_BAR := *, remove_traffic_endpoint := *, - create_PDR_list := *, - create_FAR_list := *, + create_PDR_list := create_pdr_list, + create_FAR_list := create_far_list, create_URR_list := *, create_QER_list := *, create_BAR := *, create_traffic_endpoint := *, - update_PDR_list := *, + update_PDR_list := update_pdr_list, update_FAR_list := update_far_list, update_URR_list := *, update_QER_list := *, @@ -1615,7 +1640,9 @@ template (value) PDU_PFCP ts_PFCP_Session_Mod_Resp(template (value) LIN3_BO_LAST seq_nr, template (value) OCT8 seid, - template (value) Cause cause := ts_PFCP_Cause(PFCP_Cause_REQUEST_ACCEPTED)) + template (value) Cause cause := ts_PFCP_Cause(PFCP_Cause_REQUEST_ACCEPTED), + template (omit) Created_PDR created_pdr := omit, + template (omit) Created_Traffic_Endpoint created_updated_traffic_endpoint := omit) modifies ts_PDU_PFCP_ := { seid := seid, sequence_number := seq_nr, @@ -1623,13 +1650,13 @@ pfcp_session_modification_response := { cause := cause, offending_IE := omit, - created_PDR := omit, + created_PDR := created_pdr, load_control_information := omit, overload_control_information := omit, usage_report := omit, failed_rule_id := omit, additional_usage_reports_information := omit, - created_updated_traffic_endpoint := omit + created_updated_traffic_endpoint := created_updated_traffic_endpoint } } } diff --git a/library/TS29502_Nsmf_PDUSession_Templates.ttcn b/library/TS29502_Nsmf_PDUSession_Templates.ttcn index b19ab71..e0df82c 100644 --- a/library/TS29502_Nsmf_PDUSession_Templates.ttcn +++ b/library/TS29502_Nsmf_PDUSession_Templates.ttcn @@ -19,10 +19,18 @@ ts_Nsmf_PDUSession_path_sm_context_release(template (value) charstring smContextRef) := c_Nsmf_PDUSession_path_sm_contexts & "/" & valueof(smContextRef) & "/release"; +template (present) HoState +tr_HoState(template (present) HoState_enum enum_val := ?) := { + enum_val := enum_val +} +template (value) HoState +ts_HoState(template (value) HoState_enum enum_val) := { + enum_val := enum_val +} + type TS29502_Nsmf_PDUSession.SmContextCreateData.additionalHsmfSetIdList AdditionalHsmfSetIdList; type TS29502_Nsmf_PDUSession.SmContextCreateData.additionalSmfSetIdList AdditionalSmfSetIdList; type TS29502_Nsmf_PDUSession.SmContextCreateData.nrfOauth2Required NrfOauth2Required; - template (value) SmContextCreateData ts_SmContextCreateData( template (omit) TS29502_Nsmf_PDUSession.Supi supi := omit, @@ -430,6 +438,56 @@ localOffloadingMgtAllowedInd := localOffloadingMgtAllowedInd } +/* 6.1.6.2.5 */ +template SmContextUpdatedData +tr_SmContextUpdatedData(template UpCnxState upCnxState := *, + template HoState hoState := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.releaseEbiList releaseEbiList := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.allocatedEbiList allocatedEbiList := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.modifiedEbiList modifiedEbiList := *, + template RefToBinaryData n1SmMsg := *, + template RefToBinaryData n2SmInfo := *, + template N2SmInfoType n2SmInfoType := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.epsBearerSetup epsBearerSetup := *, + template boolean dataForwarding := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.n3DlForwardingTnlList n3DlForwardingTnlList := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.n3UlForwardingTnlList n3UlForwardingTnlList := *, + template TunnelInfo n9UlForwardingTunnel := *, + template Cause cause := *, + template boolean maAcceptedInd := *, + template SupportedFeatures supportedFeatures := *, + template Bytes forwardingFTeid := *, + template TS29502_Nsmf_PDUSession.SmContextUpdatedData.forwardingBearerContexts forwardingBearerContexts := *, + template NfInstanceId selectedSmfId := *, + template NfInstanceId selectedOldSmfId := *, + template Uri interPlmnApiRoot := *, + template AnchorSmfFeatures anchorSmfFeatures := *, + template PduSessionPriority pduSessionPrio := *) := { + upCnxState := upCnxState, + hoState := hoState, + releaseEbiList := releaseEbiList, + allocatedEbiList := allocatedEbiList, + modifiedEbiList := modifiedEbiList, + n1SmMsg := n1SmMsg, + n2SmInfo := n2SmInfo, + n2SmInfoType := n2SmInfoType, + epsBearerSetup := epsBearerSetup, + dataForwarding := dataForwarding, + n3DlForwardingTnlList := n3DlForwardingTnlList, + n3UlForwardingTnlList := n3UlForwardingTnlList, + n9UlForwardingTunnel := n9UlForwardingTunnel, + cause := cause, + maAcceptedInd := maAcceptedInd, + supportedFeatures := supportedFeatures, + forwardingFTeid := forwardingFTeid, + forwardingBearerContexts := forwardingBearerContexts, + selectedSmfId := selectedSmfId, + selectedOldSmfId := selectedOldSmfId, + interPlmnApiRoot := interPlmnApiRoot, + anchorSmfFeatures := anchorSmfFeatures, + pduSessionPrio := pduSessionPrio +} + /* 6.1.6.2.6 */ template (value) SmContextReleaseData ts_SmContextReleaseData(template (omit) Cause cause := omit, diff --git a/library/ngap/NGAP_EncDec.cc b/library/ngap/NGAP_EncDec.cc index d15cab6..991916c 100644 --- a/library/ngap/NGAP_EncDec.cc +++ b/library/ngap/NGAP_EncDec.cc @@ -209,6 +209,26 @@ return ret; } +OCTETSTRING enc__NGAP__HandoverCommandTransfer(const NGAP__IEs::HandoverCommandTransfer &p) +{ + TTCN_Buffer TTCN_buf; + TTCN_buf.clear(); + p.encode(NGAP__IEs::HandoverCommandTransfer_descr_, TTCN_buf, + TTCN_EncDec::CT_PER, PER_ALIGNED); + return OCTETSTRING(TTCN_buf.get_len(), TTCN_buf.get_data()); +} + +NGAP__IEs::HandoverCommandTransfer dec__NGAP__HandoverCommandTransfer(const OCTETSTRING &stream) +{ + NGAP__IEs::HandoverCommandTransfer ret; + TTCN_Buffer TTCN_buf; + TTCN_buf.clear(); + TTCN_buf.put_os(stream); + ret.decode(NGAP__IEs::HandoverCommandTransfer_descr_, TTCN_buf, + TTCN_EncDec::CT_PER, PER_ALIGNED); + return ret; +} + OCTETSTRING enc__NGAP__HandoverRequiredTransfer(const NGAP__IEs::HandoverRequiredTransfer &p) { TTCN_Buffer TTCN_buf; diff --git a/library/ngap/NGAP_Types.ttcn b/library/ngap/NGAP_Types.ttcn index 08d0f22..1e80763 100644 --- a/library/ngap/NGAP_Types.ttcn +++ b/library/ngap/NGAP_Types.ttcn @@ -33,6 +33,10 @@ external function enc_NGAP_PathSwitchRequestTransfer(NGAP_IEs.PathSwitchRequestTransfer p) return octetstring; external function dec_NGAP_PathSwitchRequestTransfer(in octetstring pdu) return NGAP_IEs.PathSwitchRequestTransfer; + external function enc_NGAP_HandoverCommandTransfer(NGAP_IEs.HandoverCommandTransfer p) return octetstring; + external function dec_NGAP_HandoverCommandTransfer(in octetstring pdu) return NGAP_IEs.HandoverCommandTransfer; + + external function enc_NGAP_HandoverRequiredTransfer(NGAP_IEs.HandoverRequiredTransfer p) return octetstring; external function dec_NGAP_HandoverRequiredTransfer(in octetstring pdu) return NGAP_IEs.HandoverRequiredTransfer; diff --git a/smf/SMF_Session_CT.ttcn b/smf/SMF_Session_CT.ttcn index 5eab61b..9396b9e 100644 --- a/smf/SMF_Session_CT.ttcn +++ b/smf/SMF_Session_CT.ttcn @@ -518,25 +518,51 @@ } -function f_Session_tr_PFCP_Session_Mod_Req() runs on SMF_Session_CT return template (present) PDU_PFCP -{ - return tr_PFCP_Session_Mod_Req(g_pars.pfcp_pars.local_f_seid.seid); +function f_Session_tr_PFCP_Session_Mod_Req(template Remove_PDR_list remove_pdr_list := *, + template Remove_FAR_list remove_far_list := *, + template Create_PDR_list create_pdr_list := *, + template Create_FAR_list create_far_list := *, + template Update_PDR_list update_pdr_list := *, + template Update_FAR_list update_far_list := *) +runs on SMF_Session_CT return template (present) PDU_PFCP { + return tr_PFCP_Session_Mod_Req(seid := g_pars.pfcp_pars.local_f_seid.seid, + remove_pdr_list := remove_pdr_list, + remove_far_list := remove_far_list, + create_pdr_list := create_pdr_list, + create_far_list := create_far_list, + update_pdr_list := update_pdr_list, + update_far_list := update_far_list); } -altstep as_pfcp_sess_mod_req() +altstep as_pfcp_sess_mod_req(template Remove_PDR_list remove_pdr_list := *, + template Remove_FAR_list remove_far_list := *, + template Create_PDR_list exp_create_pdr_list := *, + template Create_FAR_list exp_create_far_list := *, + template Update_PDR_list exp_update_pdr_list := *, + template Update_FAR_list exp_update_far_list := *, + template (omit) Created_PDR tx_created_pdr := omit) runs on SMF_Session_CT { - var template (present) PDU_PFCP exp_req := f_Session_tr_PFCP_Session_Mod_Req(); + var template (present) PDU_PFCP exp_req := f_Session_tr_PFCP_Session_Mod_Req(remove_pdr_list := remove_pdr_list, + remove_far_list := remove_far_list, + create_pdr_list := exp_create_pdr_list, + create_far_list := exp_create_far_list, + update_pdr_list := exp_update_pdr_list, + update_far_list := exp_update_far_list); var PDU_PFCP req; [] PFCP.receive(exp_req) -> value req { - f_pfcp_sess_mod_resp(req); + f_pfcp_sess_mod_resp(req := req, + created_pdr := tx_created_pdr); } } -function f_pfcp_sess_mod_resp(PDU_PFCP req) runs on SMF_Session_CT { +function f_pfcp_sess_mod_resp(PDU_PFCP req, + template (omit) Created_PDR created_pdr) +runs on SMF_Session_CT { var template (value) PDU_PFCP resp; resp := ts_PFCP_Session_Mod_Resp(seq_nr := req.sequence_number, seid := g_pars.pfcp_pars.remote_cp_f_seid.seid, - cause := ts_PFCP_Cause(PFCP_Cause_REQUEST_ACCEPTED)); + cause := ts_PFCP_Cause(PFCP_Cause_REQUEST_ACCEPTED), + created_pdr := created_pdr); PFCP.send(resp); } diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index c818d94..e64d23d 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -38,6 +38,7 @@ import from NG_NAS_Osmo_Templates all; import from NG_NAS_Functions all; +import from PFCP_Types all; import from PFCP_Templates all; import from PFCP_Emulation all; import from Mutex all; @@ -414,6 +415,147 @@ setverdict(pass); } +/* 3GPP TS 23.502 Figure 4.9.1.3.2-1 step 11f + * 3GPP TS 29.502 Table 6.1.3.3.4.2.2-2, 6.1.6.2.5 Type: SmContextUpdatedData + * Expect to receive "200 OK with multipart body containing SBI + NGAP Handover Command */ +altstep as_n11_200_OK_handover_command(HTTP2_Msg http2_tx) +runs on SMF_Session_CT { + var HTTP2_Msg http2_rx; + var template (present) HTTP2_Msg http2_exp_rx := + tr_HTTP2_Msg_200_OK(conn_id := http2_tx.conn_id, + stream_id := http2_tx.stream_id, + headers := ?, + body := tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, + end_stream_flag := true, + data := ?)); + + [] as_http2_adapter_receive(http2_rx, http2_exp_rx, idx := http2_tx.conn_id) { + /* Split http2_rx.body.data into chunks since it is a multipart message: */ + var charstring content_type_val := valueof(f_HTTP2_header_list_find_header(http2_rx.hb.headers, c_HTTP2_HDR_content_type)); + var charstring boundary := f_HTTP2_header_content_type_multipart_val_get_boundary(content_type_val); + var HTTP2_multipart_part_list parts := f_HTTP2_multipart_msg_parse(http2_rx.body.data, boundary); + + var SmContextUpdatedData sm_ctx_updated_data; + var NGAP_IEs.PDUSessionResourceSetupRequestTransfer setup_req_transf; + var NGAP_IEs.HandoverCommandTransfer ho_cmd_transfer + + /* Decode 1st part: SBI json: */ + f_dec_SmContextUpdatedData(parts[0].data, sm_ctx_updated_data); // TODO: check returned integer. + /* TODO: Match sm_ctx_updated_data against what is received. */ + + /* Decode 2nd part: NGAP Handover Command: */ + ho_cmd_transfer := dec_NGAP_HandoverCommandTransfer(parts[1].data); + var F_TEID fteid := g_pars.pfcp_pars.gtp1u_pars.access.local; + if (not match(ho_cmd_transfer, + mw_handoverCommandTransfer(p_dLForwardingUP_TNLInformation := + mw_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(fteid.ipv4_address), + p_gtp_teid := fteid.teid))))) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("Got unexpected HandoverCommandTransfer ", ho_cmd_transfer)); + } + } +} + +/* 3GPP TS 23.502 Figure 4.9.1.3.2-1 step 11a, 11b */ +function f_n11_update_sm_context_handover_request_ack(template (value) UPTransportLayerInformation dl_utla, + template (omit) UPTransportLayerInformation dl_forward_utla := omit) +runs on SMF_Session_CT { + var template (value) SmContextUpdateData sm_ctx_update; + var template (value) octetstring body_enc; + var HTTP2_Msg http2_tx; + + sm_ctx_update := ts_SmContextUpdateData(ueLocation := f_ts_UserLocation(), + n2SmInfo := TS29502_Nsmf_PDUSession_Templates.ts_RefToBinaryData("ngap-sm"), + n2SmInfoType := ts_N2SmInfoType(HANDOVER_REQ_ACK)); + var octetstring ngap_enc := f_ngap_pdu_gen_HandoverRequestAcknowledge(dl_utla := dl_utla, + dl_forward_utla := dl_forward_utla); + + http2_tx := f_n11_prepare_update_sm_context(valueof(sm_ctx_update), ngap_enc); + f_http2_adapter_connect_send_smf(http2_tx, idx := http2_tx.conn_id); + + /* SMF updates RAN GTPU IP addr+TEID info on UPF: */ + if (isvalue(dl_forward_utla)) { + var OCT2 pdr_id := int2oct(5, 2); + var template (present) Create_PDR create_pdr := + tr_PFCP_Create_PDR(pdr_id := pdr_id, + pdi := tr_PFCP_PDI(src_iface := PFCP_Src_Iface_ACCESS, + local_F_TEID := tr_PFCP_F_TEID(?, ?, '1'B, '1'B, omit, omit, omit, ?), + network_instance := tr_PFCP_Network_Instance(g_pars.apn), + source_interface_type := tr_PFCP_ThreeGPP_Interface_Type(28 /* SGW/UPF GTP-U interface for UL data forwarding */)), + ohr := tr_PFCP_Outer_Header_Removal(PFCP_OHR_GTP_U_UDP_IP), + far_id := 4); + + var template (present) Outer_Header_Creation ohc := + tr_PFCP_Outer_Header_Creation_GTP_ipv4(dl_forward_utla.gTPTunnel.gTP_TEID, + bit2oct(valueof(dl_forward_utla.gTPTunnel.transportLayerAddress))); + var template (present) Create_FAR create_far := + tr_PFCP_Create_FAR(far_id := 4, + aa := tr_PFCP_Apply_Action(forw := '1'B), + fp := tr_PFCP_Forwarding_Parameters(dest_iface := PFCP_Dest_Iface_ACCESS, + ohc := ohc, + destination_interface_type := tr_PFCP_ThreeGPP_Interface_Type(10 /* SGW/UPF GTP-U interface for DL data forwarding */))); + + var template (value) Created_PDR created_pdr := + ts_PFCP_Created_PDR(pdr_id := ts_PFCP_PDR_ID(pdr_id), + local_F_TEID := g_pars.pfcp_pars.gtp1u_pars.access.local); + + as_pfcp_sess_mod_req(exp_create_pdr_list := {create_pdr}, + exp_create_far_list := {create_far}, + tx_created_pdr := created_pdr); + } + + /* Successful answer with HandoverCommandTransfer: */ + as_n11_200_OK_handover_command(http2_tx); + + f_http2_adapter_close(idx := http2_tx.conn_id); + setverdict(pass); +} + + +/* 3GPP TS 23.502 Figure 4.9.1.3.3-1 step 7-11 + * 3GPP TS 29.502 5.2.2.3.4.3 N2 Handover Execution */ +function f_n11_update_sm_context_handover_complete(UPTransportLayerInformation dl_utla) +runs on SMF_Session_CT { + var template (value) SmContextUpdateData sm_ctx_update; + var template (value) octetstring body_enc; + var HTTP2_Msg http2_tx; + var template (present) Outer_Header_Creation ohc; + var template (present) Update_FAR exp_update_far; + + sm_ctx_update := ts_SmContextUpdateData(ueLocation := f_ts_UserLocation(), + hoState := ts_HoState(COMPLETED)); + http2_tx := f_n11_prepare_update_sm_context(valueof(sm_ctx_update), omit); + f_http2_adapter_connect_send_smf(http2_tx, idx := http2_tx.conn_id); + + /* The main DL FAR is updated with the new DL address+TEID after HO completed: */ + ohc := tr_PFCP_Outer_Header_Creation_GTP_ipv4(dl_utla.gTPTunnel.gTP_TEID, + bit2oct(valueof(dl_utla.gTPTunnel.transportLayerAddress))); + exp_update_far := tr_PFCP_Update_FAR(far_id := 1, + aa := tr_PFCP_Apply_Action(forw := '1'B), + fp := tr_PFCP_Update_Forwarding_Parameters(dest_iface := tr_PFCP_Destination_Interface(PFCP_Dest_Iface_ACCESS), + ohc := ohc, + network_instance := tr_PFCP_Network_Instance(g_pars.apn))); + as_pfcp_sess_mod_req(exp_update_far_list := { exp_update_far }); + + /* The forwarding tunnel is removed: */ + as_pfcp_sess_mod_req(remove_pdr_list := { tr_PFCP_Remove_PDR(pdr_id := int2oct(5, 2)) }, + remove_far_list := { tr_PFCP_Remove_FAR(far_id := 4) }); + + /* Successful answer: */ + var HTTP2_Msg http2_rx; + var template (present) HTTP2_Msg http2_exp_rx := + tr_HTTP2_Msg_200_OK(conn_id := http2_tx.conn_id, + stream_id := http2_tx.stream_id, + headers := ?, + body := tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, + end_stream_flag := true, + data := decmatch(tr_SmContextUpdatedData(hoState := tr_HoState(COMPLETED))))); + as_http2_adapter_receive(http2_rx, http2_exp_rx, idx := http2_tx.conn_id); + f_http2_adapter_close(idx := http2_tx.conn_id); + setverdict(pass); +} + /* 3GPP TS 29.502 5.2.2.4 Release SM Context service operation * 3GPP TS 23.502 Figure 4.3.4.2-1 step 10a */ private function f_n11_prepare_release_sm_context(SmContextReleaseData sm_ctx_rel, @@ -1077,6 +1219,25 @@ return enc_NGAP_PDUSessionResourceSetupResponseTransfer(setup_resp_transf); } +/* 3GPP TS 38.413 9.3.4.11 Handover Request Acknowledge Transfer */ +private function f_ngap_pdu_gen_HandoverRequestAcknowledge(template (value) UPTransportLayerInformation dl_utla, + template (omit) UPTransportLayerInformation dl_forward_utla := omit) +runs on SMF_Session_CT return octetstring { + var template (value) UPTransportLayerInformation utla; + var template (value) QosFlowItemWithDataForwarding qos; + var NGAP_IEs.HandoverRequestAcknowledgeTransfer ho_req_ack_transf; + var integer qos_id := bit2int(g_pars.nas.qos_rules[0].u.creat.flowIdentifier); + + /* Prepare Response for it: */ + qos := m_qosFlowItemWithDataForwarding(qos_id, + m_dataForwardingAccepted(data_forwarding_accepted)); + ho_req_ack_transf := valueof(m_handoverRequestAcknowledgeTransfer(p_dL_NGU_UP_TNLInformation := dl_utla, + p_qosFlowSetupResponseList := { qos }, + p_dLForwardingUP_TNLInformation := dl_forward_utla)); + + return enc_NGAP_HandoverRequestAcknowledgeTransfer(ho_req_ack_transf); +} + /************ * NG NAS **************/ diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 9d8c968..7a132cb 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -36,6 +36,9 @@ import from HTTP2_Adapter all; import from HTTP2_Server_Emulation all; +import from NGAP_IEs language "ASN.1:2002" all; +import from NGAP_Templates all; + import from NG_NAS_Templates all; import from TS29502_Nsmf_PDUSession_Templates all; @@ -917,6 +920,40 @@ f_shutdown(); } +/* 3GPP TS 23.502 4.9.1.3 Inter NG-RAN node N2 based handover + * Set "DL Forwarding UP TNL Information" in NGAP Handover Request ACK AMF->SMF: + * The SMF should update the UPF to point to it until the handover is completed, + * at which point the "DL NG-U UP TNL Information" IE is to be used.*/ +private function f_TC_n11_handover_inter_ngran_n2_indirect_dl_forward() runs on SMF_Session_CT { + var template (value) UPTransportLayerInformation dl_forward_utla; + var template (value) UPTransportLayerInformation dl_utla; + f_n11_create_session(); + + /* Temporary gNB endpoint where to send DL traffic from the UPF during Handover: */ + dl_forward_utla := m_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(f_inet_addr("1.2.3.4")), + p_gtp_teid := '12345678'O)); + /* Final gNB endpoint where to send DL traffic from the UPF after Handover is completed: */ + dl_utla := m_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(f_inet_addr(g_pars.namf.ran_gtpu_ip)), + p_gtp_teid := '11223344'O)); + + f_n11_update_sm_context_handover_request_ack(dl_utla := dl_utla, + dl_forward_utla := dl_forward_utla); + f_n11_update_sm_context_handover_complete(valueof(dl_utla)); + f_n11_delete_session(); + setverdict(pass); +} +testcase TC_n11_handover_inter_ngran_n2_indirect_dl_forward() runs on SMF_Test_CT { + var SMF_Session_CT vc_conn; + var SessionPars pars := f_SessionPars(20, + rat_type := GTP2C_RAT_NR); + f_init(); + vc_conn := f_start_handler(refers(f_TC_n11_handover_inter_ngran_n2_indirect_dl_forward), pars); + vc_conn.done; + f_shutdown(); +} + /* Validate IUT detects PFCP Heartbeat timeout and recovers from it tearing down * existing subscriber connections: */ @@ -1056,6 +1093,9 @@ execute( TC_n11_createSession_deleteSession_250_ipv4v6() ); execute( TC_n11_createSession_pfcp_sess_est_timeout() ); execute( TC_n11_createSession_pfcp_sess_est_timeout_no_pdu_sess_est_rej() ); + + execute( TC_n11_handover_inter_ngran_n2_indirect_dl_forward() ); + execute( TC_5g_pfcp_heartbeat_timeout() ); execute( TC_5g_pfcp_heartbeat_recovery_timestamp() ); } diff --git a/smf/expected-results.xml b/smf/expected-results.xml index 3656cc4..e2d0150 100644 --- a/smf/expected-results.xml +++ b/smf/expected-results.xml @@ -23,6 +23,7 @@ <testcase classname='SMF_Tests' name='TC_n11_createSession_deleteSession_250_ipv4v6' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_createSession_pfcp_sess_est_timeout' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_createSession_pfcp_sess_est_timeout_no_pdu_sess_est_rej' time='MASKED'/> + <testcase classname='SMF_Tests' name='TC_n11_handover_inter_ngran_n2_indirect_dl_forward' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_5g_pfcp_heartbeat_timeout' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_5g_pfcp_heartbeat_recovery_timestamp' time='MASKED'/> </testsuite> -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44157?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: I11609e8b75d5ff03d2ca635599d99a7523b6787e Gerrit-Change-Number: 44157 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XL] Change in pysim[master]: esim/asn1: add the SGP.22 v3.1 RSPDefinitions module as rsp_v3
by dexter 23 Nov '26

23 Nov '26
Attention is currently required from: hampushellsberg. dexter has posted comments on this change by hampushellsberg. ( https://gerrit.osmocom.org/c/pysim/+/44007?usp=email ) Change subject: esim/asn1: add the SGP.22 v3.1 RSPDefinitions module as rsp_v3 ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/44007?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: I670ec73f9958882a8d3fe4b589bdafa3fbf702ea Gerrit-Change-Number: 44007 Gerrit-PatchSet: 2 Gerrit-Owner: hampushellsberg <hampushellsberg(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: hampushellsberg <hampushellsberg(a)gmail.com> Gerrit-Comment-Date: Mon, 23 Nov 2026 16:56:49 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in pysim[master]: esim/asn1/rsp: add the two types the SGP.32 module imports
by dexter 23 Nov '26

23 Nov '26
Attention is currently required from: hampushellsberg. dexter has posted comments on this change by hampushellsberg. ( https://gerrit.osmocom.org/c/pysim/+/44008?usp=email ) Change subject: esim/asn1/rsp: add the two types the SGP.32 module imports ...................................................................... Patch Set 2: Code-Review+1 (1 comment) File pySim/esim/asn1/rsp/rsp.asn: https://gerrit.osmocom.org/c/pysim/+/44008/comment/8d0c6281_225dd86c?usp=em… : PS2, Line 178: -- module by the SGP.32 v1.3 ASN.1 module (IMPORTS ... OperatorId ... FROM RSPDefinitions) I would recommend to prefix this comment with "-- workaround:" so that it is clear that this part is not from the original spec. -- To view, visit https://gerrit.osmocom.org/c/pysim/+/44008?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: I23d8c7e061a5573caa750fe76a6e8756ddbf0898 Gerrit-Change-Number: 44008 Gerrit-PatchSet: 2 Gerrit-Owner: hampushellsberg <hampushellsberg(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: hampushellsberg <hampushellsberg(a)gmail.com> Gerrit-Comment-Date: Mon, 23 Nov 2026 16:18:04 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in pysim[master]: esim.bsp: keep encrypted segments within 1020 bytes
by dexter 23 Nov '26

23 Nov '26
Attention is currently required from: hampushellsberg, laforge. dexter has posted comments on this change by hampushellsberg. ( https://gerrit.osmocom.org/c/pysim/+/44153?usp=email ) Change subject: esim.bsp: keep encrypted segments within 1020 bytes ...................................................................... Patch Set 2: Code-Review+1 (1 comment) Patchset: PS2: I have checked back the formula that calculates self.max_encrypted_payload_size, it is correct (I get 1007 from it), so I think nothing would speak against merging this. -- To view, visit https://gerrit.osmocom.org/c/pysim/+/44153?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: Ie59a8fb3d6cefc079e4e065d8ab9bd9cec886513 Gerrit-Change-Number: 44153 Gerrit-PatchSet: 2 Gerrit-Owner: hampushellsberg <hampushellsberg(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Attention: hampushellsberg <hampushellsberg(a)gmail.com> Gerrit-Comment-Date: Mon, 23 Nov 2026 16:08:40 +0000 Gerrit-HasComments: Yes 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 submitted this change. ( 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(-) Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve 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: merged 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: 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
[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 submitted this change. ( 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(-) Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve fixeria: Looks good to me, approved 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: merged 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-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 fixeria 23 Nov '26

23 Nov '26
Attention is currently required from: pespin. fixeria 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+2 -- 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-Comment-Date: Mon, 23 Nov 2026 12:27:42 +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 fixeria 23 Nov '26

23 Nov '26
Attention is currently required from: pespin. fixeria 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+2 -- 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: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Mon, 23 Nov 2026 12:25:26 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[L] Change in pysim[master]: ota: CAT_TP / TCP dialect of TS 102 225 secured packet
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/+/43717?usp=email ) Change subject: ota: CAT_TP / TCP dialect of TS 102 225 secured packet ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43717?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: I122a13000e622f7550468845e8560dec5a3c55a6 Gerrit-Change-Number: 43717 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:21:14 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.