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 -----
  • 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

September 2026

  • 1 participants
  • 1894 discussions
[XS] Change in pysim[master]: osmo-smdpp: add --smdp-address to set ES9+ SM-DP+ address
by Hoernchen 25 Sep '26

25 Sep '26
Attention is currently required from: dexter, laforge. Hoernchen has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43549?usp=email ) Change subject: osmo-smdpp: add --smdp-address to set ES9+ SM-DP+ address ...................................................................... Patch Set 3: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43549?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: I2fa822c7d5e0d5b68a6704a1779f9923505f9008 Gerrit-Change-Number: 43549 Gerrit-PatchSet: 3 Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: 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: laforge <laforge(a)osmocom.org> Gerrit-Attention: dexter <pmaier(a)sysmocom.de> Gerrit-Comment-Date: Fri, 25 Sep 2026 12:55:28 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: cosmetic: library/ICMPv6_Templates: Add missing newline at the end of...
by pespin 25 Sep '26

25 Sep '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43730?usp=email ) Change subject: cosmetic: library/ICMPv6_Templates: Add missing newline at the end of file ...................................................................... cosmetic: library/ICMPv6_Templates: Add missing newline at the end of file Change-Id: I7052c2bf2bc47137d35b6637138a615857282d08 --- M library/ICMPv6_Templates.ttcn 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/30/43730/1 diff --git a/library/ICMPv6_Templates.ttcn b/library/ICMPv6_Templates.ttcn index a77fb62..0a01bd3 100644 --- a/library/ICMPv6_Templates.ttcn +++ b/library/ICMPv6_Templates.ttcn @@ -233,4 +233,4 @@ return f_IPv6_enc(ip6); } -} \ No newline at end of file +} -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43730?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: I7052c2bf2bc47137d35b6637138a615857282d08 Gerrit-Change-Number: 43730 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: PFCP_Templates: Multiple improvements
by pespin 25 Sep '26

25 Sep '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43731?usp=email ) Change subject: PFCP_Templates: Multiple improvements ...................................................................... PFCP_Templates: Multiple improvements These improvements will be used in SMF_tests later on. Change-Id: I6e6bc92d26e0b4041ef56f5c8d7eb23d4c302529 --- M library/PFCP_Templates.ttcn 1 file changed, 132 insertions(+), 40 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/31/43731/1 diff --git a/library/PFCP_Templates.ttcn b/library/PFCP_Templates.ttcn index 5cdc5cc..5a7a325 100644 --- a/library/PFCP_Templates.ttcn +++ b/library/PFCP_Templates.ttcn @@ -559,6 +559,15 @@ ur_seqn := ur_seqn } +/* 8.2.118 3GPP Interface Type */ +template (present) ThreeGPP_Interface_Type +tr_PFCP_ThreeGPP_Interface_Type(template (present) INT6b interfacetypevalue := ?) := { + elementIdentifier := 160, + lengthIndicator := ?, + interfacetypevalue := interfacetypevalue, + spare := '00'B +} + /* 8.2.132 Quota Validity Time */ template (present) Quota_Validity_Time tr_Quota_Validity_Time(template (present) LIN4_BO_LAST validity_time_value := ?) := { @@ -808,6 +817,28 @@ ipv6_address := omit } +template (present) F_TEID +tr_PFCP_F_TEID(template (present) BIT1 v4 := ?, + template (present) BIT1 v6 := ?, + template (present) BIT1 ch := ?, + template (present) BIT1 chid := ?, + template OCT4 teid := *, + template OCT4 ipv4_address := *, + template OCT16 ipv6_address := *, + template OCT1 choose_id := *) := { + elementIdentifier := 21, + lengthIndicator := ?, + v4 := v4, + v6 := v6, + ch := ch, + chid := chid, + spare := '0000'B, + teid := teid, + ipv4_address := ipv4_address, + ipv6_address := ipv6_address, + choose_id := choose_id +} + template (value) F_TEID ts_PFCP_F_TEID_ipv4(OCT4 teid, OCT4 addr_v4) := { elementIdentifier := 21, lengthIndicator := 0, @@ -844,6 +875,12 @@ return qname; } +template (present) Network_Instance +tr_PFCP_Network_Instance(charstring netinst_name) := { + elementIdentifier := 22, + lengthIndicator := ?, + pdn_instance := f_netinst_str_to_qname(netinst_name) +}; template (value) Network_Instance ts_PFCP_Network_Instance(charstring netinst_name) := { elementIdentifier := 22, @@ -851,6 +888,33 @@ pdn_instance := f_netinst_str_to_qname(netinst_name) }; +template (present) SDF_Filter +tr_PFCP_SDF_Filter(template (present) BIT1 fd := ?, + template (present) BIT1 ttc := ?, + template (present) BIT1 spi := ?, + template (present) BIT1 fl := ?, + template (present) BIT1 bid := ?, + template octetstring flow_description := *, + template OCT2 ToS_Traffic_Class := *, + template OCT4 security_parameter_index := *, + template OCT3 flow_label := *, + template LIN4_BO_LAST SDF_filter_id := *) := { + elementIdentifier := 23, + lengthIndicator := ?, + fd := fd, + ttc := ttc, + spi := spi, + fl := fl, + bid := bid, + spare := '00000000000'B, + lengthFlowDesc := *, + flow_description := flow_description, + ToS_Traffic_Class := ToS_Traffic_Class, + security_parameter_index := security_parameter_index, + flow_label := flow_label, + SDF_filter_id := SDF_filter_id +} + template (value) PDI_IE ts_PFCP_PDI(e_PFCP_Src_Iface src_iface, template (omit) F_TEID local_F_TEID := omit, @@ -875,20 +939,26 @@ tr_PFCP_PDI(e_PFCP_Src_Iface src_iface, template F_TEID local_F_TEID := *, template UE_IP_Address ue_addr_v4 := *, - template Network_Instance network_instance := *) := { - elementIdentifier := 2, - lengthIndicator := ?, + template Network_Instance network_instance := *, + template Traffic_Endpoint_ID traffic_endpoint_id := *, + template SDF_Filter_list sdf_filter_list := *, + template Application_ID application_id := *, + template Ethernet_Packet_Filter_list ethernet_packet_filter_list := *, + template QFI_list qfi_list := *, + template ThreeGPP_Interface_Type source_interface_type := *) := { + elementIdentifier := 2, + lengthIndicator := ?, grouped_ie := { source_interface := tr_PFCP_Src_Iface(src_iface), local_F_TEID := local_F_TEID, pdn_instance := network_instance, ue_ip_address := ue_addr_v4, - traffic_endpoint_id := *, - sdf_filter_list := *, - application_id := *, - ethernet_packet_filter_list := *, - qfi_list := *, - source_interface_type := * + traffic_endpoint_id := traffic_endpoint_id, + sdf_filter_list := sdf_filter_list, + application_id := application_id, + ethernet_packet_filter_list := ethernet_packet_filter_list, + qfi_list := qfi_list, + source_interface_type := source_interface_type } } @@ -918,24 +988,34 @@ template (present) Apply_Action tr_PFCP_Apply_Action(template (present) BIT1 forw := '0'B, template (present) BIT1 drop := '0'B, - template (present) BIT1 buff := '0'B) := { + template (present) BIT1 buff := '0'B, + template (present) BIT1 nocp := '0'B, + template (present) BIT1 dupl := '0'B, + template (present) BIT1 ipma := '0'B, + template (present) BIT1 ipmd := '0'B, + template (present) BIT1 dfrt := '0'B, + template BIT1 edrt := *, + template BIT1 bdpn := *, + template BIT1 ddpn := *, + template BIT1 fssm := *, + template BIT1 mbsu := *) := { elementIdentifier := 44, lengthIndicator := ?, /* octet 5: */ drop := drop, forw := forw, buff := buff, - nocp := ?, - dupl := ?, - ipma := ?, - ipmd := ?, - dfrt := ?, + nocp := nocp, + dupl := dupl, + ipma := ipma, + ipmd := ipmd, + dfrt := dfrt, /* octet 6: */ - edrt := *, - bdpn := *, - ddpn := *, - fssm := *, - mbsu := *, + edrt := edrt, + bdpn := bdpn, + ddpn := ddpn, + fssm := fssm, + mbsu := mbsu, spare := * } @@ -1024,38 +1104,50 @@ template (value) Forwarding_Parameters ts_PFCP_Forwarding_Parameters(e_PFCP_Dest_Iface dest_iface, + template (omit) Network_Instance network_instance := omit, + template (omit) Redirect_Information redirect_information := omit, template (omit) Outer_Header_Creation ohc := omit, - template (omit) Network_Instance network_instance := omit) := { - elementIdentifier := 4, - lengthIndicator := 0, - grouped_ie := { + template (omit) DL_Transport_Level_Marking transport_level_marking := omit, + template (omit) Forwarding_Policy forwarding_policy := omit, + template (omit) Header_Enrichment header_enrichment := omit, + template (omit) Traffic_Endpoint_ID traffic_endpoint_ID := omit, + template (omit) ThreeGPP_Interface_Type destination_interface_type := omit) := { + elementIdentifier := 4, + lengthIndicator := 0, + grouped_ie := { destination_interface := ts_PFCP_Destination_Interface(dest_iface), pdn_Instance := network_instance, - redirect_information := omit, + redirect_information := redirect_information, outer_header_creation := ohc, - transport_level_marking := omit, - forwarding_policy := omit, - header_enrichment := omit, - traffic_endpoint_ID := omit, - destination_interface_type := omit + transport_level_marking := transport_level_marking, + forwarding_policy := forwarding_policy, + header_enrichment := header_enrichment, + traffic_endpoint_ID := traffic_endpoint_ID, + destination_interface_type := destination_interface_type } } template (present) Forwarding_Parameters tr_PFCP_Forwarding_Parameters(e_PFCP_Dest_Iface dest_iface, + template Network_Instance network_instance := *, + template Redirect_Information redirect_information := *, template Outer_Header_Creation ohc := *, - template Network_Instance network_instance := *) := { - elementIdentifier := 4, - lengthIndicator := ?, - grouped_ie := { + template DL_Transport_Level_Marking transport_level_marking := *, + template Forwarding_Policy forwarding_policy := *, + template Header_Enrichment header_enrichment := *, + template Traffic_Endpoint_ID traffic_endpoint_ID := *, + template ThreeGPP_Interface_Type destination_interface_type := *) := { + elementIdentifier := 4, + lengthIndicator := ?, + grouped_ie := { destination_interface := tr_PFCP_Destination_Interface(dest_iface), pdn_Instance := network_instance, - redirect_information := *, + redirect_information := redirect_information, outer_header_creation := ohc, - transport_level_marking := *, - forwarding_policy := *, - header_enrichment := *, - traffic_endpoint_ID := *, - destination_interface_type := * + transport_level_marking := transport_level_marking, + forwarding_policy := forwarding_policy, + header_enrichment := header_enrichment, + traffic_endpoint_ID := traffic_endpoint_ID, + destination_interface_type := destination_interface_type } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43731?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: I6e6bc92d26e0b4041ef56f5c8d7eb23d4c302529 Gerrit-Change-Number: 43731 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XL] Change in pysim[master]: cattp: ETSI TS 102 127 transport for OTA over BIP UDP
by dexter 25 Sep '26

