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
[M] Change in osmo-ttcn3-hacks[master]: HTTP2_Adapter: Use HTTP2_Msg in user APIs
by pespin 21 Sep '26

21 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43675?usp=email ) Change subject: HTTP2_Adapter: Use HTTP2_Msg in user APIs ...................................................................... HTTP2_Adapter: Use HTTP2_Msg in user APIs This allows simplifying usual user logic where only wanted thing is to send a Header+optData (request) and receive back a Header+optData (Response). Change-Id: I79d74939d8280dfff5ee61c59072466916300017 --- M library/HTTP2_Adapter.ttcn M library/HTTP2_Msg.ttcn M smf/SMF_Session_CT_5G.ttcn 3 files changed, 103 insertions(+), 64 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/library/HTTP2_Adapter.ttcn b/library/HTTP2_Adapter.ttcn index 8616ea4..4d9a750 100644 --- a/library/HTTP2_Adapter.ttcn +++ b/library/HTTP2_Adapter.ttcn @@ -20,6 +20,8 @@ import from Socket_API_Definitions all; import from HTTP2_Templates all; +import from HTTP2_Functions all; +import from HTTP2_Msg all; import from Native_Functions all; import from Misc_Helpers all; @@ -120,10 +122,10 @@ ts_HTTP2_Setting_INITIAL_WINDOW_SIZE(4194304), ts_HTTP2_Setting_MAX_HEADER_LIST_SIZE(10485760) } - f_http2_adapter_send(ts_HTTP2_Frame_Settings(settings := settings), idx := idx); - as_http2_adapter_receive(rx_http_frame, tr_HTTP2_Frame_Settings(ack_flag := false), idx := idx); - as_http2_adapter_receive(rx_http_frame, tr_HTTP2_Frame_Settings(ack_flag := true), idx := idx); - f_http2_adapter_send(ts_HTTP2_Frame_Window_Update(0, 1073741824), idx := idx); + f_http2_adapter_send_frame(ts_HTTP2_Frame_Settings(settings := settings), idx := idx); + as_http2_adapter_receive_frame(rx_http_frame, tr_HTTP2_Frame_Settings(ack_flag := false), idx := idx); + as_http2_adapter_receive_frame(rx_http_frame, tr_HTTP2_Frame_Settings(ack_flag := true), idx := idx); + f_http2_adapter_send_frame(ts_HTTP2_Frame_Window_Update(0, 1073741824), idx := idx); } function f_http2_adapter_close(integer idx := 0) @@ -133,21 +135,78 @@ g_self_conn_id[idx] := -1; } -function f_http2_adapter_send(template (value) HTTP2_Frame http2_frame, - integer idx := 0) +private function f_http2_adapter_send_frame(template (value) HTTP2_Frame http2_frame, + integer idx := 0) runs on HTTP2_CT { HTTP2[idx].send(ts_HTTP2_Send(g_self_conn_id[idx], http2_frame)); } -altstep as_http2_adapter_receive(out HTTP2_Frame rx_http_frame, - template (present) HTTP2_Frame exp_http2_frame := ?, - integer idx := 0) +function f_http2_adapter_send(template (value) HTTP2_Msg http2_msg) +runs on HTTP2_CT +{ + var HTTP2_Msg msg := valueof(http2_msg); + var template (value) HTTP2_Frame http2_frame; + var octetstring hdr_enc; + var integer idx := msg.conn_id; + + /* Send Header: */ + f_HTTP2_Msg_append_hdr_content_length(msg); + hdr_enc := f_HTTP2_header_block_encode(msg.hb); + http2_frame := ts_HTTP2_Frame_Header(msg.stream_id, + end_stream_flag := not ispresent(msg.body), + end_header_flag := true, + header_block_fragment := hdr_enc); + f_http2_adapter_send_frame(http2_frame, idx := idx); + + /* Send body: */ + if (ispresent(msg.body)) { + http2_frame := ts_HTTP2_Frame_Data(msg.body.stream_id, + msg.body.end_stream_flag, + msg.body.data, + msg.body.padding); + f_http2_adapter_send_frame(http2_frame, idx := idx); + } +} + +private altstep as_http2_adapter_receive_frame(out HTTP2_Frame rx_http2_frame, + template (present) HTTP2_Frame exp_http2_frame := ?, + integer idx := 0) runs on HTTP2_CT { var HTTP2_Recv http2_rx; [] HTTP2[idx].receive(tr_HTTP2_Recv(g_self_conn_id[idx], exp_http2_frame, omit)) -> value http2_rx { - rx_http_frame := http2_rx.frame; + rx_http2_frame := http2_rx.frame; + } +} + +altstep as_http2_adapter_receive(out HTTP2_Msg http2_rx_msg, + template (present) HTTP2_Msg http2_exp_msg := ?, + integer idx := 0) +runs on HTTP2_CT +{ + var HTTP2_Frame rx_http2_frame; + [] as_http2_adapter_receive_frame(rx_http2_frame, + tr_HTTP2_Frame_Header(stream_id := http2_exp_msg.stream_id, + header_block_fragment := ?), + idx := idx) { + var template (omit) HTTP2_Data_frame body := omit; + var HTTP2_header_block hb; + + hb := f_HTTP2_header_block_decode(rx_http2_frame.header_frame.header_block_fragment); + if (not rx_http2_frame.header_frame.end_stream_flag) { /* Expect body */ + var HTTP2_Frame body_frame; + as_http2_adapter_receive_frame(body_frame, HTTP2_Frame:{ data_frame := http2_exp_msg.body }); + body := body_frame.data_frame; + } else if (not istemplatekind(http2_exp_msg.body, "*") and + not istemplatekind(http2_exp_msg.body, "omit")) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str(idx, ": Expecting body but header came with end_stream_flag = true!")); + } + http2_rx_msg := valueof(ts_HTTP2_Msg(idx, + rx_http2_frame.header_frame.stream_id, + hb, + body)); } } diff --git a/library/HTTP2_Msg.ttcn b/library/HTTP2_Msg.ttcn index 3ff6ab8..b5b5bc6 100644 --- a/library/HTTP2_Msg.ttcn +++ b/library/HTTP2_Msg.ttcn @@ -1,4 +1,4 @@ -/* HTTP2 Emulation in TTCN-3 +/* HTTP2_Msg * * (C) 2026 by sysmocom - s.f.m.c. GmbH <info(a)sysmocom.de> * @@ -7,7 +7,9 @@ * * SPDX-License-Identifier: GPL-2.0-or-later * - * This module implements a HTTP/HTTPs 2.0 server, + * This module specifies type HTTP2_Msg and functionality around it. + * A HTTP2_Msg is a wrapper around HTTP2_Types.ttcn which allows easier + * transceive of header + body HTTP2 frames. */ module HTTP2_Msg { diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index e8db57d..b74625c 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -91,21 +91,17 @@ * 3GPP TS 29.502 6.1.3.2 */ function f_n11_create_session() runs on SMF_Session_CT { - var octetstring hdr_enc; - var template (value) HTTP2_pseudo_headers pseudo_hdr; - var template (value) HTTP2_header_list hdr_li; - var template (value) HTTP2_header_block tx_hb; - var template (present) HTTP2_header_block exp_rx_hb; - var HTTP2_header_block rx_hb; var template (value) NG_NAS_UL_Message_Type nas_ul_msg; var ProcedureTransactionIdentifier pti := f_next_pti(); var template (value) octetstring body; - var HTTP2_Frame rx_http_frame; var template (value) TS29502_Nsmf_PDUSession.PlmnId plmn_id := TS29502_Nsmf_PDUSession_Templates.ts_PlmnId("001", "001"); var template (value) TS29502_Nsmf_PDUSession.PlmnIdNid plmn_id_nid := TS29502_Nsmf_PDUSession_Templates.ts_PlmnIdNid(plmn_id.mcc, plmn_id.mnc); var integer pdu_sess_id := 1; var integer http2_idx; var integer http2_stream_id := 3; + var template (value) HTTP2_Msg http2_tx; + var HTTP2_Msg http2_rx; + var template (present) HTTP2_Msg http2_exp_rx; var template (value) SmContextCreateData sm_contexts; var octetstring sm_contexts_enc; @@ -135,30 +131,26 @@ var octetstring nas_enc := enc_NG_NAS_UL_Message_Type(valueof(nas_ul_msg)); body := f_http2_encode_body_multipart_json_5gnas(sm_contexts_enc, nas_enc, boundary); - - pseudo_hdr := ts_HTTP2_pseudo_headers_Req(method := "POST", - scheme := "http", - authority := Nsmf_uri_hostport, - path := Nsmf_PDUSession_path_sm_contexts); - hdr_li := { - ts_HTTP2_Hdr_content_type("multipart/related; boundary=\"" & boundary & "\""), - ts_HTTP2_Hdr_accept("application/json,application/vnd.3gpp.ngap,application/problem+json"), - ts_HTTP2_Hdr_user_agent("ttcn3-amf"), - ts_HTTP2_Hdr_content_length(int2str(lengthof(body))), - ts_HTTP2_Hdr_accept_encoding("gzip") - }; - tx_hb := ts_HTTP2_header_block(pseudo_hdr, hdr_li); - hdr_enc := f_HTTP2_header_block_encode(valueof(tx_hb)); - http2_idx := f_http2_adapter_find_free_idx(); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); - f_http2_adapter_send(ts_HTTP2_Frame_Header(http2_stream_id, - end_stream_flag := false, - end_header_flag := true, - header_block_fragment := hdr_enc - ), - idx := http2_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 := Nsmf_PDUSession_path_sm_contexts), + headers := { + ts_HTTP2_Hdr_content_type("multipart/related; boundary=\"" & boundary & "\""), + ts_HTTP2_Hdr_accept("application/json,application/vnd.3gpp.ngap,application/problem+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)); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); /////////// START MUTUAL EXCLUSION ZONE //////////// /* This code block cannot be executed by more than one component at a time because @@ -173,10 +165,7 @@ * expected to have SEID set to 0, as per 3GPP TS 29.244, section 7.2.2.4.2. */ f_PFCPEM_subscribe_seid(c_SEID0); - f_http2_adapter_send(ts_HTTP2_Frame_Data(3, - end_stream_flag := true, - data := body), - idx := http2_idx); + f_http2_adapter_send(http2_tx); /* Expect UDM to receive GET sm-data: */ as_nudm_sdm_get_sm_data(); @@ -184,25 +173,14 @@ as_nudm_sdm_post_sdm_subscriptions(); /* Expect to receive "201 Created body={}" answer to our Nsmf sm-contexts request: */ - as_http2_adapter_receive(rx_http_frame, - tr_HTTP2_Frame_Header(stream_id := http2_stream_id, - end_stream_flag := false, - end_header_flag := true, - header_block_fragment := ?), - idx := http2_idx); - rx_hb := f_HTTP2_header_block_decode(rx_http_frame.header_frame.header_block_fragment); - exp_rx_hb := tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(201), - headers := {*, tr_HTTP2_Hdr_location(tr_Nsmf_PDUSession_uri_sm_contexts), *}); - if (not match(rx_hb, exp_rx_hb)) { - Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("Rx unexpected HTTP2 response hdr: ", rx_hb, " vs exp ", exp_rx_hb)); - - } - as_http2_adapter_receive(rx_http_frame, - tr_HTTP2_Frame_Data(stream_id := http2_stream_id, - end_stream_flag := true, - data := char2oct("{}")), - idx := http2_idx); + http2_exp_rx := tr_HTTP2_Msg(http2_idx, + http2_stream_id, + tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(201), + headers := {*, tr_HTTP2_Hdr_location(tr_Nsmf_PDUSession_uri_sm_contexts), *}), + tr_HTTP2_Data_frame(stream_id := http2_stream_id, + end_stream_flag := true, + data := char2oct("{}"))); + as_http2_adapter_receive(http2_rx, http2_exp_rx, idx := http2_idx); f_http2_adapter_close(idx := http2_idx); /* Expect PCF to receive POST sm-policies: */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43675?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: I79d74939d8280dfff5ee61c59072466916300017 Gerrit-Change-Number: 43675 Gerrit-PatchSet: 4 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
[S] Change in osmo-ttcn3-hacks[master]: smf: Add several SBI helpers
by pespin 21 Sep '26

21 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43680?usp=email ) Change subject: smf: Add several SBI helpers ...................................................................... smf: Add several SBI helpers Those types will need to be generated for multiple messages; put them in helper functions so they can be generated easily wherever needed. Change-Id: Ieff9db356a97d041cd62af41d7810d4bf0fc630a --- M smf/SMF_Session_CT_5G.ttcn 1 file changed, 27 insertions(+), 7 deletions(-) Approvals: fixeria: Looks good to me, but someone else must approve osmith: Looks good to me, approved Jenkins Builder: Verified diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index 6809785..7b4e3bc 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -71,6 +71,30 @@ f_http2_adapter_init(); } +function f_ts_PlmnId() +runs on SMF_Session_CT return TS29502_Nsmf_PDUSession.PlmnId { + return valueof(TS29502_Nsmf_PDUSession_Templates.ts_PlmnId("001", "001")); +} + +function f_ts_PlmnIdNid() +runs on SMF_Session_CT return TS29502_Nsmf_PDUSession.PlmnIdNid { + return valueof(TS29502_Nsmf_PDUSession_Templates.ts_PlmnIdNid("001", "001")); +} + +function f_ts_UserLocation() +runs on SMF_Session_CT return TS29502_Nsmf_PDUSession.UserLocation { + var template (value) TS29502_Nsmf_PDUSession.PlmnId plmn_id := f_ts_PlmnId(); + return valueof(ts_UserLocation(nrLocation := ts_NrLocation(tai := ts_Tai(plmn_id, "000001"), + ncgi := ts_Ncgi(plmn_id, "000000000")))); +} + +function f_ts_Guami() +runs on SMF_Session_CT return TS29502_Nsmf_PDUSession.Guami { + var template (value) TS29502_Nsmf_PDUSession.PlmnIdNid plmn_id_nid := f_ts_PlmnIdNid(); + return valueof(ts_Guami(plmnId := plmn_id_nid, + amfId := "020040")); +} + function f_http2_encode_body_multipart_json_5gnas(octetstring json_encoded, octetstring nas_ecnoded, charstring boundary := "=-0EVVjxcWWFYNd1JXh1OQEg==") return octetstring @@ -94,8 +118,6 @@ var template (value) NG_NAS_UL_Message_Type nas_ul_msg; var ProcedureTransactionIdentifier pti := f_next_pti(); var template (value) octetstring body; - var template (value) TS29502_Nsmf_PDUSession.PlmnId plmn_id := TS29502_Nsmf_PDUSession_Templates.ts_PlmnId("001", "001"); - var template (value) TS29502_Nsmf_PDUSession.PlmnIdNid plmn_id_nid := TS29502_Nsmf_PDUSession_Templates.ts_PlmnIdNid(plmn_id.mcc, plmn_id.mnc); var integer pdu_sess_id := 1; var integer http2_idx; var integer http2_stream_id := 3; @@ -111,14 +133,12 @@ dnn := "internet", sNssai := TS29502_Nsmf_PDUSession_Templates.ts_Snssai(1), servingNfId := "foobar", - guami := ts_Guami(plmnId := plmn_id_nid, - amfId := "020040"), - servingNetwork := plmn_id_nid, + guami := f_ts_Guami(), + servingNetwork := f_ts_PlmnIdNid(), n1SmMsg := TS29502_Nsmf_PDUSession_Templates.ts_RefToBinaryData("5gnas-sm"), anType := ThreeGPP_ACCESS, ratType := ts_RatType(NR), - ueLocation := ts_UserLocation(nrLocation := ts_NrLocation(tai := ts_Tai(plmn_id, "000001"), - ncgi := ts_Ncgi(plmn_id, "000000000"))), + ueLocation := f_ts_UserLocation(), smContextStatusUri := ts_Namf_Callback_uri_imsi_sm_context_status_id(g_pars.imsi_str, int2str(pdu_sess_id))); sm_contexts_enc := f_enc_SmContextCreateData(valueof(sm_contexts)); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43680?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: Ieff9db356a97d041cd62af41d7810d4bf0fc630a Gerrit-Change-Number: 43680 Gerrit-PatchSet: 3 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]: HTTP2_Adapter: Use HTTP2_Msg in user APIs
by pespin 21 Sep '26

