libosmo-sigtran
0.10.0
Osmocom SIGTRAN library
|
Go to the documentation of this file.
24 #include <osmocom/core/prim.h>
27 #include <netinet/in.h>
49 #define OSMO_SCCP_ADDR_T_GT 0x0001
50 #define OSMO_SCCP_ADDR_T_PC 0x0002
51 #define OSMO_SCCP_ADDR_T_SSN 0x0004
52 #define OSMO_SCCP_ADDR_T_IPv4 0x0008
53 #define OSMO_SCCP_ADDR_T_IPv6 0x0010
226 struct osmo_prim_hdr
oph;
237 #define msgb_scu_prim(msg) ((struct osmo_scu_prim *)(msg)->l1h)
struct osmo_scu_data_param data
Definition: sccp_sap.h:229
struct osmo_ss7_instance * ss7
Definition: sccp_internal.h:20
@ OSMO_SCCP_NPI_UNKNOWN
Definition: sccp_sap.h:83
Definition: sccp_internal.h:9
@ OSMO_SCCP_SSN_VLR
Definition: sccp_sap.h:112
@ OSMO_SCCP_SSN_ISUP
Definition: sccp_sap.h:108
@ OSMO_SCU_PRIM_N_DISCONNECT
Definition: sccp_sap.h:37
struct osmo_sccp_instance * osmo_sccp_instance_create(struct osmo_ss7_instance *ss7, void *priv)
create a SCCP Instance and register it as user with SS7 inst
Definition: sccp_user.c:194
@ OSMO_SCCP_SSN_GMLC_MAP
Definition: sccp_sap.h:124
const char * osmo_sccp_user_name(struct osmo_sccp_user *scu)
Compose a human readable string to describe the SCCP user's connection.
Definition: sccp_user.c:301
@ OSMO_SCU_PRIM_N_UNITDATA
Definition: sccp_sap.h:41
osmo_sccp_gti
Definition: sccp_sap.h:69
char * name
human-readable name of this user
Definition: sccp_internal.h:32
Definition: sccp_sap.h:217
@ OSMO_SCU_PRIM_N_NOTICE
Definition: sccp_sap.h:42
Definition: sccp_internal.h:26
@ OSMO_SCCP_NPI_E212_LAND
Definition: sccp_sap.h:89
Definition: sccp_sap.h:151
bool osmo_sccp_check_addr(struct osmo_sccp_addr *addr, uint32_t presence)
check whether a given SCCP-Address is consistent.
Definition: sccp_user.c:258
@ OSMO_SCCP_GTI_TT_NPL_ENC_NAI
Definition: sccp_sap.h:74
uint16_t ssn
SSN and/or point code to which we are bound.
Definition: sccp_internal.h:35
uint32_t in_sequence_control
Definition: sccp_sap.h:210
uint32_t importance
Definition: sccp_sap.h:221
uint32_t pc
Definition: sccp_sap.h:155
uint32_t importance
Definition: sccp_sap.h:171
uint32_t conn_id
Definition: sccp_sap.h:178
uint32_t npi
Definition: sccp_sap.h:146
@ OSMO_SCCP_NAI_INTL
Definition: sccp_sap.h:100
@ OSMO_SCCP_NPI_PRIVATE
Definition: sccp_sap.h:91
@ OSMO_SCCP_NPI_X121_DATA
Definition: sccp_sap.h:86
Definition: sccp_sap.h:165
Definition: sccp_sap.h:207
@ OSMO_SCU_PRIM_N_RESET
Definition: sccp_sap.h:38
void osmo_sccp_vty_init(void)
Definition: sccp_vty.c:146
@ OSMO_SCU_PRIM_N_PCSTATE
Definition: sccp_sap.h:46
@ OSMO_SCCP_SSN_SGSN_MAP
Definition: sccp_sap.h:128
@ OSMO_SCU_PRIM_N_STATE
Definition: sccp_sap.h:45
uint32_t presence
Definition: sccp_sap.h:152
struct in_addr v4
Definition: sccp_sap.h:158
Definition: sccp_sap.h:190
Definition: sccp_sap.h:177
osmo_prim_cb prim_cb
Definition: sccp_internal.h:42
uint32_t importance
Definition: sccp_sap.h:212
@ OSMO_SCCP_RI_NONE
Definition: sccp_sap.h:57
@ OSMO_SCCP_SSN_PCAP
Definition: sccp_sap.h:131
uint32_t cause
Definition: sccp_sap.h:193
osmo_sccp_routing_ind
Definition: sccp_sap.h:56
uint32_t sccp_class
Definition: sccp_sap.h:170
@ OSMO_SCCP_SSN_RES_INTL
Definition: sccp_sap.h:118
uint32_t conn_id
Definition: sccp_sap.h:203
@ OSMO_SCCP_SSN_RANAP
Definition: sccp_sap.h:122
@ OSMO_SCCP_SSN_MGMT
Definition: sccp_sap.h:107
@ OSMO_SCU_PRIM_N_COORD
Definition: sccp_sap.h:44
void osmo_sccp_instance_destroy(struct osmo_sccp_instance *inst)
Definition: sccp_user.c:219
struct osmo_scu_connect_param connect
Definition: sccp_sap.h:228
struct osmo_sccp_addr calling_addr
Definition: sccp_sap.h:167
@ OSMO_SCCP_ORIG_UNDEFINED
Definition: sccp_sap.h:186
uint32_t importance
Definition: sccp_sap.h:179
@ OSMO_SCCP_SSN_EIR
Definition: sccp_sap.h:114
uint32_t importance
Definition: sccp_sap.h:195
@ OSMO_SCCP_NPI_E214_ISDN_MOBILE
Definition: sccp_sap.h:90
@ OSMO_SCCP_NAI_UNKNOWN
Definition: sccp_sap.h:96
struct in6_addr v6
Definition: sccp_sap.h:159
@ OSMO_SCCP_SSN_BISDN
Definition: sccp_sap.h:119
@ OSMO_SCCP_SSN_RNSAP
Definition: sccp_sap.h:123
@ OSMO_SCU_PRIM_N_CONNECT
Definition: sccp_sap.h:34
struct osmo_scu_unitdata_param unitdata
Definition: sccp_sap.h:232
struct osmo_prim_hdr oph
Definition: sccp_sap.h:226
Definition: osmo_ss7.h:70
char * osmo_scu_prim_name(struct osmo_prim_hdr *oph)
Definition: sccp_sap.c:46
void osmo_sccp_user_set_priv(struct osmo_sccp_user *scu, void *priv)
Definition: sccp_user.c:139
@ OSMO_SCCP_RI_SSN_PC
Definition: sccp_sap.h:59
void osmo_sccp_local_addr_by_instance(struct osmo_sccp_addr *dest_addr, const struct osmo_sccp_instance *inst, uint32_t ssn)
derive a basic local SCCP-Address from a given SCCP instance.
Definition: sccp_user.c:238
union osmo_scu_prim::@30 u
struct osmo_sccp_instance * osmo_sccp_get_sccp(const struct osmo_sccp_user *scu)
get the SCCP instance that is related to the given sccp user
Definition: sccp_user.c:655
@ OSMO_SCCP_SSN_gsmSCF_MAP
Definition: sccp_sap.h:126
struct osmo_sccp_instance * inst
pointer back to SCCP instance
Definition: sccp_internal.h:30
@ OSMO_SCCP_NPI_E210_MARITIME
Definition: sccp_sap.h:88
void * priv
Definition: sccp_internal.h:21
uint8_t tt
Definition: sccp_sap.h:145
struct osmo_sccp_instance * sccp
Definition: osmo_ss7.h:89
@ OSMO_SCCP_SSN_ISDN_SS
Definition: sccp_sap.h:117
struct osmo_ss7_instance * osmo_sccp_get_ss7(const struct osmo_sccp_instance *sccp)
get the SS7 instance that is related to the given SCCP instance
Definition: sccp_user.c:645
const char * osmo_sccp_name_by_addr(const struct osmo_sccp_addr *addr)
Reverse lookup the lookup-name of a specified SCCP address.
Definition: osmo_ss7_vty.c:1099
osmo_sccp_ssn
Definition: sccp_sap.h:105
@ OSMO_SCCP_SSN_CAP
Definition: sccp_sap.h:125
osmo_sccp_nai
Definition: sccp_sap.h:95
char * name
Definition: osmo_ss7.h:93
void osmo_sccp_user_unbind(struct osmo_sccp_user *scu)
Unbind a given SCCP user.
Definition: sccp_user.c:129
@ OSMO_SCCP_GTI_NAI_ONLY
Definition: sccp_sap.h:71
@ OSMO_SCU_PRIM_N_EXPEDITED_DATA
Definition: sccp_sap.h:36
int osmo_sccp_user_sap_down(struct osmo_sccp_user *scu, struct osmo_prim_hdr *oph)
Main entrance function for primitives from SCCP User.
Definition: sccp_scoc.c:1605
struct osmo_sccp_addr called_addr
Definition: sccp_sap.h:208
struct osmo_ss7_instance * osmo_sccp_addr_by_name(struct osmo_sccp_addr *dest_addr, const char *name)
Lookup an SCCP address from the addressbook by its name.
Definition: osmo_ss7_vty.c:1081
@ OSMO_SCCP_ORIG_NS_PROVIDER
Definition: sccp_sap.h:184
@ OSMO_SCCP_NAI_RES_NAT_USE
Definition: sccp_sap.h:98
struct osmo_sccp_addr responding_addr
Definition: sccp_sap.h:192
@ OSMO_SCCP_SSN_SIWF_MAP
Definition: sccp_sap.h:127
@ OSMO_SCCP_ORIG_NS_USER
Definition: sccp_sap.h:185
@ OSMO_SCCP_NAI_SUBSCR
Definition: sccp_sap.h:97
struct osmo_scu_notice_param notice
Definition: sccp_sap.h:233
static const char * osmo_sccp_ssn_name(enum osmo_sccp_ssn val)
Definition: sccp_sap.h:140
@ OSMO_SCCP_GTI_TT_NPL_ENC
Definition: sccp_sap.h:73
Definition: sccp_sap.h:200
@ OSMO_SCCP_SSN_HLR
Definition: sccp_sap.h:111
osmo_scu_prim_type
SCCP-User primitives as per Q.711.
Definition: sccp_sap.h:32
@ OSMO_SCCP_NPI_F69_TELEX
Definition: sccp_sap.h:87
char digits[32]
Definition: sccp_sap.h:148
@ OSMO_SCCP_SSN_OMAP
Definition: sccp_sap.h:109
@ OSMO_SCCP_SSN_MAP
Definition: sccp_sap.h:110
osmo_sccp_originator
Definition: sccp_sap.h:183
Definition: sccp_sap.h:143
uint32_t return_option
Definition: sccp_sap.h:211
static const char * osmo_sccp_routing_ind_name(enum osmo_sccp_routing_ind val)
Definition: sccp_sap.h:64
struct osmo_sccp_addr calling_addr
Definition: sccp_sap.h:209
enum osmo_sccp_originator originator
Definition: sccp_sap.h:201
const struct value_string osmo_sccp_ssn_names[]
Definition: sccp_sap.c:108
struct osmo_sccp_user * osmo_sccp_user_bind(struct osmo_sccp_instance *inst, const char *name, osmo_prim_cb prim_cb, uint16_t ssn)
Bind a given SCCP User to a given SSN (at any PC)
Definition: sccp_user.c:120
@ OSMO_SCU_PRIM_N_INFORM
Definition: sccp_sap.h:39
uint32_t cause
Definition: sccp_sap.h:202
const struct value_string osmo_sccp_gti_names[]
Definition: sccp_sap.c:99
uint32_t nai
Definition: sccp_sap.h:147
static const char * osmo_sccp_gti_name(enum osmo_sccp_gti val)
Definition: sccp_sap.h:78
uint32_t cause
Definition: sccp_sap.h:220
struct osmo_sccp_addr called_addr
Definition: sccp_sap.h:166
union osmo_sccp_addr::@29 ip
struct osmo_scu_disconn_param disconnect
Definition: sccp_sap.h:230
struct osmo_sccp_addr calling_addr
Definition: sccp_sap.h:219
@ OSMO_SCCP_SSN_BSSAP
Definition: sccp_sap.h:136
@ OSMO_SCCP_SSN_MSC_BSSAP_LE
Definition: sccp_sap.h:133
@ OSMO_SCCP_GTI_NO_GT
Definition: sccp_sap.h:70
uint32_t conn_id
Definition: sccp_sap.h:194
osmo_sccp_npi
Definition: sccp_sap.h:82
Definition: sccp_sap.h:225
@ OSMO_SCCP_SSN_BSC_BSSAP_LE
Definition: sccp_sap.h:132
struct osmo_scu_reset_param reset
Definition: sccp_sap.h:231
@ OSMO_SCCP_SSN_SMLC_BSSAP
Definition: sccp_sap.h:134
uint32_t conn_id
Definition: sccp_sap.h:172
@ OSMO_SCCP_NPI_GEERIC
Definition: sccp_sap.h:85
@ OSMO_SCCP_GTI_TT_ONLY
Definition: sccp_sap.h:72
@ OSMO_SCCP_NPI_E164_ISDN
Definition: sccp_sap.h:84
@ OSMO_SCCP_SSN_TC_TEST
Definition: sccp_sap.h:120
struct osmo_sccp_user * osmo_sccp_user_bind_pc(struct osmo_sccp_instance *inst, const char *name, osmo_prim_cb prim_cb, uint16_t ssn, uint32_t pc)
Bind a given SCCP User to a given SSN+PC.
Definition: sccp_user.c:108
@ OSMO_SCCP_RI_GT
Definition: sccp_sap.h:58
@ OSMO_SCCP_SSN_BSS_OAM
Definition: sccp_sap.h:135
@ OSMO_SCCP_SSN_AUC
Definition: sccp_sap.h:115
@ OSMO_SCCP_SSN_GGSN_MAP
Definition: sccp_sap.h:129
void * osmo_sccp_user_get_priv(struct osmo_sccp_user *scu)
Definition: sccp_user.c:144
uint32_t pc
Definition: sccp_internal.h:36
struct osmo_sccp_addr called_addr
Definition: sccp_sap.h:218
struct osmo_sccp_gt gt
Definition: sccp_sap.h:154
uint8_t gti
Definition: sccp_sap.h:144
@ OSMO_SCU_PRIM_N_DATA
Definition: sccp_sap.h:35
@ OSMO_SCCP_NAI_NATL
Definition: sccp_sap.h:99
enum osmo_sccp_routing_ind ri
Definition: sccp_sap.h:153
@ OSMO_SCCP_RI_SSN_IP
Definition: sccp_sap.h:60
@ OSMO_SCCP_SSN_MSC
Definition: sccp_sap.h:113
enum osmo_sccp_originator originator
Definition: sccp_sap.h:191
const struct value_string osmo_sccp_routing_ind_names[]
Definition: sccp_sap.c:91
struct osmo_sccp_addr responding_addr
Definition: sccp_sap.h:168
uint32_t ssn
Definition: sccp_sap.h:156