libosmo-sigtran 2.1.0.211-db96
Osmocom SIGTRAN library
ss7_instance.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/tdef.h>
#include <osmocom/core/timer.h>
#include <osmocom/core/timer_compat.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/sigtran/protocol/mtp.h>

Go to the source code of this file.

Data Structures

struct  osmo_ss7_pc_fmt
 
struct  osmo_ss7_instance
 
struct  t8_inaccessible_sp_entry
 

Macros

#define SS7_INST_XUA_DEFAULT_T8_MSEC   1000
 
#define _LOGSS7(inst, subsys, level, fmt, args ...)    LOGP(subsys, level, "%u: " fmt, inst ? (inst)->cfg.id : 0, ## args)
 
#define LOGSS7(inst, level, fmt, args ...)    _LOGSS7(inst, DLSS7, level, fmt, ## args)
 

Enumerations

enum  ss7_instance_xua_timer { SS7_INST_XUA_T8 = 1 , SS7_INST_XUA_TIMERS_LEN }
 
enum  ss7_instance_ctr { SS7_INST_CTR_PKT_RX_TOTAL , SS7_INST_CTR_PKT_RX_UNKNOWN , SS7_INST_CTR_PKT_RX_NI_MISMATCH , SS7_INST_CTR_PKT_TX_TOTAL }
 

Functions

struct osmo_ss7_instancess7_instance_alloc (void *ctx, uint32_t id)
 
uint32_t ss7_find_free_l_rk_id (struct osmo_ss7_instance *inst)
 
struct osmo_ss7_routess7_instance_lookup_route (struct osmo_ss7_instance *inst, const struct osmo_ss7_route_label *rtlabel)
 Find a SS7 route for given destination point code in given SS7. More...
 
bool ss7_instance_t8_inaccessible_sp_running (const struct osmo_ss7_instance *inst, uint32_t dpc)
 
void ss7_instance_t8_inaccessible_sp_start (struct osmo_ss7_instance *inst, uint32_t dpc)
 

Variables

const struct value_string ss7_instance_xua_timer_names []
 
const struct osmo_tdef ss7_instance_xua_timer_defaults [SS7_INST_XUA_TIMERS_LEN]
 

Macro Definition Documentation

◆ _LOGSS7

#define _LOGSS7 (   inst,
  subsys,
  level,
  fmt,
  args ... 
)     LOGP(subsys, level, "%u: " fmt, inst ? (inst)->cfg.id : 0, ## args)

◆ LOGSS7

#define LOGSS7 (   inst,
  level,
  fmt,
  args ... 
)     _LOGSS7(inst, DLSS7, level, fmt, ## args)

◆ SS7_INST_XUA_DEFAULT_T8_MSEC

#define SS7_INST_XUA_DEFAULT_T8_MSEC   1000

Enumeration Type Documentation

◆ ss7_instance_ctr

Enumerator
SS7_INST_CTR_PKT_RX_TOTAL 
SS7_INST_CTR_PKT_RX_UNKNOWN 
SS7_INST_CTR_PKT_RX_NI_MISMATCH 
SS7_INST_CTR_PKT_TX_TOTAL 

◆ ss7_instance_xua_timer

Enumerator
SS7_INST_XUA_T8 
SS7_INST_XUA_TIMERS_LEN 

Function Documentation

◆ ss7_find_free_l_rk_id()

uint32_t ss7_find_free_l_rk_id ( struct osmo_ss7_instance inst)

◆ ss7_instance_alloc()

◆ ss7_instance_lookup_route()

struct osmo_ss7_route * ss7_instance_lookup_route ( struct osmo_ss7_instance inst,
const struct osmo_ss7_route_label rtlabel 
)

◆ ss7_instance_t8_inaccessible_sp_running()

◆ ss7_instance_t8_inaccessible_sp_start()

Variable Documentation

◆ ss7_instance_xua_timer_defaults

const struct osmo_tdef ss7_instance_xua_timer_defaults[SS7_INST_XUA_TIMERS_LEN]
extern

◆ ss7_instance_xua_timer_names

const struct value_string ss7_instance_xua_timer_names[]
extern