libosmo-sigtran 2.0.0.50-b59d
Osmocom SIGTRAN library
sccp_scrc.c File Reference
#include <stdbool.h>
#include <osmocom/core/logging.h>
#include <osmocom/core/msgb.h>
#include <osmocom/sccp/sccp_types.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include <osmocom/sigtran/sccp_sap.h>
#include <osmocom/sigtran/sccp_helpers.h>
#include <osmocom/sigtran/protocol/sua.h>
#include <osmocom/sigtran/protocol/mtp.h>
#include "sccp_internal.h"
#include "ss7_as.h"
#include "ss7_instance.h"
#include "ss7_linkset.h"
#include "ss7_route.h"
#include "xua_internal.h"

Functions

static bool sua_is_connectionless (struct xua_msg *xua)
 
static bool sua_is_cr (struct xua_msg *xua)
 
static bool dpc_accessible (struct osmo_sccp_instance *inst, uint32_t pc)
 
static bool sccp_available (struct osmo_sccp_instance *inst, const struct osmo_sccp_addr *addr)
 
static int sua2sccp_tx_m3ua (struct osmo_sccp_instance *inst, struct xua_msg *sua)
 
static int gen_mtp_transfer_req_xua (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
static int translate (struct osmo_sccp_instance *inst, const struct osmo_sccp_addr *called, struct osmo_sccp_addr *translated)
 
static int scrc_local_out_common (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
static int scrc_node_12 (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
static int scrc_node_2 (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
static int scrc_node_7 (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
static int scrc_node_4 (struct osmo_sccp_instance *inst, struct xua_msg *xua, uint32_t return_cause)
 
static int scrc_translate_node_9 (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
static int scrc_node_6 (struct osmo_sccp_instance *inst, struct xua_msg *xua, const struct osmo_sccp_addr *called)
 
int sccp_scrc_rx_scoc_conn_msg (struct osmo_sccp_instance *inst, struct xua_msg *xua)
 
int sccp_scrc_rx_sclc_msg (struct osmo_sccp_instance *inst, struct xua_msg *xua)
 
static void ensure_opc_in_calling_ssn (struct osmo_sccp_instance *inst, struct xua_msg *xua)
 
int scrc_rx_mtp_xfer_ind_xua (struct osmo_sccp_instance *inst, struct xua_msg *xua)
 

Function Documentation

◆ dpc_accessible()

static bool dpc_accessible ( struct osmo_sccp_instance inst,
uint32_t  pc 
)
static

Referenced by scrc_node_2().

◆ ensure_opc_in_calling_ssn()

◆ gen_mtp_transfer_req_xua()

◆ sccp_available()

static bool sccp_available ( struct osmo_sccp_instance inst,
const struct osmo_sccp_addr addr 
)
static

Referenced by scrc_node_2().

◆ sccp_scrc_rx_sclc_msg()

◆ sccp_scrc_rx_scoc_conn_msg()

◆ scrc_local_out_common()

◆ scrc_node_12()

static int scrc_node_12 ( struct osmo_sccp_instance inst,
struct xua_msg xua,
const struct osmo_sccp_addr called 
)
static

◆ scrc_node_2()

static int scrc_node_2 ( struct osmo_sccp_instance inst,
struct xua_msg xua,
const struct osmo_sccp_addr called 
)
static

◆ scrc_node_4()

static int scrc_node_4 ( struct osmo_sccp_instance inst,
struct xua_msg xua,
uint32_t  return_cause 
)
static

◆ scrc_node_6()

◆ scrc_node_7()

static int scrc_node_7 ( struct osmo_sccp_instance inst,
struct xua_msg xua,
const struct osmo_sccp_addr called 
)
static

◆ scrc_rx_mtp_xfer_ind_xua()

◆ scrc_translate_node_9()

◆ sua2sccp_tx_m3ua()

◆ sua_is_connectionless()

static bool sua_is_connectionless ( struct xua_msg xua)
static

◆ sua_is_cr()

static bool sua_is_cr ( struct xua_msg xua)
static

◆ translate()

static int translate ( struct osmo_sccp_instance inst,
const struct osmo_sccp_addr called,
struct osmo_sccp_addr translated 
)
static

Referenced by scrc_translate_node_9().