21 Sep '26
Attention is currently required from: fixeria. pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43675?usp=email ) Change subject: HTTP2_Adapter: Use HTTP2_Msg in user APIs ...................................................................... Patch Set 3: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43675?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: I79d74939d8280dfff5ee61c59072466916300017 Gerrit-Change-Number: 43675 Gerrit-PatchSet: 3 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> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Mon, 21 Sep 2026 11:05:41 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: smf: Expect 201 Created response to our Nsmf sm-contexts creation req
by pespin 21 Sep '26

21 Sep '26
Attention is currently required from: fixeria. pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43672?usp=email ) Change subject: smf: Expect 201 Created response to our Nsmf sm-contexts creation req ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43672?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: I2cae1b956f9fa6421543e542823e77cf236f0bb4 Gerrit-Change-Number: 43672 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> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Mon, 21 Sep 2026 11:05:31 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in libosmocore[master]: Add new VTY node for libosmo-octoi
by jolly 21 Sep '26

21 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/43685?usp=email ) Change subject: Add new VTY node for libosmo-octoi ...................................................................... Add new VTY node for libosmo-octoi Change-Id: I497ee1503fed1681fae217bfe4d7be9b1580448f --- M TODO-RELEASE M include/osmocom/vty/command.h 2 files changed, 7 insertions(+), 4 deletions(-) Approvals: Jenkins Builder: Verified osmith: Looks good to me, approved diff --git a/TODO-RELEASE b/TODO-RELEASE index 94320ff..62281d3 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -8,3 +8,4 @@ # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line vty added VTY node for libsosmo-sigtran L_CS7_QOS_CLASS_NODE +vty added VTY nodes for libosmo-octoi L_OCTOI_SRV_NODE, L_OCTOI_ACCOUNT_NODE, L_OCTOI_CLNT_NODE, L_OCTOI_CLNT_ACCOUNT_NODE diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 7e2d9c2..4531996 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -105,14 +105,16 @@ L_CS7_QOS_CLASS_NODE, /*!< SS7 QoS Class */ + L_OCTOI_SRV_NODE, /*!< OCTOI server node */ + L_OCTOI_ACCOUNT_NODE, /*!< OCTOI server account node */ + L_OCTOI_CLNT_NODE, /*!< OCTOI client node */ + L_OCTOI_CLNT_ACCOUNT_NODE, + /*!< OCTOI client account node */ + /* * When adding new nodes to the libosmocore project, these nodes can be * used to avoid ABI changes for unrelated projects. */ - RESERVED2_NODE, /*!< Reserved for later extensions */ - RESERVED3_NODE, /*!< Reserved for later extensions */ - RESERVED4_NODE, /*!< Reserved for later extensions */ - RESERVED5_NODE, /*!< Reserved for later extensions */ RESERVED6_NODE, /*!< Reserved for later extensions */ RESERVED7_NODE, /*!< Reserved for later extensions */ RESERVED8_NODE, /*!< Reserved for later extensions */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/43685?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I497ee1503fed1681fae217bfe4d7be9b1580448f Gerrit-Change-Number: 43685 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-e1d[master]: Use VTY node defintion from libosmocore
by osmith 21 Sep '26