25 Sep '26
Attention is currently required from: Hoernchen, laforge. dexter has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43719?usp=email ) Change subject: cattp: ETSI TS 102 127 transport for OTA over BIP UDP ...................................................................... Patch Set 1: Code-Review+1 (15 comments) Patchset: PS1: The logic looks ok to me, but there are a lot of magic numbers, which makes this module very hard to understand. File pySim/cattp.py: https://gerrit.osmocom.org/c/pysim/+/43719/comment/fc8e28cf_2a25e4d5?usp=em… : PS1, Line 54: HDR_LEN = 18 # TS 102 127 5.6.2, without a variable header area Shouldn't this be 12 instead of 18? - However, in the code below I can see that 18 is actually correct. Was just wondering why the spec says 12. (The comment above this constant would look nicer) https://gerrit.osmocom.org/c/pysim/+/43719/comment/6b34b1bf_3c6b6666?usp=em… : PS1, Line 68: RST refers to connection reset like in TCP? https://gerrit.osmocom.org/c/pysim/+/43719/comment/1d46a2d5_74520a00?usp=em… : PS1, Line 105: self.data = bytes(data) what if someone tries to instantiate a SYN PDU with data in it? Wouldn't that be illegal (see my other comment below?) https://gerrit.osmocom.org/c/pysim/+/43719/comment/8977f892_003750d3?usp=em… : PS1, Line 136: var = self._variable_header() As far as I can see you are calling _variable_header only from here. Maybe turn it into a nested function or move the code into here? https://gerrit.osmocom.org/c/pysim/+/43719/comment/221048ad_a5ea1352?usp=em… : PS1, Line 137: hdr = bytearray([self.flags | (self.version & 0x03), 0, 0, HDR_LEN + len(var)]) using construct wasn't an option? In other location you use it quite often, why not use it here too? https://gerrit.osmocom.org/c/pysim/+/43719/comment/17c86fc1_ddffc20c?usp=em… : PS1, Line 144: return bytes(hdr) + self.data I wonder what would happen if self.syn is true and self.data has bytes. In ETSI TS 120 127, section 5.7.0 I find that the SYN PDU has a data length of 0, so this would be an illegal state. (same for the RST PDU) Maybe it would be good to have some logic to detect such illegal cases and raise an exception then? https://gerrit.osmocom.org/c/pysim/+/43719/comment/422a570d_8af8b79d?usp=em… : PS1, Line 154: (hdr_len, data_len, len(raw))) I would recommend to split this. The first check directly after hdr_len = raw[3] and the second check after data_len = ... When hdr_lrn already contains values that are implausible, we should not continue. https://gerrit.osmocom.org/c/pysim/+/43719/comment/30526dc4_8ae98c92?usp=em… : PS1, Line 156: raise CatTpError('checksum mismatch') maybe use constants for those offsets. I think this would be a lot easier to read. https://gerrit.osmocom.org/c/pysim/+/43719/comment/9f85acaa_dc64c8d9?usp=em… : PS1, Line 163: if len(var) < 5 or len(var) != 5 + var[4]: I think you should comment this. On the 5 look the 5 looks strange, because in Figure 40 of the spec the Identification is depicted as a 16 bit field. But that is a trap. When looking it up, its actually a variable field with a one byte length. So the first comparison is correct, even though it appears to be wrong on the first look. The second comparison targets adds the 5 byte of the fixed var part with the length field of the identification - also correct. When you put a comment, please add a reference to: ETSI TS 102 127, section 5.5 https://gerrit.osmocom.org/c/pysim/+/43719/comment/c8d37da6_d07c03d7?usp=em… : PS1, Line 172: raise CatTpError('malformed EACK variable header') So this checks if we have an uneven or even number of bytes in the variable part of the PDU. In the RST PDU case we should have an uneven number (I think tit should even be a fixed number). And in the EACK PDU case we must have an even number of bytes. I would recommend to put a comment here, this is difficult to grasp. https://gerrit.osmocom.org/c/pysim/+/43719/comment/1d58bd07_56ba0abb?usp=em… : PS1, Line 537: ACK into the same PDU.""" maybe put an API docstring for every constructor parameter? I think here it is most important as this is the interface the API user has to understand to make use of this module. https://gerrit.osmocom.org/c/pysim/+/43719/comment/5abcdcbf_4d32b672?usp=em… : PS1, Line 551: def bind(self) -> int: Called by the API user, add API docstring. https://gerrit.osmocom.org/c/pysim/+/43719/comment/1df624a9_b8733b4d?usp=em… : PS1, Line 558: def serve_forever(self): Called by the API user, add API docstring. https://gerrit.osmocom.org/c/pysim/+/43719/comment/9e29830a_61cdcdbf?usp=em… : PS1, Line 564: raw, addr = self._sock.recvfrom(65535) maybe add a constant for the number of bytes? -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43719?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: I6f31493c1f0fb48fb3fd5382d8af2c905d365e54 Gerrit-Change-Number: 43719 Gerrit-PatchSet: 1 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-Attention: laforge <laforge(a)osmocom.org> Gerrit-Comment-Date: Fri, 25 Sep 2026 12:40:57 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-trx[master]: Transceiver52M: Use TRXC command constants
by fixeria 25 Sep '26

