MCPcopy Create free account

hub / github.com/UnifyAir/unifyair-core / functions

Functions275 in github.com/UnifyAir/unifyair-core

↓ 40 callersMethodget
Retrieves the value from the `TokenEntry`. Panics if the state is not `Ready` (should not happen if used correctly).
utils/client/src/token_store.rs:121
↓ 17 callersMethodinto
(self)
lightning-nf/omnipath/app/src/config/mod.rs:186
↓ 9 callersMethodget_config
Retrieves short-lived access to the configuration. Avoid storing the returned reference.
lightning-nf/omnipath/app/src/context/app_context.rs:137
↓ 9 callersMethodto_pdu
(self)
lightning-nf/omnipath/app/src/ngap/engine/interfaces.rs:71
↓ 7 callersMethodinner
(&self)
lightning-nf/omnipath/app/src/config/mod.rs:231
↓ 6 callersFunctionconvert
(value: T)
lightning-nf/omnipath/app/src/utils/convert/mod.rs:20
↓ 6 callersMethodset
Asynchronously sets a token entry in the store, transitioning it to `Ready` or `Failed` based on the future's result. It early returns with error if a
utils/client/src/token_store.rs:180
↓ 5 callersMethodbuild
( nas_context: &NasContext, ue_context: &UeContext )
lightning-nf/omnipath/app/src/nas/builders/authentication_request.rs:9
↓ 5 callersFunctionstore_reconstructed_payload
( protocol, src_ip, dst_ip, src_port, dst_port, req_headers=None, path=None, p
tests/integration/sniffer/capturer.py:314
↓ 4 callersFunctionformat_payload_for_log
(payload)
tests/integration/sniffer/capturer.py:307
↓ 4 callersFunctionprepare_request
( url: Url, path: &str, method: Method, header: Option<&H>, query: Option<&Q>, body: Option<&B>, encodi
utils/client/src/lib.rs:125
↓ 4 callersFunctiontest_interconversion_snssai
( sst: u8, sd_bytes: Option<[u8; 3]>, sd_hex: Option<&str>, )
lightning-nf/omnipath/app/src/utils/convert/snssai.rs:62
↓ 3 callersFunctionanalyze_packet
Analyze packet and create packet flow information
tests/integration/src/tester.rs:201
↓ 3 callersFunctionbuild_failure
(cause: Cause)
lightning-nf/omnipath/app/src/ngap/core/ng_setup.rs:143
↓ 3 callersFunctionconvert_mcc_mnc_to_plmn_id
( mcc: &SbiMcc, mnc: &SbiMnc, )
lightning-nf/omnipath/app/src/utils/convert/mcc_mnc_plmnid.rs:65
↓ 3 callersFunctionencode_and_write_ngap_pdu
Encodes and writes an NGAP PDU to the specified TNLA connection. # Arguments `tnla` - Reference to the TNLA connection `pdu` - The NGAP PDU to encode
lightning-nf/omnipath/app/src/ngap/engine/controller.rs:336
↓ 3 callersFunctionfind_in_pairs
Find the value in a list of (key, value) pairs by matching the first element. Args: pairs (list
tests/integration/sniffer/capturer.py:389
↓ 3 callersFunctionformat_and_log_payload
Format and log captured payload.
tests/integration/sniffer/capturer.py:177
↓ 3 callersFunctionget_nf_subcommand
(nf_name: String)
lightning-cli/src/app.rs:5
↓ 3 callersFunctionnew_semantic_error_cause
()
lightning-nf/omnipath/app/src/ngap/core/utils.rs:35
↓ 3 callersMethodparse_http2_frames_from_buffer
Attempts to parse HTTP/2 frames from a connection's buffer (client_buffer or server_buffer). Consumes successfully parsed data from t
tests/integration/sniffer/h2_decoder/decoder.py:168
↓ 3 callersFunctionprint_packet_flow
Print packet flow with arrow notation
tests/integration/src/tester.rs:232
↓ 3 callersFunctiontest_interconversion_sbi_tac_to_ngap_tac
(sbi_tac: &str, ngap_tac: [u8; 3])
lightning-nf/omnipath/app/src/utils/convert/tac.rs:46
↓ 3 callersFunctiontest_mcc_mnc_interconversion
( mcc: &str, mnc: &str, plmn_id: [u8; 3], )
lightning-nf/omnipath/app/src/utils/convert/mcc_mnc_plmnid.rs:146
↓ 3 callersFunctionto_headers
(value: &T)
utils/client/src/header_map_serializer.rs:30
↓ 3 callersFunctiontransform_nonempty
( value: &NonEmpty<T>, f: impl Fn(&T) -> U, )
lightning-nf/omnipath/app/src/utils/convert/mod.rs:29
↓ 2 callersMethod_collect_and_remove_completed_streams
Helper to collect all completed streams, remove them from the connection, and return their data as a list of dicts. Keeps track of en
tests/integration/sniffer/h2_decoder/decoder.py:123
↓ 2 callersMethodadd_headers
Adds headers to the appropriate side of the stream.
tests/integration/sniffer/h2_decoder/stream.py:22
↓ 2 callersFunctionconvert_ngap_snssai_to_sbi_snssai
(ngap: &NgapSnssai)
lightning-nf/omnipath/app/src/utils/convert/snssai.rs:39
↓ 2 callersFunctionconvert_ngap_tac_to_sbi_tac
(ngap_tac: &NgapTac)
lightning-nf/omnipath/app/src/utils/convert/tac.rs:32
↓ 2 callersFunctionconvert_plmn_id_to_mcc_mnc
Converts a PLMN (Public Land Mobile Network) Identity back to MCC (Mobile Country Code) and MNC (Mobile Network Code) according to 3GPP decoding rules
lightning-nf/omnipath/app/src/utils/convert/mcc_mnc_plmnid.rs:103
↓ 2 callersFunctionconvert_sbi_snssai_to_ngap_snssai
(sbi: &SbiSnssai)
lightning-nf/omnipath/app/src/utils/convert/snssai.rs:20
↓ 2 callersFunctionconvert_sbi_tac_to_ngap_tac
(sbi_tac: &SbiTac)
lightning-nf/omnipath/app/src/utils/convert/tac.rs:22
↓ 2 callersMethoddecode_headers
Decode HPACK compressed headers using the correct decoder.
tests/integration/sniffer/h2_decoder/connection.py:28
↓ 2 callersFunctiondecode_ngap_pdu
Attempts to decode an NGAP PDU payload and returns either the successfully decoded PDU or an error indication PDU that should be sent back to the send
lightning-nf/omnipath/app/src/ngap/engine/utils.rs:38
↓ 2 callersMethodget_nf_id
(&self)
lightning-nf/omnipath/app/src/context/app_context.rs:167
↓ 2 callersFunctionget_nf_name_by_ip
Maps IP addresses to their corresponding network function names
tests/integration/src/tester.rs:84
↓ 2 callersMethodid
(&self)
lightning-nf/omnipath/app/src/context/ue_context.rs:58
↓ 2 callersMethodinto_inner
(self)
lightning-nf/omnipath/app/src/config/mod.rs:235
↓ 2 callersFunctionis_known_nf_ip
Check if an IP address is a known network function
tests/integration/src/tester.rs:179
↓ 2 callersFunctionprocess_file_lines
(lines)
tests/integration/sniffer/capturer.py:695
↓ 2 callersMethodprocess_tcp_packet
Processes a single TCP packet, identifies its direction within an HTTP/2 connection, adds its payload to the appropriate buffer, and
tests/integration/sniffer/h2_decoder/decoder.py:69
↓ 2 callersFunctionprocess_tcp_packet_http1
(packet, src_ip, dst_ip, src_port, dst_port, payload)
tests/integration/sniffer/capturer.py:441
↓ 2 callersFunctionprocess_tcp_packet_http2
(packet, _src_ip, _dst_ip, _src_port, _dst_port, _payload)
tests/integration/sniffer/capturer.py:381
↓ 2 callersMethodread_data
Reads data from the SCTP stream asynchronously. # Returns - `Ok(Some(Bytes))` - Successfully read data from the stream - `Ok(None)` - Stream has been
lightning-nf/omnipath/app/src/ngap/network/tnla_assoc.rs:76
↓ 2 callersFunctionresolve_ip_or_hostname
Helper function to resolve a string to IpAddr If the string is a valid IP address, it parses it directly Otherwise, it performs a DNS lookup to resolv
lightning-nf/omnipath/app/src/config/mod.rs:243
↓ 2 callersFunctionserialize_body
( body: &B, encoding_type: ContentType, )
utils/client/src/lib.rs:109
↓ 2 callersMethodwrite_data
( &self, data: Bytes, send_options: Option<SendOptions>, )
lightning-nf/omnipath/app/src/ngap/network/tnla_assoc.rs:90
↓ 1 callersMethod_create_hyperframe_object
Helper to create the correct hyperframe object based on type.
tests/integration/sniffer/h2_decoder/decoder.py:229
↓ 1 callersMethod_handle_connection_frame
Handles HTTP/2 frames with Stream ID 0 (connection-level frames).
tests/integration/sniffer/h2_decoder/decoder.py:268
↓ 1 callersMethod_stream_to_dict
Helper to convert a completed stream to a dict with request and response data.
tests/integration/sniffer/h2_decoder/decoder.py:139
↓ 1 callersMethodadd_context
Adds a new context element to the manager. This method creates a new `ContextQueue` for the provided context element and adds it to the manager, keye
lightning-nf/omnipath/app/src/ngap/manager/context_manager.rs:79
↓ 1 callersMethodadd_data
Adds data to the appropriate side of the stream.
tests/integration/sniffer/h2_decoder/stream.py:39
↓ 1 callersMethodadd_tnla_association
Adds a new TNLA association to the network. This function takes an `SctpStream`, creates a new `TnlaAssociation`, and adds it to the appropriate data
lightning-nf/omnipath/app/src/ngap/network/network.rs:50
↓ 1 callersFunctionanalyze_tcp_packet
Analyze TCP packet for HTTP and other protocols.
tests/integration/sniffer/capturer.py:268
↓ 1 callersFunctionanalyze_udp_packet
Analyze UDP packet for PFCP and other protocols.
tests/integration/sniffer/capturer.py:239
↓ 1 callersMethodauthenticaion_request
( &self, source_instance_id: NfInstanceId, source_nf_type: NfType, target_nf_type: NfType, target_se
utils/client/src/nrf_client.rs:322
↓ 1 callersFunctionbench_read_with_runtime
Benchmarks only the read operations after pre-filling the store.
utils/client/benches/token_store_bench.rs:297
↓ 1 callersFunctionbench_read_write_with_runtime
Spawns multiple tasks onto runtime. In each task it writes to the store, and then reads it. It only benchmarks the read operation.
utils/client/benches/token_store_bench.rs:232
↓ 1 callersFunctionbench_write_with_runtime
Benchmarks only the write operations.
utils/client/benches/token_store_bench.rs:362
↓ 1 callersFunctionbuild_criticality_diagnostics
Builds an error indication PDU with criticality diagnostics from a decoding error. # Arguments `request` - The raw NGAP PDU bytes to decode `error` -
lightning-nf/omnipath/app/src/ngap/engine/utils.rs:58
↓ 1 callersMethodbuild_nf_profile
(&self)
lightning-nf/omnipath/app/src/builder/sbi/nrf.rs:11
↓ 1 callersFunctionbuild_tshark_command
Build the tshark command with the correct capture filter and options.
tests/integration/sniffer/capturer.py:756
↓ 1 callersFunctioncleanup_docker_resources
()
tests/integration/src/main.rs:77
↓ 1 callersFunctioncleanup_processed_files
Clean up old entries from processed_files set.
tests/integration/sniffer/capturer.py:680
↓ 1 callersMethodclose_ran_connection
TODO: Graceful RAN Connection Teardown When closing a RAN (gNB) connection, we must ensure that all associated UE (User Equipment) contexts are proper
lightning-nf/omnipath/app/src/ngap/engine/controller.rs:312
↓ 1 callersFunctioncodec_to_bytes
Attempts to encode an NGAP PDU payload and returns the encoded bytes. # Arguments `data` - The NGAP PDU to encode # Returns `Ok(Vec<u8>)` - Successf
lightning-nf/omnipath/app/src/ngap/engine/utils.rs:21
↓ 1 callersMethodcommit_config
Updates the configuration and commits the changes atomically. This method takes a closure that modifies the Configuration, applies the changes, and t
lightning-nf/omnipath/app/src/context/app_context.rs:151
↓ 1 callersMethodcontains_context
( &self, id: &T::ID, )
lightning-nf/omnipath/app/src/ngap/manager/context_manager.rs:162
↓ 1 callersFunctioncreate_nrf_client
(url: Url)
lightning-nf/omnipath/app/src/lib.rs:90
↓ 1 callersFunctioncreate_subscriber
Creates a subscriber using the provided token and subscriber data. Args: token (str): JWT token for authentication. subscribe
tests/integration/user-init/create-user.py:69
↓ 1 callersFunctioncreate_subscribers_from_yaml
Loads subscribers from a YAML file and creates them via the API. Args: token (str): JWT token for authentication. yaml_path (
tests/integration/user-init/create-user.py:95
↓ 1 callersMethodderegister_nf_instance
(&self)
utils/client/src/nrf_client.rs:273
↓ 1 callersMethodenqueue_and_get_result
Enqueues a closure to be executed with exclusive access to the context, and sends the result of the closure through a oneshot channel. # Arguments `
lightning-nf/omnipath/app/src/ngap/manager/context_queue.rs:129
↓ 1 callersFunctionfilter_packets_by_ips
Filter packets by specific source and destination IPs
tests/integration/src/tester.rs:310
↓ 1 callersMethodfind_next_frame
Attempts to find the start of the next potential HTTP/2 frame header after an error or incomplete data. This is a heuristic for recov
tests/integration/sniffer/h2_decoder/decoder.py:354
↓ 1 callersMethodformat
(self, record)
tests/integration/sniffer/capturer.py:143
↓ 1 callersFunctionget_clap_app
( name: &'static str, about: &'static str, author: &'static str, version: &'static str, )
lightning-cli/src/app.rs:17
↓ 1 callersFunctionget_global_app_context
()
lightning-nf/omnipath/app/src/context/app_context.rs:191
↓ 1 callersMethodget_ip_uri
(&self)
lightning-nf/omnipath/app/src/config/mod.rs:206
↓ 1 callersMethodget_log_config
(&self)
lightning-nf/omnipath/app/src/config/mod.rs:197
↓ 1 callersFunctionget_mongo_collection
()
tests/integration/sniffer/capturer.py:103
↓ 1 callersMethodget_nf_id
(&self)
utils/client/src/nrf_client.rs:103
↓ 1 callersFunctionget_protocol_name
Get protocol name from protocol number
tests/integration/src/tester.rs:189
↓ 1 callersMethodget_runtime_config
(&self)
lightning-nf/omnipath/app/src/config/mod.rs:200
↓ 1 callersMethodget_sbi_config
Retrieves short-lived access to the Sbi configuration. Avoid storing the returned reference.
lightning-nf/omnipath/app/src/context/app_context.rs:143
↓ 1 callersMethodget_search_params
( &self, requester_nf_type: NfType, )
utils/client/src/nf_clients/mod.rs:62
↓ 1 callersMethodget_tnla_association
( &self, id: usize, )
lightning-nf/omnipath/app/src/ngap/network/network.rs:103
↓ 1 callersFunctionget_token
Authenticates with the user-init API and returns a JWT token. Args: username (str): The username to authenticate with. passw
tests/integration/user-init/create-user.py:27
↓ 1 callersMethodgraceful_shutdown
TODO: Implement graceful shutdown for the network
lightning-nf/omnipath/app/src/ngap/engine/controller.rs:319
↓ 1 callersMethodhandle
( &self, nas_context: &mut NasContext, ue_context: &mut UeContext, )
lightning-nf/omnipath/app/src/nas/handlers/registration_request.rs:56
↓ 1 callersMethodhandle_frame
Handles a stream-specific HTTP/2 frame, adding its data to the appropriate stream. Triggers logging when a server response is complet
tests/integration/sniffer/h2_decoder/decoder.py:309
↓ 1 callersMethodhandle_nas
( &mut self, nas_pdu: Vec<u8>, )
lightning-nf/omnipath/app/src/nas/ue_actions.rs:4
↓ 1 callersMethodhandle_request
( &self, state: &mut GnbContext, request: NgSetupRequest, )
lightning-nf/omnipath/app/src/ngap/core/ng_setup.rs:32
↓ 1 callersFunctioninit_mongo_collection
()
tests/integration/sniffer/capturer.py:89
↓ 1 callersFunctioninitial_registration_handler
(nas_registration_request: &nas_message::NasRegistrationRequest, nas_context:&mut NasContext, ue_context: &mut
lightning-nf/omnipath/app/src/nas/handlers/registration_request.rs:13
↓ 1 callersFunctioninsert_packet_analysis
Insert a packet analysis entry into MongoDB, with error handling.
tests/integration/sniffer/capturer.py:110
↓ 1 callersFunctioninstall_tracing
()
lightning-cli/src/nf_type.rs:175
↓ 1 callersMethodinto_inner
(self)
utils/client/src/header_map_serializer.rs:51
↓ 1 callersMethodinto_inner
Extracts the inner context value, consuming the queue. This should only be used when you are certain there are no pending operations.
lightning-nf/omnipath/app/src/ngap/manager/context_queue.rs:53
next →1–100 of 275, ranked by callers