libosmo-sigtran  1.9.0.1-797d
Osmocom SIGTRAN library
sccp_sap.c File Reference
#include <string.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/prim.h>
#include <osmocom/sigtran/sccp_sap.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)
 

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 []
 

Function Documentation

◆ osmo_scu_prim_hdr_name_buf()

int osmo_scu_prim_hdr_name_buf ( char *  buf,
size_t  buflen,
const struct osmo_prim_hdr *  oph 
)

◆ osmo_scu_prim_hdr_name_c()

char* osmo_scu_prim_hdr_name_c ( void *  ctx,
const struct osmo_prim_hdr *  oph 
)

◆ osmo_scu_prim_name()

◆ osmo_xlm_prim_name()

char* osmo_xlm_prim_name ( struct osmo_prim_hdr *  oph)

Variable Documentation

◆ osmo_sccp_gti_names

const struct value_string osmo_sccp_gti_names[]
Initial value:
= {
{ OSMO_SCCP_GTI_NO_GT, "NO_GT" },
{ OSMO_SCCP_GTI_NAI_ONLY, "NAI_ONLY" },
{ OSMO_SCCP_GTI_TT_ONLY, "TT_ONLY" },
{ OSMO_SCCP_GTI_TT_NPL_ENC, "TT_NPL_ENC" },
{ OSMO_SCCP_GTI_TT_NPL_ENC_NAI, "TT_NPL_ENC_NAI" },
{ 0, NULL }
}
Definition: sccp_sap.h:75
Definition: sccp_sap.h:72
Definition: sccp_sap.h:74
Definition: sccp_sap.h:71
Definition: sccp_sap.h:73

Referenced by osmo_sccp_gti_name().

◆ osmo_sccp_rem_sccp_status_names

const struct value_string osmo_sccp_rem_sccp_status_names[]
Initial value:
= {
{ OSMO_SCCP_REM_SCCP_S_UNAVAILABLE_UNKNOWN, "UNAVAILABLE_UNKNOWN" },
{ OSMO_SCCP_REM_SCCP_S_INACCESSIBLE, "INACCESSIBLE" },
{}
}
Definition: sccp_sap.h:157
Definition: sccp_sap.h:159
Definition: sccp_sap.h:155
Definition: sccp_sap.h:158

Referenced by osmo_sccp_rem_sccp_status_name().

◆ osmo_sccp_routing_ind_names

const struct value_string osmo_sccp_routing_ind_names[]
Initial value:
= {
{ OSMO_SCCP_RI_NONE, "NONE" },
{ OSMO_SCCP_RI_GT, "GT" },
{ OSMO_SCCP_RI_SSN_PC, "SSN_PC" },
{ OSMO_SCCP_RI_SSN_IP, "SSN_IP" },
{ 0, NULL }
}
Definition: sccp_sap.h:58
Definition: sccp_sap.h:60
Definition: sccp_sap.h:61
Definition: sccp_sap.h:59

Referenced by osmo_sccp_routing_ind_name().

◆ osmo_sccp_sp_status_names

const struct value_string osmo_sccp_sp_status_names[]
Initial value:
= {
{ OSMO_SCCP_SP_S_INACCESSIBLE, "INACCESSIBLE" },
{ OSMO_SCCP_SP_S_CONGESTED, "CONGESTED" },
{ OSMO_SCCP_SP_S_ACCESSIBLE, "ACCESSIBLE" },
{}
}
Definition: sccp_sap.h:142
Definition: sccp_sap.h:144
Definition: sccp_sap.h:143

Referenced by osmo_sccp_sp_status_name().

◆ osmo_sccp_ssn_names

const struct value_string osmo_sccp_ssn_names[]
Initial value:
= {
{ OSMO_SCCP_SSN_MGMT, "MGMT" },
{ OSMO_SCCP_SSN_ISUP, "ISUP" },
{ OSMO_SCCP_SSN_OMAP, "OMAP" },
{ OSMO_SCCP_SSN_MAP, "MAP" },
{ OSMO_SCCP_SSN_HLR, "HLR" },
{ OSMO_SCCP_SSN_VLR, "VLR" },
{ OSMO_SCCP_SSN_MSC, "MSC" },
{ OSMO_SCCP_SSN_EIR, "EIR" },
{ OSMO_SCCP_SSN_AUC, "AUC" },
{ OSMO_SCCP_SSN_ISDN_SS, "ISDN_SS" },
{ OSMO_SCCP_SSN_RES_INTL, "RES_INTL" },
{ OSMO_SCCP_SSN_BISDN, "BISDN" },
{ OSMO_SCCP_SSN_TC_TEST, "TC_TEST" },
{ OSMO_SCCP_SSN_RANAP, "RANAP" },
{ OSMO_SCCP_SSN_RNSAP, "RNSAP" },
{ OSMO_SCCP_SSN_GMLC_MAP, "GMLC_MAP" },
{ OSMO_SCCP_SSN_CAP, "CAP" },
{ OSMO_SCCP_SSN_gsmSCF_MAP, "gsmSCF_MAP" },
{ OSMO_SCCP_SSN_SIWF_MAP, "SIWF_MAP" },
{ OSMO_SCCP_SSN_SGSN_MAP, "SGSN_MAP" },
{ OSMO_SCCP_SSN_GGSN_MAP, "GGSN_MAP" },
{ OSMO_SCCP_SSN_PCAP, "PCAP" },
{ OSMO_SCCP_SSN_BSC_BSSAP_LE, "BSC_BSSAP_LE" },
{ OSMO_SCCP_SSN_MSC_BSSAP_LE, "MSC_BSSAP_LE" },
{ OSMO_SCCP_SSN_SMLC_BSSAP, "SMLC_BSSAP" },
{ OSMO_SCCP_SSN_BSS_OAM, "BSS_OAM" },
{ OSMO_SCCP_SSN_BSSAP, "BSSAP" },
{ 0, NULL }
}
Definition: sccp_sap.h:136
Definition: sccp_sap.h:116
Definition: sccp_sap.h:119
Definition: sccp_sap.h:113
Definition: sccp_sap.h:129
Definition: sccp_sap.h:125
Definition: sccp_sap.h:114
Definition: sccp_sap.h:132
Definition: sccp_sap.h:120
Definition: sccp_sap.h:108
Definition: sccp_sap.h:123
Definition: sccp_sap.h:124
Definition: sccp_sap.h:110
Definition: sccp_sap.h:111
Definition: sccp_sap.h:115
Definition: sccp_sap.h:127
Definition: sccp_sap.h:126
#define OSMO_SCCP_SSN_SMLC_BSSAP
Definition: sccp_sap.h:169
Definition: sccp_sap.h:128
Definition: sccp_sap.h:134
Definition: sccp_sap.h:118
Definition: sccp_sap.h:112
Definition: sccp_sap.h:121
Definition: sccp_sap.h:137
Definition: sccp_sap.h:130
Definition: sccp_sap.h:109
Definition: sccp_sap.h:133

