Harald Welte | c4338de | 2015-12-24 00:40:52 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | #include <unistd.h> |
| 3 | #include <osmocom/core/msgb.h> |
| 4 | #include <osmocom/sigtran/sccp_sap.h> |
| 5 | #include <osmocom/sigtran/sua.h> |
| 6 | |
| 7 | int sccp_tx_unitdata(struct osmo_sua_link *link, |
| 8 | const struct osmo_sccp_addr *calling_addr, |
| 9 | const struct osmo_sccp_addr *called_addr, |
| 10 | uint8_t *data, unsigned int len); |
| 11 | |
| 12 | int sccp_tx_unitdata_msg(struct osmo_sua_link *link, |
| 13 | const struct osmo_sccp_addr *calling_addr, |
| 14 | const struct osmo_sccp_addr *called_addr, |
| 15 | struct msgb *msg); |
| 16 | |
| 17 | void sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr, uint32_t pc, uint32_t ssn); |
| 18 | |
| 19 | int sccp_tx_conn_req(struct osmo_sua_link *link, uint32_t conn_id, |
| 20 | const struct osmo_sccp_addr *calling_addr, |
| 21 | const struct osmo_sccp_addr *called_addr, |
| 22 | uint8_t *data, unsigned int len); |
| 23 | |
| 24 | int sccp_tx_conn_req_msg(struct osmo_sua_link *link, uint32_t conn_id, |
| 25 | const struct osmo_sccp_addr *calling_addr, |
| 26 | const struct osmo_sccp_addr *called_addr, |
| 27 | struct msgb *msg); |
| 28 | |
| 29 | int sccp_tx_data(struct osmo_sua_link *link, uint32_t conn_id, |
| 30 | uint8_t *data, unsigned int len); |
| 31 | |
| 32 | int sccp_tx_data_msg(struct osmo_sua_link *link, uint32_t conn_id, |
| 33 | struct msgb *msg); |