21 Sep '26
Attention is currently required from: jolly, pespin. osmith has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/osmo-e1d/+/43686?usp=email ) Change subject: Use VTY node defintion from libosmocore ...................................................................... Patch Set 1: Code-Review+1 (1 comment) Patchset: PS1: This is needed to fix osmo-e1d, which is failing to build because of https://gitea.osmocom.org/retronetworking/osmo-e1d/src/commit/ed5484c1c8aed… since https://gerrit.osmocom.org/c/libosmocore/+/43669 was merged. -- To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/43686?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-e1d Gerrit-Branch: master Gerrit-Change-Id: I1e176362eba4966ad6c249831d6a82d0ed4ea6d5 Gerrit-Change-Number: 43686 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Mon, 21 Sep 2026 10:34:32 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in libosmocore[master]: Add new VTY node for libosmo-octoi
by osmith 21 Sep '26

21 Sep '26
Attention is currently required from: jolly. osmith has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/libosmocore/+/43685?usp=email ) Change subject: Add new VTY node for libosmo-octoi ...................................................................... Patch Set 1: Code-Review+2 (1 comment) Patchset: PS1: This is needed to fix osmo-e1d, which is failing to build because of https://gitea.osmocom.org/retronetworking/osmo-e1d/src/commit/ed5484c1c8aed… since https://gerrit.osmocom.org/c/libosmocore/+/43669 was merged. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/43685?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I497ee1503fed1681fae217bfe4d7be9b1580448f Gerrit-Change-Number: 43685 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-CC: Jenkins Builder Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Mon, 21 Sep 2026 10:33:50 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-e1d[master]: Use VTY node defintion from libosmocore
by jolly 21 Sep '26