Referenced by osmo_sccp_ssn_name().

◆ osmo_scu_prim_type_names

const struct value_string osmo_scu_prim_type_names[]
Initial value:
= {
{ OSMO_SCU_PRIM_N_CONNECT, "N-CONNECT" },
{ OSMO_SCU_PRIM_N_DATA, "N-DATA" },
{ OSMO_SCU_PRIM_N_EXPEDITED_DATA, "N-EXPEDITED-DATA" },
{ OSMO_SCU_PRIM_N_DISCONNECT, "N-DISCONNECT" },
{ OSMO_SCU_PRIM_N_RESET, "N-RESET" },
{ OSMO_SCU_PRIM_N_INFORM, "N-INFORM" },
{ OSMO_SCU_PRIM_N_UNITDATA, "N-UNITDATA" },
{ OSMO_SCU_PRIM_N_NOTICE, "N-NOTICE" },
{ OSMO_SCU_PRIM_N_COORD, "N-COORD" },
{ OSMO_SCU_PRIM_N_STATE, "N-STATE" },
{ OSMO_SCU_PRIM_N_PCSTATE, "N-PCSTATE" },
{ 0, NULL }
}
Definition: sccp_sap.h:41
Definition: sccp_sap.h:45
Definition: sccp_sap.h:42
Definition: sccp_sap.h:44
Definition: sccp_sap.h:46
Definition: sccp_sap.h:36
Definition: sccp_sap.h:34
Definition: sccp_sap.h:39
Definition: sccp_sap.h:35
Definition: sccp_sap.h:37
Definition: sccp_sap.h:38

Referenced by osmo_scu_prim_type_name().

◆ osmo_xlm_prim_names

const struct value_string osmo_xlm_prim_names[]
Initial value:
= {
{ OSMO_XLM_PRIM_M_SCTP_ESTABLISH, "M-SCTP_ESTABLISH" },
{ OSMO_XLM_PRIM_M_SCTP_RELEASE, "M-SCTP_RELEASE" },
{ OSMO_XLM_PRIM_M_SCTP_RESTART, "M-SCTP_RESTART" },
{ OSMO_XLM_PRIM_M_SCTP_STATUS, "M-SCTP_STATUS" },
{ OSMO_XLM_PRIM_M_ASP_STATUS, "M-ASP_STATUS" },
{ OSMO_XLM_PRIM_M_AS_STATUS, "M-AS_STATUS" },
{ OSMO_XLM_PRIM_M_NOTIFY, "M-NOTIFY" },
{ OSMO_XLM_PRIM_M_ERROR, "M-ERROR" },
{ OSMO_XLM_PRIM_M_ASP_UP, "M-ASP_UP" },
{ OSMO_XLM_PRIM_M_ASP_DOWN, "M-ASP_DOWN" },
{ OSMO_XLM_PRIM_M_ASP_ACTIVE, "M-ASP_ACTIVE" },
{ OSMO_XLM_PRIM_M_ASP_INACTIVE, "M-ASP_INACTIVE" },
{ OSMO_XLM_PRIM_M_AS_ACTIVE, "M-AS_ACTIVE" },
{ OSMO_XLM_PRIM_M_AS_INACTIVE, "M-AS_INACTIVE" },
{ OSMO_XLM_PRIM_M_AS_DOWN, "M-AS_DOWN" },
{ OSMO_XLM_PRIM_M_RK_REG, "M-RK_REG" },
{ OSMO_XLM_PRIM_M_RK_DEREG, "M-RK_DEREG" },
{ 0, NULL },
}
Definition: sigtran_sap.h:25
Definition: sigtran_sap.h:18
Definition: sigtran_sap.h:27
Definition: sigtran_sap.h:22
Definition: sigtran_sap.h:21
Definition: sigtran_sap.h:19
Definition: sigtran_sap.h:31
Definition: sigtran_sap.h:15
Definition: sigtran_sap.h:14
Definition: sigtran_sap.h:16
Definition: sigtran_sap.h:26
Definition: sigtran_sap.h:28
Definition: sigtran_sap.h:30
Definition: sigtran_sap.h:20
Definition: sigtran_sap.h:17
Definition: sigtran_sap.h:23
Definition: sigtran_sap.h:24

Referenced by osmo_xlm_prim_name().

◆ prim_name_buf

char prim_name_buf[128]
static