libosmo-sigtran 2.2.1
Osmocom SIGTRAN library
Loading...
Searching...
No Matches
ss7_asp.h File Reference
#include "config.h"
#include <stdint.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/fsm.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/tdef.h>
#include <osmocom/netif/stream.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include "ss7_asp_peer.h"
#include "ss7_internal.h"

Go to the source code of this file.

Data Structures

struct  osmo_ss7_asp

Macros

#define SS7_ASP_XUA_DEFAULT_T_ACK_SEC   2
#define SS7_ASP_XUA_DEFAULT_T_BEAT_SEC   30
#define LOGPASP(asp, subsys, level, fmt, args ...)

Enumerations

enum  ss7_asp_xua_timer { SS7_ASP_XUA_T_ACK = 1 , SS7_ASP_XUA_T_BEAT , SS7_ASP_XUA_TIMERS_LEN }
enum  ss7_asp_ctr { SS7_ASP_CTR_PKT_RX_TOTAL , SS7_ASP_CTR_PKT_RX_UNKNOWN , SS7_ASP_CTR_PKT_RX_NI_MISMATCH , SS7_ASP_CTR_PKT_TX_TOTAL }

Functions

struct osmo_ss7_aspss7_asp_alloc (struct osmo_ss7_instance *inst, const char *name, uint16_t remote_port, uint16_t local_port, int trans_proto, enum osmo_ss7_asp_protocol proto)
bool ss7_asp_set_default_peer_hosts (struct osmo_ss7_asp *asp)
bool ss7_asp_is_started (const struct osmo_ss7_asp *asp)
int ss7_asp_get_fd (const struct osmo_ss7_asp *asp)
 Get the fd of a given ASP.
int ss7_asp_disconnect_stream (struct osmo_ss7_asp *asp)
int ss7_asp_apply_tcp_pars (const struct osmo_ss7_asp *asp)
int ss7_asp_apply_peer_primary_address (const struct osmo_ss7_asp *asp)
int ss7_asp_apply_primary_address (const struct osmo_ss7_asp *asp)
int ss7_asp_apply_new_local_address (const struct osmo_ss7_asp *asp, unsigned int loc_idx)
int ss7_asp_apply_drop_local_address (const struct osmo_ss7_asp *asp, unsigned int loc_idx)
void ss7_asp_restart_after_reconfigure (struct osmo_ss7_asp *asp)
void osmo_ss7_asp_remove_default_lm (struct osmo_ss7_asp *asp)
unsigned int ss7_asp_get_all_rctx (const struct osmo_ss7_asp *asp, uint32_t *rctx, unsigned int rctx_size, const struct osmo_ss7_as *excl_as)
unsigned int ss7_asp_get_all_rctx_be (const struct osmo_ss7_asp *asp, uint32_t *rctx, unsigned int rctx_size, const struct osmo_ss7_as *excl_as)
int ss7_asp_determine_traf_mode (const struct osmo_ss7_asp *asp)

Variables

const struct value_string ss7_asp_xua_timer_names []
const struct osmo_tdef ss7_asp_xua_timer_defaults [SS7_ASP_XUA_TIMERS_LEN]

Macro Definition Documentation

◆ LOGPASP

