libosmo-sigtran 2.0.0.50-b59d
Osmocom SIGTRAN library
ss7_asp.h File Reference
#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 LOGPASP(asp, subsys, level, fmt, args ...)    _LOGSS7((asp)->inst, subsys, level, "asp-%s: " fmt, (asp)->cfg.name, ## args)
 

Enumerations

enum  ss7_asp_ctr { SS7_ASP_CTR_PKT_RX_TOTAL , SS7_ASP_CTR_PKT_RX_UNKNOWN , 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. More...
 
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)
 

Macro Definition Documentation

◆ LOGPASP

#define LOGPASP (   asp,
  subsys,
  level,
  fmt,
  args ... 
)     _LOGSS7((asp)->inst, subsys, level, "asp-%s: " fmt, (asp)->cfg.name, ## args)

Enumeration Type Documentation

◆ 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_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_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_set_default_peer_hosts()