libosmo-sigtran  0.10.0
Osmocom SIGTRAN library
sccp_helpers.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <unistd.h>
4 #include <osmocom/core/msgb.h>
6 
8  const struct osmo_sccp_addr *calling_addr,
9  const struct osmo_sccp_addr *called_addr,
10  const uint8_t *data, unsigned int len);
11 
13  const struct osmo_sccp_addr *calling_addr,
14  const struct osmo_sccp_addr *called_addr,
15  struct msgb *msg);
16 
18  uint32_t pc, uint32_t ssn);
19 
20 void osmo_sccp_addr_set_ssn(struct osmo_sccp_addr *addr, uint32_t ssn);
21 
23  uint32_t src_point_code,
24  uint32_t dst_point_code,
25  const uint8_t *data, unsigned int len);
26 
27 int osmo_sccp_tx_conn_req(struct osmo_sccp_user *scu, uint32_t conn_id,
28  const struct osmo_sccp_addr *calling_addr,
29  const struct osmo_sccp_addr *called_addr,
30  const uint8_t *data, unsigned int len);
31 
32 int osmo_sccp_tx_conn_req_msg(struct osmo_sccp_user *scu, uint32_t conn_id,
33  const struct osmo_sccp_addr *calling_addr,
34  const struct osmo_sccp_addr *called_addr,
35  struct msgb *msg);
36 
37 int osmo_sccp_tx_data(struct osmo_sccp_user *scu, uint32_t conn_id,
38  const uint8_t *data, unsigned int len);
39 
40 int osmo_sccp_tx_data_msg(struct osmo_sccp_user *scu, uint32_t conn_id,
41  struct msgb *msg);
42 
43 int osmo_sccp_tx_disconn(struct osmo_sccp_user *scu, uint32_t conn_id,
44  const struct osmo_sccp_addr *resp_addr,
45  uint32_t cause);
46 
47 int osmo_sccp_tx_conn_resp_msg(struct osmo_sccp_user *scu, uint32_t conn_id,
48  const struct osmo_sccp_addr *resp_addr,
49  struct msgb *msg);
50 
51 int osmo_sccp_tx_conn_resp(struct osmo_sccp_user *scu, uint32_t conn_id,
52  const struct osmo_sccp_addr *resp_addr,
53  const uint8_t *data, unsigned int len);
54 
55 char *osmo_sccp_gt_dump(const struct osmo_sccp_gt *gt);
56 char *osmo_sccp_addr_dump(const struct osmo_sccp_addr *addr);
57 char *osmo_sccp_addr_name(const struct osmo_ss7_instance *ss7, const struct osmo_sccp_addr *addr);
58 char *osmo_sccp_inst_addr_name(const struct osmo_sccp_instance *sccp, const struct osmo_sccp_addr *addr);
Definition: sccp_internal.h:9
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)
Definition: sccp_helpers.c:206
char * osmo_sccp_addr_dump(const struct osmo_sccp_addr *addr)
Definition: sccp_helpers.c:288
int osmo_sccp_tx_disconn(struct osmo_sccp_user *scu, uint32_t conn_id, const struct osmo_sccp_addr *resp_addr, uint32_t cause)
Definition: sccp_helpers.c:182
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)
Definition: sccp_helpers.c:227
Definition: sccp_internal.h:26
char * osmo_sccp_gt_dump(const struct osmo_sccp_gt *gt)
Definition: sccp_helpers.c:256
int osmo_sccp_tx_unitdata(struct osmo_sccp_user *scu, const struct osmo_sccp_addr *calling_addr, const struct osmo_sccp_addr *called_addr, const uint8_t *data, unsigned int len)
Definition: sccp_helpers.c:60
int osmo_sccp_tx_conn_req_msg(struct osmo_sccp_user *scu, uint32_t conn_id, const struct osmo_sccp_addr *calling_addr, const struct osmo_sccp_addr *called_addr, struct msgb *msg)
Definition: sccp_helpers.c:138
int osmo_sccp_tx_unitdata_msg(struct osmo_sccp_user *scu, const struct osmo_sccp_addr *calling_addr, const struct osmo_sccp_addr *called_addr, struct msgb *msg)
Definition: sccp_helpers.c:96
char * osmo_sccp_inst_addr_name(const struct osmo_sccp_instance *sccp, const struct osmo_sccp_addr *addr)
Definition: sccp_helpers.c:337
int osmo_sccp_tx_data_msg(struct osmo_sccp_user *scu, uint32_t conn_id, struct msgb *msg)
Definition: sccp_helpers.c:170
Definition: sccp_sap.h:151
Definition: sccp_sap.h:143
void osmo_sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr, uint32_t pc, uint32_t ssn)
Definition: sccp_helpers.c:44
char * osmo_sccp_addr_name(const struct osmo_ss7_instance *ss7, const struct osmo_sccp_addr *addr)
Definition: sccp_helpers.c:312
void osmo_sccp_addr_set_ssn(struct osmo_sccp_addr *addr, uint32_t ssn)
Definition: sccp_helpers.c:54
uint8_t data[0]
Definition: xua_types.h:72
Definition: osmo_ss7.h:70
uint16_t len
Definition: xua_types.h:68
int osmo_sccp_tx_conn_req(struct osmo_sccp_user *scu, uint32_t conn_id, const struct osmo_sccp_addr *calling_addr, const struct osmo_sccp_addr *called_addr, const uint8_t *data, unsigned int len)
Definition: sccp_helpers.c:110
int osmo_sccp_tx_data(struct osmo_sccp_user *scu, uint32_t conn_id, const uint8_t *data, unsigned int len)
Definition: sccp_helpers.c:152
int osmo_sccp_tx_unitdata_ranap(struct osmo_sccp_user *scu, uint32_t src_point_code, uint32_t dst_point_code, const uint8_t *data, unsigned int len)
Definition: sccp_helpers.c:81