libosmo-sigtran 2.1.0.148-c8e68
Osmocom SIGTRAN library
|
#include <string.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/prim.h>
#include <osmocom/sigtran/sccp_sap.h>
#include "ss7_instance.h"
#include "sccp_connection.h"
#include "sccp_scoc_fsm.h"
#include "sccp_internal.h"
#include "sccp_instance.h"
#include "sccp_user.h"
#include <osmocom/sigtran/sigtran_sap.h>
Functions | |
char * | osmo_scu_prim_name (const struct osmo_prim_hdr *oph) |
int | osmo_scu_prim_hdr_name_buf (char *buf, size_t buflen, const struct osmo_prim_hdr *oph) |
char * | osmo_scu_prim_hdr_name_c (void *ctx, const struct osmo_prim_hdr *oph) |
char * | osmo_xlm_prim_name (struct osmo_prim_hdr *oph) |
static uint32_t | scu_prim_conn_id (const struct osmo_scu_prim *prim) |
int | osmo_sccp_user_sap_down_nofree (struct osmo_sccp_user *scu, struct osmo_prim_hdr *oph) |
Main entrance function for primitives from SCCP User. More... | |
int | osmo_sccp_user_sap_down (struct osmo_sccp_user *scu, struct osmo_prim_hdr *oph) |
Main entrance function for primitives from SCCP User. More... | |
Variables | |
const struct value_string | osmo_scu_prim_type_names [] |
static char | prim_name_buf [128] |
const struct value_string | osmo_xlm_prim_names [] |
const struct value_string | osmo_sccp_routing_ind_names [] |
const struct value_string | osmo_sccp_gti_names [] |
const struct value_string | osmo_sccp_sp_status_names [] |
const struct value_string | osmo_sccp_rem_sccp_status_names [] |
const struct value_string | osmo_sccp_ssn_names [] |
static const struct osmo_prim_event_map | scu_scoc_event_map [] |
int osmo_sccp_user_sap_down | ( | struct osmo_sccp_user * | scu, |
struct osmo_prim_hdr * | oph | ||
) |
Main entrance function for primitives from SCCP User.
Implies a msgb_free(oph->msg), otherwise the same as osmo_sccp_user_sap().
[in] | scu | SCCP User sending us the primitive |
[in] | oph | Osmocom primitive sent by the user |
References osmo_scu_prim::oph, and osmo_sccp_user_sap_down_nofree().
Referenced by osmo_sccp_tx_conn_req(), osmo_sccp_tx_conn_resp_msg(), osmo_sccp_tx_data(), osmo_sccp_tx_disconn_data(), osmo_sccp_tx_unitdata(), and sccp_scmg_tx().
int osmo_sccp_user_sap_down_nofree | ( | struct osmo_sccp_user * | scu, |
struct osmo_prim_hdr * | oph | ||
) |
Main entrance function for primitives from SCCP User.
The caller is required to free oph->msg, otherwise the same as osmo_sccp_user_sap_down().
[in] | scu | SCCP User sending us the primitive |
[in] | oph | Osmocom primitive sent by the user |
References osmo_scu_connect_param::conn_id, osmo_scu_prim::connect, sccp_connection::fi, sccp_connection::inst, osmo_sccp_user::inst, LOGPSCU, osmo_scu_prim::oph, OSMO_SCU_PRIM_N_CONNECT, OSMO_SCU_PRIM_N_DATA, OSMO_SCU_PRIM_N_DISCONNECT, OSMO_SCU_PRIM_N_RESET, OSMO_SCU_PRIM_N_UNITDATA, osmo_scu_prim_name(), sccp_conn_alloc(), sccp_find_conn_by_id(), sccp_sclc_user_sap_down_nofree(), scu_prim_conn_id(), scu_scoc_event_map, and osmo_scu_prim::u.
Referenced by osmo_sccp_user_sap_down().
int osmo_scu_prim_hdr_name_buf | ( | char * | buf, |
size_t | buflen, | ||
const struct osmo_prim_hdr * | oph | ||
) |
References osmo_scu_prim_type_name().
Referenced by osmo_scu_prim_hdr_name_c(), and osmo_scu_prim_name().
char * osmo_scu_prim_hdr_name_c | ( | void * | ctx, |
const struct osmo_prim_hdr * | oph | ||
) |
References osmo_scu_prim_hdr_name_buf().
char * osmo_scu_prim_name | ( | const struct osmo_prim_hdr * | oph | ) |
References osmo_scu_prim_hdr_name_buf(), and prim_name_buf.
Referenced by osmo_sccp_user_sap_down_nofree(), sccp_sclc_user_sap_down_nofree(), sccp_user_prim_up(), scmg_prim_cb(), xua_opt_data_cache_keep(), and xua_opt_data_check_drop().
char * osmo_xlm_prim_name | ( | struct osmo_prim_hdr * | oph | ) |
References osmo_xlm_prim_names, and prim_name_buf.
Referenced by default_lm_prim_cb(), osmo_xlm_sap_down(), and xua_asp_send_xlm_prim().
|
static |
References osmo_scu_connect_param::conn_id, osmo_scu_data_param::conn_id, osmo_scu_disconn_param::conn_id, osmo_scu_reset_param::conn_id, osmo_scu_prim::connect, osmo_scu_prim::data, osmo_scu_prim::disconnect, osmo_scu_prim::oph, OSMO_SCU_PRIM_N_CONNECT, OSMO_SCU_PRIM_N_DATA, OSMO_SCU_PRIM_N_DISCONNECT, OSMO_SCU_PRIM_N_RESET, osmo_scu_prim::reset, and osmo_scu_prim::u.
Referenced by osmo_sccp_user_sap_down_nofree().
const struct value_string osmo_sccp_gti_names[] |
Referenced by osmo_sccp_gti_name().
const struct value_string osmo_sccp_rem_sccp_status_names[] |
Referenced by osmo_sccp_rem_sccp_status_name().
const struct value_string osmo_sccp_routing_ind_names[] |
Referenced by osmo_sccp_routing_ind_name().
const struct value_string osmo_sccp_sp_status_names[] |
Referenced by osmo_sccp_sp_status_name().
const struct value_string osmo_sccp_ssn_names[] |
Referenced by osmo_sccp_ssn_name().
const struct value_string osmo_scu_prim_type_names[] |
Referenced by osmo_scu_prim_type_name().
const struct value_string osmo_xlm_prim_names[] |
Referenced by osmo_xlm_prim_name().
|
static |
Referenced by osmo_scu_prim_name(), and osmo_xlm_prim_name().
|
static |
Referenced by osmo_sccp_user_sap_down_nofree().