libosmo-sigtran  1.8.0
Osmocom SIGTRAN library
ss7_internal.h File Reference
#include <stdbool.h>
#include <osmocom/sigtran/osmo_ss7.h>

Go to the source code of this file.

Enumerations

enum  ss7_as_ctr { SS7_AS_CTR_RX_MSU_TOTAL , SS7_AS_CTR_TX_MSU_TOTAL }
 
enum  ss7_asp_ctr { SS7_ASP_CTR_PKT_RX_TOTAL , SS7_ASP_CTR_PKT_RX_UNKNOWN , SS7_ASP_CTR_PKT_TX_TOTAL }
 

Functions

bool ss7_ipv6_sctp_supported (const char *host, bool bind)
 
struct osmo_ss7_aspss7_asp_alloc (struct osmo_ss7_instance *inst, const char *name, uint16_t remote_port, uint16_t local_port, enum osmo_ss7_asp_protocol proto)
 
bool ss7_asp_set_default_peer_hosts (struct osmo_ss7_asp *asp)
 
struct osmo_ss7_aspss7_asp_find_by_socket_addr (int fd)
 Find an ASP definition matching the local+remote IP/PORT of given fd. More...
 
int ss7_asp_proto_to_ip_proto (enum osmo_ss7_asp_protocol proto)
 
int ss7_asp_ipa_srv_conn_cb (struct osmo_stream_srv *conn)
 
int ss7_asp_xua_srv_conn_cb (struct osmo_stream_srv *conn)
 
int ss7_asp_xua_srv_conn_closed_cb (struct osmo_stream_srv *srv)
 
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)
 
bool ss7_xua_server_set_default_local_hosts (struct osmo_xua_server *oxs)
 

Variables

bool ss7_initialized
 

Enumeration Type Documentation

◆ ss7_as_ctr

enum ss7_as_ctr
Enumerator
SS7_AS_CTR_RX_MSU_TOTAL 
SS7_AS_CTR_TX_MSU_TOTAL 

◆ ss7_asp_ctr

Enumerator
SS7_ASP_CTR_PKT_RX_TOTAL 
SS7_ASP_CTR_PKT_RX_UNKNOWN 
SS7_ASP_CTR_PKT_TX_TOTAL 

Function Documentation

◆ ss7_asp_alloc()

◆ ss7_asp_apply_peer_primary_address()

◆ ss7_asp_apply_primary_address()

◆ ss7_asp_find_by_socket_addr()

struct osmo_ss7_asp* ss7_asp_find_by_socket_addr ( int  fd)

Find an ASP definition matching the local+remote IP/PORT of given fd.

Parameters
[in]fdsocket descriptor of given socket
Returns
SS7 ASP in case a matching one is found; NULL otherwise

References osmo_ss7_instance::asp_list, osmo_ss7_asp::cfg, chop_v4_mapped_on_v6_prefix(), get_in_port(), osmo_ss7_asp_peer::host, osmo_ss7_asp_peer::host_cnt, host_is_ip_anyaddr(), osmo_ss7_asp::inst, osmo_ss7_asp::list, osmo_ss7_asp::local, osmo_ss7_instances, osmo_ss7_asp_peer::port, osmo_ss7_asp::remote, and ss7_initialized.

Referenced by xua_accept_cb().

◆ ss7_asp_ipa_srv_conn_cb()

int ss7_asp_ipa_srv_conn_cb ( struct osmo_stream_srv *  conn)

◆ ss7_asp_proto_to_ip_proto()

int ss7_asp_proto_to_ip_proto ( enum osmo_ss7_asp_protocol  proto)

◆ ss7_asp_set_default_peer_hosts()

◆ ss7_asp_xua_srv_conn_cb()

◆ ss7_asp_xua_srv_conn_closed_cb()

◆ ss7_ipv6_sctp_supported()

bool ss7_ipv6_sctp_supported ( const char *  host,
bool  bind 
)

◆ ss7_xua_server_set_default_local_hosts()

Variable Documentation

◆ ss7_initialized