25 Sep '26
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-trx/+/43728?usp=email ) Change subject: Transceiver52M: Use TRXC command constants ...................................................................... Transceiver52M: Use TRXC command constants Change-Id: I6a65f9e2dac0d895719e2ea13d587938cc26a291 --- M Transceiver52M/Transceiver.cpp M libosmo-trx/include/osmocom/trx/trxc.h 2 files changed, 18 insertions(+), 17 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index 616ae10..b388c4d 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -935,10 +935,10 @@ LOGCHAN(chan, DTRXCTRL, INFO) << "command is '" << osmo_trxc_msg_name(&cmd) << "'"; - if (!strcmp(cmd.cmd, "POWEROFF")) { + if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_POWEROFF)) { stop(); rsp.status = 0; - } else if (!strcmp(cmd.cmd, "POWERON")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_POWERON)) { if (start()) { rsp.status = 0; for (int i = 0; i < 8; i++) { @@ -946,21 +946,21 @@ mHandover[i][j] = false; } } - } else if (!strcmp(cmd.cmd, "HANDOVER")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_HANDOVER)) { unsigned ts = 0, ss = 0; if (osmo_trxc_msg_params_scan(&cmd, "%u %u", &ts, &ss) == 2 && ts <= 7 && ss <= 7) { mHandover[ts][ss] = true; rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%u %u", ts, ss); - } else if (!strcmp(cmd.cmd, "NOHANDOVER")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_NOHANDOVER)) { unsigned ts = 0, ss = 0; if (osmo_trxc_msg_params_scan(&cmd, "%u %u", &ts, &ss) == 2 && ts <= 7 && ss <= 7) { mHandover[ts][ss] = false; rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%u %u", ts, ss); - } else if (!strcmp(cmd.cmd, "SETMAXDLY")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETMAXDLY)) { //set expected maximum time-of-arrival for Access Bursts int maxDelay = 0; if (osmo_trxc_msg_params_scan(&cmd, "%d", &maxDelay) == 1) { @@ -968,7 +968,7 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", maxDelay); - } else if (!strcmp(cmd.cmd, "SETMAXDLYNB")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETMAXDLYNB)) { //set expected maximum time-of-arrival for Normal Bursts int maxDelay = 0; if (osmo_trxc_msg_params_scan(&cmd, "%d", &maxDelay) == 1) { @@ -976,14 +976,14 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", maxDelay); - } else if (!strcmp(cmd.cmd, "SETRXGAIN")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETRXGAIN)) { int newGain = 0; if (osmo_trxc_msg_params_scan(&cmd, "%d", &newGain) == 1) { newGain = mRadioInterface->setRxGain(newGain, chan); rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", newGain); - } else if (!strcmp(cmd.cmd, "NOISELEV")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_NOISELEV)) { if (mOn) { float lev = mStates[chan].mNoiseLev; rsp.status = 0; @@ -992,7 +992,7 @@ } else { snprintf(rsp.params, sizeof(rsp.params), "0"); } - } else if (!strcmp(cmd.cmd, "SETPOWER")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETPOWER)) { int power = 0; if (osmo_trxc_msg_params_scan(&cmd, "%d", &power) == 1) { power = mRadioInterface->setPowerAttenuation(power, chan); @@ -1000,7 +1000,7 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", power); - } else if (!strcmp(cmd.cmd, "ADJPOWER")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_ADJPOWER)) { int power = mStates[chan].mPower, step; if (osmo_trxc_msg_params_scan(&cmd, "%d", &step) == 1) { power = mStates[chan].mPower + step; @@ -1009,11 +1009,11 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", power); - } else if (!strcmp(cmd.cmd, "NOMTXPOWER")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_NOMTXPOWER)) { int power = mRadioInterface->getNominalTxPower(chan); rsp.status = 0; snprintf(rsp.params, sizeof(rsp.params), "%d", power); - } else if (!strcmp(cmd.cmd, "RXTUNE")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_RXTUNE)) { // tune receiver int freqKhz = 0; if (osmo_trxc_msg_params_scan(&cmd, "%d", &freqKhz) == 1) { @@ -1024,7 +1024,7 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", freqKhz); - } else if (!strcmp(cmd.cmd, "TXTUNE")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_TXTUNE)) { // tune txmtr int freqKhz = 0; if (osmo_trxc_msg_params_scan(&cmd, "%d", &freqKhz) == 1) { @@ -1035,7 +1035,7 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%d", freqKhz); - } else if (!strcmp(cmd.cmd, "SETTSC")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETTSC)) { // set TSC unsigned TSC = 0; if (osmo_trxc_msg_params_scan(&cmd, "%u", &TSC) == 1 && TSC <= 7) { @@ -1044,7 +1044,7 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%u", TSC); - } else if (!strcmp(cmd.cmd, "SETSLOT")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETSLOT)) { // set slot type struct osmo_trxc_setslot ss; if (osmo_trxc_setslot_parse(&ss, &cmd) < 0) { @@ -1057,7 +1057,7 @@ rsp.status = 0; } snprintf(rsp.params, sizeof(rsp.params), "%s", cmd.params); - } else if (!strcmp(cmd.cmd, "SETFORMAT")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_SETFORMAT)) { // set TRXD protocol version unsigned version_recv = 0; if (osmo_trxc_msg_params_scan(&cmd, "%u", &version_recv) != 1) { @@ -1079,7 +1079,7 @@ } snprintf(rsp.params, sizeof(rsp.params), "%u", version_recv); } - } else if (!strcmp(cmd.cmd, "RFMUTE")) { + } else if (!strcmp(cmd.cmd, OSMO_TRXC_CMD_RFMUTE)) { // (Un)mute RF TX and RX unsigned mute = 0; if (osmo_trxc_msg_params_scan(&cmd, "%u", &mute) == 1) { diff --git a/libosmo-trx/include/osmocom/trx/trxc.h b/libosmo-trx/include/osmocom/trx/trxc.h index 9c2799a..f8da7d5 100644 --- a/libosmo-trx/include/osmocom/trx/trxc.h +++ b/libosmo-trx/include/osmocom/trx/trxc.h @@ -62,6 +62,7 @@ #define OSMO_TRXC_CMD_HANDOVER "HANDOVER" #define OSMO_TRXC_CMD_NOHANDOVER "NOHANDOVER" #define OSMO_TRXC_CMD_RFMUTE "RFMUTE" +#define OSMO_TRXC_CMD_NOISELEV "NOISELEV" #define OSMO_TRXC_CMD_SETFH "SETFH" #define OSMO_TRXC_CMD_ERR "ERR" /*!< verb of a reject response */ -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43728?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I6a65f9e2dac0d895719e2ea13d587938cc26a291 Gerrit-Change-Number: 43728 Gerrit-PatchSet: 1 Gerrit-Owner: matanp <matan1008(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-trx[master]: Transceiver52M: Use TRXC command constants
by fixeria 25 Sep '26

25 Sep '26
Attention is currently required from: matanp. fixeria has posted comments on this change by matanp. ( https://gerrit.osmocom.org/c/osmo-trx/+/43728?usp=email ) Change subject: Transceiver52M: Use TRXC command constants ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43728?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I6a65f9e2dac0d895719e2ea13d587938cc26a291 Gerrit-Change-Number: 43728 Gerrit-PatchSet: 1 Gerrit-Owner: matanp <matan1008(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: matanp <matan1008(a)gmail.com> Gerrit-Comment-Date: Fri, 25 Sep 2026 10:49:29 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in pysim[master]: ota: TS 102 226 PUSH command and CAT_TP trigger
by dexter 25 Sep '26

25 Sep '26
Attention is currently required from: Hoernchen, laforge. dexter has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43718?usp=email ) Change subject: ota: TS 102 226 PUSH command and CAT_TP trigger ...................................................................... Patch Set 1: Code-Review+2 (1 comment) Patchset: PS1: I think this is technically ok, but there is one technical detail that is not quite right: This tool generates TPDUs not APDUs. When I try to send the resulting hex-strings with pySIm-shell to a card, the following happens: ``` pySIM-shell (00:MF)> apdu 80ec010113b50103b9020400bc0301102dbe05217f000001 Warning: The default for the setable parameter `apdu_strict` will be changed from `False` to `True` in future pySim-shell releases. In case you are using the `apdu` command from a script that still mixes APDUs with TPDUs, consider fixing or adding a `set apdu_strict false` line at the beginning. SW: 6d00 ``` The problem is the missing Le field (0x00) in this case. When I append a 0x00 byte the warning vanishes. This is more or less a cosmetic issue. Nothing bad will happen. However, I thought that you should be aware of this detail. From within pySim-shell we send APDUs. In pySim.transport those APDUs are mapped on TPDUs. -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43718?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: Ib3423c4fe582dbcc9434c8234709a7b845fa6bcd Gerrit-Change-Number: 43718 Gerrit-PatchSet: 1 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-Attention: laforge <laforge(a)osmocom.org> Gerrit-Comment-Date: Fri, 25 Sep 2026 08:34:01 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: smf: Fix wrong HTTP2_Adapter local_port=-1
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43695?usp=email ) Change subject: smf: Fix wrong HTTP2_Adapter local_port=-1 ...................................................................... smf: Fix wrong HTTP2_Adapter local_port=-1 The port number 0 is the one used to let the OS pick an unused local port. Change-Id: I70b5c65cdaa06d111697cd2f4b4473da8cbbc5a0 --- M library/HTTP2_Adapter.ttcn M smf/SMF_Session_CT_5G.ttcn 2 files changed, 5 insertions(+), 5 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/HTTP2_Adapter.ttcn b/library/HTTP2_Adapter.ttcn index 4d9a750..4156395 100644 --- a/library/HTTP2_Adapter.ttcn +++ b/library/HTTP2_Adapter.ttcn @@ -96,7 +96,7 @@ /* Function to use to connect as client to a remote IPA Server */ function f_http2_adapter_connect(charstring remote_host, IPL4asp_Types.PortNumber remote_port, - charstring local_host, IPL4asp_Types.PortNumber local_port, boolean use_ssl := false, integer idx := 0) + charstring local_host, IPL4asp_Types.PortNumber local_port := 0, boolean use_ssl := false, integer idx := 0) runs on HTTP2_CT { var IPL4asp_Types.Result res; res := HTTP2_CodecPort_CtrlFunct.f_IPL4_connect(HTTP2[idx], remote_host, remote_port, @@ -104,7 +104,7 @@ if (not ispresent(res.connId)) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str(idx, ": Could not connect HTTP2 socket from ", local_host, " port ", local_port, - " to ", remote_host, " port ", remote_port, "; check your configuration")); + " to ", remote_host, " port ", remote_port, "; check your configuration. Result: ", res)); } g_self_conn_id[idx] := res.connId; g_http2_pars[idx] := valueof(ts_HTTP2_Adapter_Params(idx, remote_host, remote_port, local_host, local_port, use_ssl)); diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index 575306c..dc49e78 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -196,7 +196,7 @@ end_stream_flag := true, data := body)); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, idx := http2_idx); /////////// START MUTUAL EXCLUSION ZONE //////////// /* This code block cannot be executed by more than one component at a time because @@ -294,7 +294,7 @@ end_stream_flag := true, data := body_enc)); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, idx := http2_idx); f_http2_adapter_send(http2_tx); /* SMF updates RAN GTPU IP addr+TEID info on UPF: */ @@ -349,7 +349,7 @@ end_stream_flag := true, data := body_enc)); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, idx := http2_idx); f_http2_adapter_send(http2_tx); /* SMF deletes PDU Session on UPF: */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43695?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: I70b5c65cdaa06d111697cd2f4b4473da8cbbc5a0 Gerrit-Change-Number: 43695 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: smf: Implement smf: Implement f_n11_delete_session()
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43692?usp=email ) Change subject: smf: Implement smf: Implement f_n11_delete_session() ...................................................................... smf: Implement smf: Implement f_n11_delete_session() Change-Id: Ib8be72624330cd944447a2d479360b064b81c28f --- M library/HTTP2_Msg.ttcn M library/TS29502_Nsmf_PDUSession_Templates.ttcn M library/TS29512_Npcf_SMPolicyControl_Templates.ttcn M smf/SMF_Session_CT.ttcn M smf/SMF_Session_CT_5G.ttcn 5 files changed, 296 insertions(+), 36 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve diff --git a/library/HTTP2_Msg.ttcn b/library/HTTP2_Msg.ttcn index 4150c0b..23cb945 100644 --- a/library/HTTP2_Msg.ttcn +++ b/library/HTTP2_Msg.ttcn @@ -102,11 +102,18 @@ template (present) HTTP2_Msg tr_HTTP2_Msg_204_No_Content(template (present) IPL4asp_Types.ConnectionId conn_id := ?, - template (present) integer stream_id := ?, - template HTTP2_header_list headers := *, - template HTTP2_Data_frame body := omit) := + template (present) integer stream_id := ?, + template HTTP2_header_list headers := *, + template HTTP2_Data_frame body := omit) := tr_HTTP2_Msg_Status(conn_id, stream_id, 204, headers, body); +template (value) HTTP2_Msg +ts_HTTP2_Msg_204_No_Content(template (value) IPL4asp_Types.ConnectionId conn_id, + template (value) integer stream_id , + template (omit) HTTP2_header_list headers := omit, + template (omit) HTTP2_Data_frame body := omit) := +ts_HTTP2_Msg_Status(conn_id, stream_id, 204, headers, omit); + function f_HTTP2_Msg_append_hdr_content_length(inout HTTP2_Msg http2_msg) { diff --git a/library/TS29502_Nsmf_PDUSession_Templates.ttcn b/library/TS29502_Nsmf_PDUSession_Templates.ttcn index b89c5c8..208c404 100644 --- a/library/TS29502_Nsmf_PDUSession_Templates.ttcn +++ b/library/TS29502_Nsmf_PDUSession_Templates.ttcn @@ -413,6 +413,30 @@ localOffloadingMgtAllowedInd := localOffloadingMgtAllowedInd } +/* 6.1.6.2.6 */ +template (value) SmContextReleaseData +ts_SmContextReleaseData(template (omit) Cause cause := omit, + template (omit) NgApCause ngApCause := omit, + template (omit) FiveGMmCause fivegMmCauseValue := omit, + template (omit) UserLocation ueLocation := omit, + template (omit) TimeZone ueTimeZone := omit, + template (omit) UserLocation addUeLocation := omit, + template (omit) boolean vsmfReleaseOnly := omit, + template (omit) RefToBinaryData n2SmInfo := omit, + template (omit) N2SmInfoType n2SmInfoType := omit, + template (omit) boolean ismfReleaseOnly := omit) := { + cause := cause, + ngApCause := ngApCause, + fivegMmCauseValue := fivegMmCauseValue, + ueLocation := ueLocation, + ueTimeZone := ueTimeZone, + addUeLocation := addUeLocation, + vsmfReleaseOnly := vsmfReleaseOnly, + n2SmInfo := n2SmInfo, + n2SmInfoType := n2SmInfoType, + ismfReleaseOnly := ismfReleaseOnly +} + template (value) RefToBinaryData ts_RefToBinaryData(template (value) charstring contentId) := { contentId := contentId diff --git a/library/TS29512_Npcf_SMPolicyControl_Templates.ttcn b/library/TS29512_Npcf_SMPolicyControl_Templates.ttcn index 4e12839..194f60d 100644 --- a/library/TS29512_Npcf_SMPolicyControl_Templates.ttcn +++ b/library/TS29512_Npcf_SMPolicyControl_Templates.ttcn @@ -218,6 +218,28 @@ locOffloadInfos := locOffloadInfos, vplmnDlAmbr := vplmnDlAmbr, sessionRecovStatus := sessionRecovStatus - } +} + +type TS29512_Npcf_SMPolicyControl.SmPolicyDeleteData1.ranNasRelCauses RanNasRelCause1List; +type TS29512_Npcf_SMPolicyControl.SmPolicyDeleteData1.accuUsageReports AccuUsageReport1List; + +template (present) SmPolicyDeleteData1 +tr_SmPolicyDeleteData1(template UserLocation1 userLocationInfo := *, + template TimeZone1 ueTimeZone := *, + template PlmnIdNid1 servingNetwork := *, + template DateTime1 userLocationInfoTime := *, + template RanNasRelCause1List ranNasRelCauses := *, + template AccuUsageReport1List accuUsageReports := *, + template PduSessionRelCause1 pduSessRelCause := *, + template SatelliteId1 servSatId := *) := { + userLocationInfo := userLocationInfo, + ueTimeZone := ueTimeZone, + servingNetwork := servingNetwork, + userLocationInfoTime := userLocationInfoTime, + ranNasRelCauses := ranNasRelCauses, + accuUsageReports := accuUsageReports, + pduSessRelCause := pduSessRelCause, + servSatId := servSatId +} } diff --git a/smf/SMF_Session_CT.ttcn b/smf/SMF_Session_CT.ttcn index d0a7aea..c65ef32 100644 --- a/smf/SMF_Session_CT.ttcn +++ b/smf/SMF_Session_CT.ttcn @@ -166,6 +166,10 @@ }; +type record SessionPars_Npcf { + charstring sm_policy_id +}; + type record SessionPars_Nsmf { charstring smContextRef optional }; @@ -209,6 +213,7 @@ PfcpParameters pfcp_pars, SessionPars_Namf namf, + SessionPars_Npcf npcf, SessionPars_Nsmf nsmf, SessionPars_Nudm nudm, SessionPars_NGNAS nas @@ -253,6 +258,9 @@ ue_ip6 := omit, ipv6_interface_id := omit }, + npcf := { + sm_policy_id := f_dec_TBCD(imsi_hex2oct(imsi)) /* imsi_str */ & "-" & int2str(1) + }, nsmf := { smContextRef := omit }, diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index 5313c54..575306c 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -56,24 +56,28 @@ const charstring SCP_uri_hostport := mp_scp_local_ip & ":" & int2str(mp_scp_local_port); const charstring SCP_uri_prefix := "http://" & SCP_uri_hostport; -/******************************************** - * N11 Nsmf (SBI): Requests towards IUT SMFs - ********************************************/ +/************************************************************ + * N11 Nsmf (SBI): Requests towards IUT SMFs, 3GPP TS 29.502 + ************************************************************/ const charstring Nsmf_uri_hostport := mp_smf_hostname & ":" & int2str(mp_smf_sbi_port); const charstring Nsmf_uri_prefix := "http://" & Nsmf_uri_hostport; const charstring Nsmf_PDUSession_path_api_prefix := "/nsmf-pdusession/v1" const charstring Nsmf_PDUSession_path_sm_contexts := Nsmf_PDUSession_path_api_prefix & "/sm-contexts"; +/* 6.1.3.2 Resource: SM contexts collection */ template (value) charstring ts_Nsmf_PDUSession_path_sm_contexts(template (value) charstring smContextRef) := Nsmf_PDUSession_path_sm_contexts & "/" & valueof(smContextRef); +/* 6.1.3.3 Resource: Individual SM context */ template (present) charstring tr_Nsmf_PDUSession_uri_sm_contexts(template charstring smContextRef := pattern "\d+") := pattern Nsmf_uri_prefix & Nsmf_PDUSession_path_sm_contexts & "/" & smContextRef; template (value) charstring ts_Nsmf_PDUSession_path_sm_context_modify(template (value) charstring smContextRef) := Nsmf_PDUSession_path_sm_contexts & "/" & valueof(smContextRef) & "/modify"; +template (value) charstring ts_Nsmf_PDUSession_path_sm_context_release(template (value) charstring smContextRef) := + Nsmf_PDUSession_path_sm_contexts & "/" & valueof(smContextRef) & "/release"; function f_n11_init() runs on SMF_Session_CT { f_http2_adapter_init(); @@ -253,7 +257,6 @@ /* 3GPP TS 29.502 5.2.2.3 Update SM Context service operation */ function f_n11_update_sm_context() runs on SMF_Session_CT { - var template (value) SmContextUpdateData sm_ctx_update; var octetstring sm_ctx_update_enc; var template (value) octetstring body_enc; @@ -306,9 +309,63 @@ setverdict(pass); } +/* 5.2.2.4 Release SM Context service operation */ function f_n11_delete_session() runs on SMF_Session_CT { - log("f_n11_delete_session(): TODO"); + var template (value) SmContextReleaseData sm_ctx_rel; + var octetstring sm_ctx_rel_enc; + var template (value) octetstring body_enc; + var charstring http2_boundary := "=-0EVVjxcWWFYNd1JXh1OQEg==" + var integer http2_idx; + var integer http2_stream_id := 3; + var template (value) HTTP2_Msg http2_tx; + var HTTP2_Msg http2_rx; + + sm_ctx_rel := ts_SmContextReleaseData(ueLocation := f_ts_UserLocation(), + n2SmInfo := TS29502_Nsmf_PDUSession_Templates.ts_RefToBinaryData("N2SmInfo"), + n2SmInfoType := ts_N2SmInfoType(PDU_RES_SETUP_RSP)); + sm_ctx_rel_enc := f_enc_SmContextReleaseData(valueof(sm_ctx_rel)); + + /* TODO: generate and encode ngap: */ + var octetstring ngap_enc := f_ngap_pdu_gen_PDUSessionResourceSetupResponseTransfer(); + + body_enc := f_http2_encode_body_multipart_json_ngap(sm_ctx_rel_enc, ngap_enc, http2_boundary); + http2_idx := f_http2_adapter_find_free_idx(); + http2_tx := ts_HTTP2_Msg(http2_idx, + http2_stream_id, + hb := { + pseudo_headers := ts_HTTP2_pseudo_headers_Req(method := "POST", + scheme := "http", + authority := Nsmf_uri_hostport, + path := ts_Nsmf_PDUSession_path_sm_context_release(g_pars.nsmf.smContextRef)), + headers := { + ts_HTTP2_Hdr_content_type_multipart(http2_boundary), + ts_HTTP2_Hdr_accept("application/json"), + ts_HTTP2_Hdr_user_agent("ttcn3-amf"), + ts_HTTP2_Hdr_accept_encoding("gzip") + } + }, + body := ts_HTTP2_Data_frame(http2_stream_id, + end_stream_flag := true, + data := body_enc)); + + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_send(http2_tx); + + /* SMF deletes PDU Session on UPF: */ + as_pfcp_sess_del_req(); + + /* SMF deletes policy in PCF: */ + as_npcf_smpolicycontrol_post_IndividualSMPOlicyTermination(); + + /* SMF deregisters on UDM: */ + as_nudm_sdm_delete_IndividualSubscription(); + as_nudm_uecm_delete_IndividualSmfRegistration(); + + /* Successful answer with no content: */ + as_http2_adapter_receive(http2_rx, tr_HTTP2_Msg_204_No_Content(), idx := http2_idx); + f_http2_adapter_close(idx := http2_idx); + setverdict(pass); } /************************************** @@ -410,30 +467,41 @@ const charstring Nudm_SDM_path_api_prefix := "/nudm-sdm/v2" /* 6.2.3.5 Resource: IndividualSmfRegistration */ -template (present) charstring tr_Nudm_UECM_path_individual_smf_registration(template (present) charstring imsi := pattern "\d+", - template (present) charstring smf_reg := pattern "\d+") := - pattern Nudm_UECM_path_api_prefix & "/imsi-" & imsi & "/registrations/smf-registrations/" & smf_reg; +template (present) charstring +tr_Nudm_UECM_path_individual_smf_registration(template (present) charstring imsi := pattern "\d+", + template (present) charstring smf_reg := pattern "\d+") +:= pattern Nudm_UECM_path_api_prefix & "/imsi-" & imsi & "/registrations/smf-registrations/" & smf_reg; -template (value) charstring ts_Nudm_UECM_path_individual_smf_registration(template (value) charstring imsi, - template (value) charstring smf_reg) := - Nudm_UECM_path_api_prefix & "/imsi-" & valueof(imsi) & "/registrations/smf-registrations/" & valueof(smf_reg); +template (value) charstring +ts_Nudm_UECM_path_individual_smf_registration(template (value) charstring imsi, + template (value) charstring smf_reg) +:= Nudm_UECM_path_api_prefix & "/imsi-" & valueof(imsi) & "/registrations/smf-registrations/" & valueof(smf_reg); -template (value) charstring ts_Nudm_UECM_uri_individual_smf_registration(template (value) charstring imsi, - template (value) charstring smf_reg) := - Nudm_uri_prefix & valueof(ts_Nudm_UECM_path_individual_smf_registration(imsi, smf_reg)); +template (value) charstring +ts_Nudm_UECM_uri_individual_smf_registration(template (value) charstring imsi, + template (value) charstring smf_reg) +:= Nudm_uri_prefix & valueof(ts_Nudm_UECM_path_individual_smf_registration(imsi, smf_reg)); +/* 6.1.3.3 Resource: SdmSubscriptions (Collection) */ +template (value) charstring +ts_Nudm_SDM_path_sdm_subscriptions(template (value) charstring imsi) +:= Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi) & "/sdm-subscriptions"; -template (value) charstring ts_Nudm_SDM_path_sdm_imsi(template (value) charstring imsi) := - Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi); +/* 6.1.3.4 Resource: Individual subscription (Document) */ +template (present) charstring +tr_Nudm_SDM_path_individual_subscription(template (present) charstring imsi := pattern "\d+", + template (present) charstring subscr_id := pattern "\d+") +:= pattern Nudm_SDM_path_api_prefix & "/imsi-" & imsi & "/sdm-subscriptions/" & subscr_id; -template (value) charstring ts_Nudm_SDM_path_sdm_imsi_sdm_subscriptions(template (value) charstring imsi) := - Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi) & "/sdm-subscriptions"; +template (value) charstring +ts_Nudm_SDM_path_individual_subscription(template (value) charstring imsi, + template (value) charstring subscr_id) +:= valueof(ts_Nudm_SDM_path_sdm_subscriptions(imsi)) & "/" & valueof(subscr_id); -template (value) charstring ts_Nudm_SDM_path_sdm_imsi_sdm_subscriptions_id(template (value) charstring imsi, template (value) charstring subscr_id) := - Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi) & "/sdm-subscriptions/" & valueof(subscr_id); - -template (value) charstring ts_Nudm_SDM_uri_sdm_imsi_sdm_subscriptions_id(template (value) charstring imsi, template (value) charstring subscr_id) := - Nudm_uri_prefix & Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi) & "/sdm-subscriptions/" & valueof(subscr_id); +template (value) charstring +ts_Nudm_SDM_uri_individual_subscription(template (value) charstring imsi, + template (value) charstring subscr_id) +:= Nudm_uri_prefix & valueof(ts_Nudm_SDM_path_individual_subscription(imsi, subscr_id)); /* 3GPP TS 29.503 6.2.3.5.2.1 */ function f_tr_Nudm_UECM_put_IndividualSmfRegistration() @@ -480,6 +548,44 @@ } } +/* 3GPP TS 29.503 6.2.3.5.2.2 DELETE */ +function f_tr_Nudm_UECM_delete_IndividualSmfRegistration() +runs on SMF_Session_CT 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 := "DELETE", + path := tr_Nudm_UECM_path_individual_smf_registration(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)); + hb := tr_HTTP2_header_block(pseudo_headers, headers); + http2_msg := tr_HTTP2_Msg(?, ?, + hb := hb, + body := omit); + return http2_msg; +} + +/* 3GPP TS 29.503 5.3.2.4.4 SMF deregistration */ +private altstep as_nudm_uecm_delete_IndividualSmfRegistration() +runs on SMF_Session_CT { + var HTTP2_Msg http2_rx; + [] HTTP2_CONN[HTTP2_CONN_SCP].receive(f_tr_Nudm_UECM_delete_IndividualSmfRegistration()) -> value http2_rx { + var template (value) HTTP2_Msg http2_tx; + + http2_tx := ts_HTTP2_Msg_204_No_Content(http2_rx.conn_id, + http2_rx.stream_id, + headers := { + ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), + ts_HTTP2_Hdr_location(ts_Nudm_UECM_uri_individual_smf_registration(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)) + }, + body := omit); + HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); + setverdict(pass); + } +} + /* 3GPP TS 29.503: * 5.2.2.2.5 Session Management Subscription Data Retrieval * 6.1.3.8 Resource: SessionManagementSubscriptionData (Document) */ @@ -552,7 +658,7 @@ var template HTTP2_header_list headers := *; pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "POST", - path := ts_Nudm_SDM_path_sdm_imsi_sdm_subscriptions(g_pars.imsi_str)); + path := ts_Nudm_SDM_path_sdm_subscriptions(g_pars.imsi_str)); hb := tr_HTTP2_header_block(pseudo_headers, headers); http2_msg := tr_HTTP2_Msg(?, ?, hb := hb, @@ -579,7 +685,8 @@ http2_rx.stream_id, headers := { ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), - ts_HTTP2_Hdr_location(ts_Nudm_SDM_uri_sdm_imsi_sdm_subscriptions_id(g_pars.imsi_str, int2str(1))) + ts_HTTP2_Hdr_location(ts_Nudm_SDM_uri_individual_subscription(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)) }, body := ts_HTTP2_Data_frame(http2_rx.stream_id, end_stream_flag := true, @@ -589,13 +696,68 @@ } } -/************************************* - * N8 NPcf (SBI): Emulated PCF - *************************************/ + +/* 3GPP TS 29.503: + * 6.1.3.3 Resource: SdmSubscriptions (Collection)*/ +function f_tr_Nudm_SDM_delete_IndividualSubscription() +runs on SMF_Session_CT 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 := "DELETE", + path := tr_Nudm_SDM_path_individual_subscription(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)); + hb := tr_HTTP2_header_block(pseudo_headers, headers); + http2_msg := tr_HTTP2_Msg(?, ?, + hb := hb, + body := omit); + return http2_msg; +} + +/* 3GPP TS 29.503 5.2.2.3.2 Subscription to notifications of data change */ +private altstep as_nudm_sdm_delete_IndividualSubscription() +runs on SMF_Session_CT { + var HTTP2_Msg http2_rx; + [] HTTP2_CONN[HTTP2_CONN_SCP].receive(f_tr_Nudm_SDM_delete_IndividualSubscription()) -> value http2_rx { + var template (value) HTTP2_Msg http2_tx; + + http2_tx := ts_HTTP2_Msg_204_No_Content(http2_rx.conn_id, + http2_rx.stream_id, + headers := { + ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), + ts_HTTP2_Hdr_location(ts_Nudm_SDM_uri_individual_subscription(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)) + }, + body := omit); + HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); + setverdict(pass); + } +} + +/********************************************** + * N8 NPcf (SBI): Emulated PCF, 3GPP TS 29.512 + **********************************************/ const charstring Npcf_uri_prefix := SCP_uri_prefix; const charstring Npcf_SMPolicyControl_path_api_prefix := "/npcf-smpolicycontrol/v1" -const charstring Npcf_SMPolicyControl_path__sm_policies := Npcf_SMPolicyControl_path_api_prefix & "/sm-policies"; + +/* 5.3.2 Resource: SM Policies */ +const charstring Npcf_SMPolicyControl_path_sm_policies := Npcf_SMPolicyControl_path_api_prefix & "/sm-policies"; + +/* 5.3.3 Resource: Individual SM Policy */ +template (present) charstring +tr_Npcf_SMPolicyControl_path_individual_sm_policy_delete(template (present) charstring sm_policy_id := pattern "?+") +:= pattern Npcf_SMPolicyControl_path_sm_policies & "/" & sm_policy_id & "/delete"; + +template (value) charstring +ts_Npcf_SMPolicyControl_path_individual_sm_policy(template (value) charstring sm_policy_id) +:= Npcf_SMPolicyControl_path_sm_policies & "/" & valueof(sm_policy_id); + +template (value) charstring +ts_Npcf_SMPolicyControl_uri_individual_sm_policy(template (value) charstring sm_policy_id) +:= Npcf_uri_prefix & valueof(ts_Npcf_SMPolicyControl_path_individual_sm_policy(sm_policy_id)); /* 3GPP TS 29.512: * 5.3.2 Resource: SM Policies */ @@ -607,7 +769,7 @@ var template HTTP2_header_list headers := *; pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "POST", - path := Npcf_SMPolicyControl_path__sm_policies); + path := Npcf_SMPolicyControl_path_sm_policies); hb := tr_HTTP2_header_block(pseudo_headers, headers); http2_msg := tr_HTTP2_Msg(?, ?, hb := hb, @@ -624,7 +786,6 @@ var template (value) SmPolicyDecision1 smpol_decision; var template (value) HTTP2_Msg http2_tx; var octetstring body_enc; - var integer sessRuleId := 1; f_dec_SmPolicyContextData1(http2_rx.body.data, smpol_ctx_data); // TODO: check returned integer. @@ -635,7 +796,7 @@ http2_rx.stream_id, headers := { ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), - ts_HTTP2_Hdr_location(Npcf_uri_prefix & Npcf_SMPolicyControl_path_api_prefix & "/sm-policies/imsi-" & g_pars.imsi_str & "-" & int2str(sessRuleId)) + ts_HTTP2_Hdr_location(ts_Npcf_SMPolicyControl_uri_individual_sm_policy(g_pars.npcf.sm_policy_id)) }, body := ts_HTTP2_Data_frame(http2_rx.stream_id, end_stream_flag := true, @@ -645,6 +806,44 @@ } } +/* 3GPP TS 29.503 5.3.3.4.2 Operation: delete */ +function f_tr_SMPolicyControl_post_IndividualSMPolicyTermination() +runs on SMF_Session_CT 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 := "POST", + path := tr_Npcf_SMPolicyControl_path_individual_sm_policy_delete(g_pars.npcf.sm_policy_id)); + hb := tr_HTTP2_header_block(pseudo_headers, headers); + http2_msg := tr_HTTP2_Msg(?, ?, + hb := hb, + body := tr_HTTP2_Data_frame(data := decmatch tr_SmPolicyDeleteData1)); + return http2_msg; +} + +/* 3GPP TS 29.503 4.2.5.2 SM Policy Association termination */ +private altstep as_npcf_smpolicycontrol_post_IndividualSMPOlicyTermination() +runs on SMF_Session_CT { + var HTTP2_Msg http2_rx; + [] HTTP2_CONN[HTTP2_CONN_SCP].receive(f_tr_SMPolicyControl_post_IndividualSMPolicyTermination()) -> value http2_rx { + var SmPolicyDeleteData1 del_data; + var template (value) HTTP2_Msg http2_tx; + + f_dec_SmPolicyDeleteData1(http2_rx.body.data, del_data); + + http2_tx := ts_HTTP2_Msg_204_No_Content(http2_rx.conn_id, + http2_rx.stream_id, + headers := { + ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), + ts_HTTP2_Hdr_location(ts_Npcf_SMPolicyControl_uri_individual_sm_policy(g_pars.npcf.sm_policy_id)) + }, + body := omit); + HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); + setverdict(pass); + } +} /************ * NGAP -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43692?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: Ib8be72624330cd944447a2d479360b064b81c28f Gerrit-Change-Number: 43692 Gerrit-PatchSet: 2 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
[XS] Change in osmo-ttcn3-hacks[master]: smf: Nudm_UECM ids are PDUSessionId
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43699?usp=email ) Change subject: smf: Nudm_UECM ids are PDUSessionId ...................................................................... smf: Nudm_UECM ids are PDUSessionId The Id used is unrelated to the Nudm_SDM ones. The PDU Session ID is used according to 3GPP TS 29.503 5.3.2.2.4. Change-Id: I39a96b55496e8beab187849cdcb72f3aabc25fd3 --- M smf/SMF_Session_CT_5G.ttcn 1 file changed, 4 insertions(+), 4 deletions(-) Approvals: pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index dc49e78..661b938 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -513,7 +513,7 @@ pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "PUT", path := tr_Nudm_UECM_path_individual_smf_registration(g_pars.imsi_str, - g_pars.nudm.smf_subscription_id)); + int2str(g_pars.namf.pdu_sess_id))); hb := tr_HTTP2_header_block(pseudo_headers, headers); http2_msg := tr_HTTP2_Msg(?, ?, hb := hb, @@ -538,7 +538,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), ts_HTTP2_Hdr_location(ts_Nudm_UECM_uri_individual_smf_registration(g_pars.imsi_str, - g_pars.nudm.smf_subscription_id)) + int2str(g_pars.namf.pdu_sess_id))) }, body := ts_HTTP2_Data_frame(http2_rx.stream_id, end_stream_flag := true, @@ -558,7 +558,7 @@ pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "DELETE", path := tr_Nudm_UECM_path_individual_smf_registration(g_pars.imsi_str, - g_pars.nudm.smf_subscription_id)); + int2str(g_pars.namf.pdu_sess_id))); hb := tr_HTTP2_header_block(pseudo_headers, headers); http2_msg := tr_HTTP2_Msg(?, ?, hb := hb, @@ -578,7 +578,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), ts_HTTP2_Hdr_location(ts_Nudm_UECM_uri_individual_smf_registration(g_pars.imsi_str, - g_pars.nudm.smf_subscription_id)) + int2str(g_pars.namf.pdu_sess_id))) }, body := omit); HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43699?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: I39a96b55496e8beab187849cdcb72f3aabc25fd3 Gerrit-Change-Number: 43699 Gerrit-PatchSet: 2 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
  • ← Newer
  • 1
  • ...
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.