#define LOGPASP ( asp,
subsys,
level,
fmt,
args ... )
Value:
_LOGSS7((asp)->inst, subsys, level, "ASP(%s) " fmt, (asp)->cfg.name, ## args)
#define _LOGSS7(inst, subsys, level, fmt, args ...)
Definition ss7_instance.h:108

Referenced by _ipa_asp_pick_unused_sls(), as_notify_all_asp(), DEFUN_ATTR(), DEFUN_ATTR(), handle_rkey_dereg(), handle_rkey_dereg_resp(), handle_rkey_reg(), handle_rkey_reg_resp(), ipa_rx_msg_ccm(), ipa_rx_msg_osmo_ext_tcap_routing(), ipa_rx_msg_up(), log_sctp_notification(), m3ua_rx_mgmt_err(), m3ua_rx_mgmt_ntfy(), m3ua_rx_msg(), m3ua_rx_rkm(), m3ua_rx_rkm_reg_req(), m3ua_rx_snm(), m3ua_rx_snm_asp(), m3ua_rx_xfer(), osmo_ss7_asp_destroy(), osmo_ss7_asp_restart(), osmo_ss7_asp_send(), osmo_xlm_sap_down(), patch_sccp_with_pc(), ss7_asp_apply_drop_local_address(), ss7_asp_apply_new_local_address(), ss7_asp_apply_peer_primary_address(), ss7_asp_apply_primary_address(), ss7_asp_apply_tcp_keepalive(), ss7_asp_apply_tcp_user_timeout(), ss7_asp_rx_unknown(), ss7_asp_start_client(), ss7_asp_xua_srv_conn_rx_cb(), sua_rx_mgmt_err(), sua_rx_mgmt_ntfy(), sua_rx_msg(), sua_rx_snm(), sua_rx_snm_asp(), tcap_trans_track_entries_free_all(), tcap_trans_track_entries_free_by_asp(), tcap_trans_track_entry_create(), tcap_trans_track_garbage_collect(), tx_daud_pc(), tx_notify(), xua_accept_cb(), xua_asp_tx_snm_daud_address_book(), xua_cli_close_and_reconnect(), xua_cli_connect_cb(), xua_cli_disconnect_cb(), xua_cli_read_cb(), xua_find_as_for_asp(), xua_snm_rx_daud(), xua_snm_rx_dava(), xua_snm_rx_duna(), xua_snm_rx_dupu(), and xua_snm_rx_scon().

◆ SS7_ASP_XUA_DEFAULT_T_ACK_SEC

#define SS7_ASP_XUA_DEFAULT_T_ACK_SEC   2

◆ SS7_ASP_XUA_DEFAULT_T_BEAT_SEC

#define SS7_ASP_XUA_DEFAULT_T_BEAT_SEC   30

Enumeration Type Documentation

◆ ss7_asp_ctr

Enumerator
SS7_ASP_CTR_PKT_RX_TOTAL 
SS7_ASP_CTR_PKT_RX_UNKNOWN 
SS7_ASP_CTR_PKT_RX_NI_MISMATCH 
SS7_ASP_CTR_PKT_TX_TOTAL 

◆ ss7_asp_xua_timer

Enumerator
SS7_ASP_XUA_T_ACK 
SS7_ASP_XUA_T_BEAT 
SS7_ASP_XUA_TIMERS_LEN 

Function Documentation

◆ osmo_ss7_asp_remove_default_lm()

void osmo_ss7_asp_remove_default_lm ( struct osmo_ss7_asp * asp)

References osmo_ss7_asp::lm_priv, and NULL.

Referenced by osmo_ss7_asp_restart().

◆ ss7_asp_alloc()

◆ ss7_asp_apply_drop_local_address()

int ss7_asp_apply_drop_local_address ( const struct osmo_ss7_asp * asp,
unsigned int loc_idx )

◆ ss7_asp_apply_new_local_address()

int ss7_asp_apply_new_local_address ( const struct osmo_ss7_asp * asp,
unsigned int loc_idx )

◆ ss7_asp_apply_peer_primary_address()

◆ ss7_asp_apply_primary_address()

◆ ss7_asp_apply_tcp_pars()

int ss7_asp_apply_tcp_pars ( const struct osmo_ss7_asp * asp)

◆ ss7_asp_determine_traf_mode()

◆ ss7_asp_disconnect_stream()

◆ ss7_asp_get_all_rctx()

unsigned int ss7_asp_get_all_rctx ( const struct osmo_ss7_asp * asp,
uint32_t * rctx,
unsigned int rctx_size,
const struct osmo_ss7_as * excl_as )

◆ ss7_asp_get_all_rctx_be()

unsigned int ss7_asp_get_all_rctx_be ( const struct osmo_ss7_asp * asp,
uint32_t * rctx,
unsigned int rctx_size,
const struct osmo_ss7_as * excl_as )

◆ ss7_asp_get_fd()

int ss7_asp_get_fd ( const struct osmo_ss7_asp * asp)

Get the fd of a given ASP.

Parameters
[in]aspThe ASP for which the fd is requested
Returns
The fd of the ASP if acailable, negative otherwise

References osmo_ss7_asp::cfg, osmo_ss7_asp::client, osmo_ss7_asp::is_server, and osmo_ss7_asp::server.

Referenced by show_one_asp(), show_one_asp_assoc_status_tcp(), and show_one_asp_remaddr_tcp().

◆ ss7_asp_is_started()

bool ss7_asp_is_started ( const struct osmo_ss7_asp * asp)

◆ ss7_asp_restart_after_reconfigure()

void ss7_asp_restart_after_reconfigure ( struct osmo_ss7_asp * asp)

◆ ss7_asp_set_default_peer_hosts()

Variable Documentation

◆ ss7_asp_xua_timer_defaults

const struct osmo_tdef ss7_asp_xua_timer_defaults[SS7_ASP_XUA_TIMERS_LEN]
extern

◆ ss7_asp_xua_timer_names

const struct value_string ss7_asp_xua_timer_names[]
extern