2016-03-30 10:41:00 +00:00
|
|
|
#pragma once
|
2017-04-03 19:42:08 +00:00
|
|
|
|
2016-03-30 10:41:00 +00:00
|
|
|
#include <unistd.h>
|
|
|
|
#include <osmocom/core/msgb.h>
|
|
|
|
#include <osmocom/sigtran/sccp_sap.h>
|
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_unitdata(struct osmo_sccp_user *scu,
|
2016-03-30 10:43:04 +00:00
|
|
|
const struct osmo_sccp_addr *calling_addr,
|
|
|
|
const struct osmo_sccp_addr *called_addr,
|
2017-04-03 19:42:08 +00:00
|
|
|
const uint8_t *data, unsigned int len);
|
2016-03-30 10:41:00 +00:00
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_unitdata_msg(struct osmo_sccp_user *scu,
|
2016-03-30 10:43:04 +00:00
|
|
|
const struct osmo_sccp_addr *calling_addr,
|
|
|
|
const struct osmo_sccp_addr *called_addr,
|
|
|
|
struct msgb *msg);
|
2016-03-30 10:41:00 +00:00
|
|
|
|
2016-03-30 10:43:04 +00:00
|
|
|
void osmo_sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr,
|
|
|
|
uint32_t pc, uint32_t ssn);
|
2016-03-30 10:41:00 +00:00
|
|
|
|
2017-07-27 11:51:20 +00:00
|
|
|
void osmo_sccp_addr_set_ssn(struct osmo_sccp_addr *addr, uint32_t ssn);
|
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_unitdata_ranap(struct osmo_sccp_user *scu,
|
2016-03-30 10:44:21 +00:00
|
|
|
uint32_t src_point_code,
|
|
|
|
uint32_t dst_point_code,
|
2017-04-03 19:42:08 +00:00
|
|
|
const uint8_t *data, unsigned int len);
|
2016-03-30 10:44:21 +00:00
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_conn_req(struct osmo_sccp_user *scu, uint32_t conn_id,
|
2016-03-30 10:43:04 +00:00
|
|
|
const struct osmo_sccp_addr *calling_addr,
|
|
|
|
const struct osmo_sccp_addr *called_addr,
|
2017-04-03 19:42:08 +00:00
|
|
|
const uint8_t *data, unsigned int len);
|
2016-03-30 10:41:00 +00:00
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_conn_req_msg(struct osmo_sccp_user *scu, uint32_t conn_id,
|
2016-03-30 10:43:04 +00:00
|
|
|
const struct osmo_sccp_addr *calling_addr,
|
|
|
|
const struct osmo_sccp_addr *called_addr,
|
|
|
|
struct msgb *msg);
|
2016-03-30 10:41:00 +00:00
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_data(struct osmo_sccp_user *scu, uint32_t conn_id,
|
|
|
|
const uint8_t *data, unsigned int len);
|
2016-03-30 10:41:00 +00:00
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_data_msg(struct osmo_sccp_user *scu, uint32_t conn_id,
|
2016-03-30 10:43:04 +00:00
|
|
|
struct msgb *msg);
|
2017-02-12 20:31:46 +00:00
|
|
|
|
2017-04-03 19:42:08 +00:00
|
|
|
int osmo_sccp_tx_disconn(struct osmo_sccp_user *scu, uint32_t conn_id,
|
|
|
|
const struct osmo_sccp_addr *resp_addr,
|
|
|
|
uint32_t cause);
|
|
|
|
|
|
|
|
int osmo_sccp_tx_conn_resp_msg(struct osmo_sccp_user *scu, uint32_t conn_id,
|
|
|
|
const struct osmo_sccp_addr *resp_addr,
|
|
|
|
struct msgb *msg);
|
|
|
|
|
|
|
|
int osmo_sccp_tx_conn_resp(struct osmo_sccp_user *scu, uint32_t conn_id,
|
|
|
|
const struct osmo_sccp_addr *resp_addr,
|
|
|
|
const uint8_t *data, unsigned int len);
|
|
|
|
|
2017-02-12 20:31:46 +00:00
|
|
|
char *osmo_sccp_gt_dump(const struct osmo_sccp_gt *gt);
|
|
|
|
char *osmo_sccp_addr_dump(const struct osmo_sccp_addr *addr);
|
2020-09-22 20:47:24 +00:00
|
|
|
|
|
|
|
int osmo_sccp_inst_addr_to_str_buf(char *buf, size_t buf_len, const struct osmo_sccp_instance *sccp,
|
|
|
|
const struct osmo_sccp_addr *addr);
|
|
|
|
char *osmo_sccp_inst_addr_to_str_c(void *ctx, const struct osmo_sccp_instance *sccp,
|
|
|
|
const struct osmo_sccp_addr *addr);
|
|
|
|
int osmo_sccp_addr_to_str_buf(char *buf, size_t buf_len, const struct osmo_ss7_instance *ss7,
|
|
|
|
const struct osmo_sccp_addr *addr);
|
|
|
|
char *osmo_sccp_addr_to_str_c(void *ctx, const struct osmo_ss7_instance *ss7, const struct osmo_sccp_addr *addr);
|
|
|
|
|
2020-09-23 16:18:19 +00:00
|
|
|
int osmo_sccp_addr_to_id_buf(char *buf, size_t buf_len, const struct osmo_ss7_instance *ss7,
|
|
|
|
const struct osmo_sccp_addr *addr);
|
|
|
|
char *osmo_sccp_addr_to_id_c(void *ctx, const struct osmo_ss7_instance *ss7, const struct osmo_sccp_addr *addr);
|
|
|
|
|
2017-08-11 12:31:35 +00:00
|
|
|
char *osmo_sccp_addr_name(const struct osmo_ss7_instance *ss7, const struct osmo_sccp_addr *addr);
|
2017-11-08 01:27:36 +00:00
|
|
|
char *osmo_sccp_inst_addr_name(const struct osmo_sccp_instance *sccp, const struct osmo_sccp_addr *addr);
|