21 Sep '26
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/43686?usp=email ) Change subject: Use VTY node defintion from libosmocore ...................................................................... Use VTY node defintion from libosmocore Depends-on: I497ee1503fed1681fae217bfe4d7be9b1580448f (libosmocore) Change-Id: I1e176362eba4966ad6c249831d6a82d0ed4ea6d5 --- M src/octoi/octoi.c M src/octoi/octoi.h M src/octoi/octoi_clnt_vty.c M src/octoi/octoi_srv_vty.c 4 files changed, 42 insertions(+), 51 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/86/43686/1 diff --git a/src/octoi/octoi.c b/src/octoi/octoi.c index 8d8d3da..9a80f11 100644 --- a/src/octoi/octoi.c +++ b/src/octoi/octoi.c @@ -46,16 +46,16 @@ struct octoi_client *clnt; switch (vty->node) { - case OCTOI_ACCOUNT_NODE: - vty->node = OCTOI_SRV_NODE; + case L_OCTOI_ACCOUNT_NODE: + vty->node = L_OCTOI_SRV_NODE; vty->index = g_octoi->server; break; - case OCTOI_CLNT_ACCOUNT_NODE: + case L_OCTOI_CLNT_ACCOUNT_NODE: acc = vty->index; - vty->node = OCTOI_CLNT_NODE; + vty->node = L_OCTOI_CLNT_NODE; vty->index = client4account(acc); break; - case OCTOI_CLNT_NODE: + case L_OCTOI_CLNT_NODE: clnt = vty->index; /* check if we have a (new?) line for this client */ if (g_octoi->ops->client_updated) diff --git a/src/octoi/octoi.h b/src/octoi/octoi.h index 589c208..4505e3c 100644 --- a/src/octoi/octoi.h +++ b/src/octoi/octoi.h @@ -8,15 +8,6 @@ #include <osmocom/octoi/octoi.h> -/* FIXME: migrate to libosmocore/vty/command.h */ -enum octoi_vty_node { - OCTOI_SRV_NODE = RESERVED1_NODE, - OCTOI_ACCOUNT_NODE, - OCTOI_CLNT_NODE, - OCTOI_CLNT_ACCOUNT_NODE, -}; - - extern struct osmo_fsm octoi_server_fsm; extern struct osmo_fsm octoi_client_fsm; diff --git a/src/octoi/octoi_clnt_vty.c b/src/octoi/octoi_clnt_vty.c index 3ea3a9a..7323c71 100644 --- a/src/octoi/octoi_clnt_vty.c +++ b/src/octoi/octoi_clnt_vty.c @@ -76,13 +76,13 @@ ***********************************************************************/ static struct cmd_node clnt_node = { - (enum node_type) OCTOI_CLNT_NODE, + (enum node_type) L_OCTOI_CLNT_NODE, "%s(config-octoi-client)# ", 1, }; static struct cmd_node clnt_account_node = { - (enum node_type) OCTOI_CLNT_ACCOUNT_NODE, + (enum node_type) L_OCTOI_CLNT_ACCOUNT_NODE, "%s(config-octoi-client-account)# ", 1, }; @@ -104,7 +104,7 @@ llist_add_tail(&clnt->list, &g_octoi->clients); } - vty->node = OCTOI_CLNT_NODE; + vty->node = L_OCTOI_CLNT_NODE; vty->index = clnt; return CMD_SUCCESS; @@ -227,7 +227,7 @@ } else osmo_talloc_replace_string(ac, &ac->user_id, user_id); - vty->node = OCTOI_CLNT_ACCOUNT_NODE; + vty->node = L_OCTOI_CLNT_ACCOUNT_NODE; vty->index = ac; return CMD_SUCCESS; @@ -277,23 +277,23 @@ install_element_ve(&show_clnt_cmd); install_node(&clnt_account_node, NULL); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_ice1_serno_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_ice1_line_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_mode_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_batching_factor_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_force_all_ts_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_no_force_all_ts_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_prefill_frame_count_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_buffer_reset_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_ice1_serno_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_ice1_line_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_mode_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_batching_factor_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_force_all_ts_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_no_force_all_ts_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_prefill_frame_count_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_buffer_reset_cmd); #ifdef HAVE_DAHDI_TRUNKDEV - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_trunkdev_name_cmd); - install_element(OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_trunkdev_line_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_trunkdev_name_cmd); + install_element(L_OCTOI_CLNT_ACCOUNT_NODE, &cfg_account_trunkdev_line_cmd); #endif /* HAVE_DAHDI_TRUNKDEV */ install_node(&clnt_node, config_write_octoi_clnt); install_element(CONFIG_NODE, &cfg_client_cmd); - install_element(OCTOI_CLNT_NODE, &cfg_clnt_local_cmd); - install_element(OCTOI_CLNT_NODE, &cfg_clnt_dscp_cmd); - install_element(OCTOI_CLNT_NODE, &cfg_clnt_prio_cmd); - install_element(OCTOI_CLNT_NODE, &cfg_clnt_account_cmd); + install_element(L_OCTOI_CLNT_NODE, &cfg_clnt_local_cmd); + install_element(L_OCTOI_CLNT_NODE, &cfg_clnt_dscp_cmd); + install_element(L_OCTOI_CLNT_NODE, &cfg_clnt_prio_cmd); + install_element(L_OCTOI_CLNT_NODE, &cfg_clnt_account_cmd); } diff --git a/src/octoi/octoi_srv_vty.c b/src/octoi/octoi_srv_vty.c index 05a99a4..32fe3c6 100644 --- a/src/octoi/octoi_srv_vty.c +++ b/src/octoi/octoi_srv_vty.c @@ -123,13 +123,13 @@ ***********************************************************************/ static struct cmd_node srv_node = { - (enum node_type) OCTOI_SRV_NODE, + (enum node_type) L_OCTOI_SRV_NODE, "%s(config-octoi-server)# ", 1, }; static struct cmd_node account_node = { - (enum node_type) OCTOI_ACCOUNT_NODE, + (enum node_type) L_OCTOI_ACCOUNT_NODE, "%s(config-octoi-server-account)# ", 1, }; @@ -144,7 +144,7 @@ srv = g_octoi->server = octoi_server_alloc(g_octoi); OSMO_ASSERT(srv); - vty->node = OCTOI_SRV_NODE; + vty->node = L_OCTOI_SRV_NODE; vty->index = srv; return CMD_SUCCESS; @@ -264,7 +264,7 @@ if (!ac) return CMD_WARNING; - vty->node = OCTOI_ACCOUNT_NODE; + vty->node = L_OCTOI_ACCOUNT_NODE; vty->index = ac; return CMD_SUCCESS; @@ -566,26 +566,26 @@ install_element_ve(&show_server_cmd); install_node(&account_node, NULL); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_mode_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_ice1_serno_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_ice1_line_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_redir_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_batching_factor_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_force_all_ts_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_no_force_all_ts_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_prefill_frame_count_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_buffer_reset_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_mode_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_ice1_serno_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_ice1_line_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_redir_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_batching_factor_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_force_all_ts_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_no_force_all_ts_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_prefill_frame_count_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_buffer_reset_cmd); #ifdef HAVE_DAHDI_TRUNKDEV - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_trunkdev_name_cmd); - install_element(OCTOI_ACCOUNT_NODE, &cfg_account_trunkdev_line_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_trunkdev_name_cmd); + install_element(L_OCTOI_ACCOUNT_NODE, &cfg_account_trunkdev_line_cmd); #endif /* HAVE_DAHDI_TRUNKDEV */ install_node(&srv_node, config_write_octoi_srv); install_element(CONFIG_NODE, &cfg_server_cmd); //install_element(CONFIG_NODE, &cfg_no_server_cmd); - install_element(OCTOI_SRV_NODE, &cfg_srv_local_cmd); - install_element(OCTOI_SRV_NODE, &cfg_srv_dscp_cmd); - install_element(OCTOI_SRV_NODE, &cfg_srv_prio_cmd); - install_element(OCTOI_SRV_NODE, &cfg_srv_account_cmd); + install_element(L_OCTOI_SRV_NODE, &cfg_srv_local_cmd); + install_element(L_OCTOI_SRV_NODE, &cfg_srv_dscp_cmd); + install_element(L_OCTOI_SRV_NODE, &cfg_srv_prio_cmd); + install_element(L_OCTOI_SRV_NODE, &cfg_srv_account_cmd); //install_element(CONFIG_SRV_NODE, &cfg_srv_no_account_cmd); } -- To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/43686?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-e1d Gerrit-Branch: master Gerrit-Change-Id: I1e176362eba4966ad6c249831d6a82d0ed4ea6d5 Gerrit-Change-Number: 43686 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu>
1 0
0 0
[S] Change in libosmocore[master]: Add new VTY node for libosmo-octoi
by jolly 21 Sep '26

21 Sep '26
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/43685?usp=email ) Change subject: Add new VTY node for libosmo-octoi ...................................................................... Add new VTY node for libosmo-octoi Change-Id: I497ee1503fed1681fae217bfe4d7be9b1580448f --- M TODO-RELEASE M include/osmocom/vty/command.h 2 files changed, 7 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/85/43685/1 diff --git a/TODO-RELEASE b/TODO-RELEASE index 94320ff..62281d3 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -8,3 +8,4 @@ # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line vty added VTY node for libsosmo-sigtran L_CS7_QOS_CLASS_NODE +vty added VTY nodes for libosmo-octoi L_OCTOI_SRV_NODE, L_OCTOI_ACCOUNT_NODE, L_OCTOI_CLNT_NODE, L_OCTOI_CLNT_ACCOUNT_NODE diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 7e2d9c2..4531996 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -105,14 +105,16 @@ L_CS7_QOS_CLASS_NODE, /*!< SS7 QoS Class */ + L_OCTOI_SRV_NODE, /*!< OCTOI server node */ + L_OCTOI_ACCOUNT_NODE, /*!< OCTOI server account node */ + L_OCTOI_CLNT_NODE, /*!< OCTOI client node */ + L_OCTOI_CLNT_ACCOUNT_NODE, + /*!< OCTOI client account node */ + /* * When adding new nodes to the libosmocore project, these nodes can be * used to avoid ABI changes for unrelated projects. */ - RESERVED2_NODE, /*!< Reserved for later extensions */ - RESERVED3_NODE, /*!< Reserved for later extensions */ - RESERVED4_NODE, /*!< Reserved for later extensions */ - RESERVED5_NODE, /*!< Reserved for later extensions */ RESERVED6_NODE, /*!< Reserved for later extensions */ RESERVED7_NODE, /*!< Reserved for later extensions */ RESERVED8_NODE, /*!< Reserved for later extensions */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/43685?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I497ee1503fed1681fae217bfe4d7be9b1580448f Gerrit-Change-Number: 43685 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: smf: Add several SBI helpers
by osmith 21 Sep '26

21 Sep '26
Attention is currently required from: pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43680?usp=email ) Change subject: smf: Add several SBI helpers ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43680?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: Ieff9db356a97d041cd62af41d7810d4bf0fc630a Gerrit-Change-Number: 43680 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-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Mon, 21 Sep 2026 10:00:19 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.