blob: 089d69a5ec187677c956c4cd24b423f54a2ec616 [file] [log] [blame]
Harald Weltec4338de2015-12-24 00:40:52 +01001#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
7int 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
12int 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
17void sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr, uint32_t pc, uint32_t ssn);
18
19int 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
24int 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
29int sccp_tx_data(struct osmo_sua_link *link, uint32_t conn_id,
30 uint8_t *data, unsigned int len);
31
32int sccp_tx_data_msg(struct osmo_sua_link *link, uint32_t conn_id,
33 struct msgb *msg);