libosmo-sigtran  1.4.0
Osmocom SIGTRAN library
osmo_ss7.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <stdbool.h>
5 
6 #include <osmocom/core/linuxlist.h>
7 #include <osmocom/core/utils.h>
8 #include <osmocom/core/fsm.h>
9 #include <osmocom/core/msgb.h>
10 #include <osmocom/core/prim.h>
11 #include <osmocom/core/socket.h>
12 
13 extern struct llist_head osmo_ss7_instances;
14 
15 struct osmo_ss7_instance;
16 struct osmo_ss7_user;
17 struct osmo_sccp_instance;
18 struct osmo_mtp_prim;
20 
21 int osmo_ss7_init(void);
23 
24 bool osmo_ss7_pc_is_local(struct osmo_ss7_instance *inst, uint32_t pc);
25 int osmo_ss7_pointcode_parse(struct osmo_ss7_instance *inst, const char *str);
26 int osmo_ss7_pointcode_parse_mask_or_len(struct osmo_ss7_instance *inst, const char *in);
27 const char *osmo_ss7_pointcode_print_buf(char *buf, size_t buf_len, const struct osmo_ss7_instance *inst, uint32_t pc);
28 const char *osmo_ss7_pointcode_print(const struct osmo_ss7_instance *inst, uint32_t pc);
29 const char *osmo_ss7_pointcode_print2(const struct osmo_ss7_instance *inst, uint32_t pc);
30 
31 /* All known point-code formats have a length of or below 24 bit.
32  * A point-code value exceeding that is used to indicate an unset PC. */
33 #define OSMO_SS7_PC_INVALID 0xffffffff
34 static inline bool osmo_ss7_pc_is_valid(uint32_t pc)
35 {
36  return pc <= 0x00ffffff;
37 }
38 
39 /***********************************************************************
40  * SS7 Routing Tables
41  ***********************************************************************/
42 
45  struct llist_head list;
47  struct osmo_ss7_instance *inst;
49  struct llist_head routes;
50 
51  struct {
52  char *name;
53  char *description;
54  } cfg;
55 };
56 
57 struct osmo_ss7_route_table *
59 struct osmo_ss7_route_table *
62 
63 /***********************************************************************
64  * SS7 Instances
65  ***********************************************************************/
66 
68  char delimiter;
69  uint8_t component_len[3];
70 };
71 
74  struct llist_head list;
76  struct llist_head linksets;
78  struct llist_head as_list;
80  struct llist_head asp_list;
82  struct llist_head rtable_list;
84  struct llist_head xua_servers;
85  /* array for faster lookup of user (indexed by service
86  * indicator) */
87  const struct osmo_ss7_user *user[16];
88 
90 
92 
93  struct {
94  uint32_t id;
95  char *name;
96  char *description;
97  uint32_t primary_pc;
98  /* secondary PCs */
99  /* capability PCs */
101  struct osmo_ss7_pc_fmt pc_fmt;
103  struct llist_head sccp_address_book;
104  } cfg;
105 };
106 
107 struct osmo_ss7_instance *osmo_ss7_instance_find(uint32_t id);
108 struct osmo_ss7_instance *
109 osmo_ss7_instance_find_or_create(void *ctx, uint32_t id);
112  uint8_t c0, uint8_t c1, uint8_t c2);
113 
115 
116 uint8_t osmo_ss7_pc_width(const struct osmo_ss7_pc_fmt *pc_fmt);
117 
118 /***********************************************************************
119  * MTP Users (Users of MTP, such as SCCP or ISUP)
120  ***********************************************************************/
121 
123  /* pointer back to SS7 instance */
124  struct osmo_ss7_instance *inst;
125  /* name of the user */
126  const char *name;
127  /* primitive call-back for incoming MTP primitives */
128  osmo_prim_cb prim_cb;
129  /* private data */
130  void *priv;
131 };
132 
133 int osmo_ss7_user_register(struct osmo_ss7_instance *inst, uint8_t service_ind,
134  struct osmo_ss7_user *user);
135 
136 int osmo_ss7_user_unregister(struct osmo_ss7_instance *inst, uint8_t service_ind,
137  struct osmo_ss7_user *user);
138 
139 int osmo_ss7_mtp_to_user(struct osmo_ss7_instance *inst, struct osmo_mtp_prim *omp);
140 
141 /* SS7 User wants to issue MTP-TRANSFER.req */
143  struct osmo_mtp_prim *omp);
144 
145 /***********************************************************************
146  * SS7 Links
147  ***********************************************************************/
148 
154 };
155 
157 struct osmo_ss7_link;
158 
162  struct {
163  char *name;
164  char *description;
165  uint32_t id;
166 
168  } cfg;
169 };
170 
171 void osmo_ss7_link_destroy(struct osmo_ss7_link *link);
172 struct osmo_ss7_link *
173 osmo_ss7_link_find_or_create(struct osmo_ss7_linkset *lset, uint32_t id);
174 
175 /***********************************************************************
176  * SS7 Linksets
177  ***********************************************************************/
178 
180  struct llist_head list;
182  struct osmo_ss7_instance *inst;
184  struct osmo_ss7_link *links[16];
185 
186  struct {
187  char *name;
188  char *description;
189  uint32_t adjacent_pc;
190  uint32_t local_pc;
191  } cfg;
192 };
193 
194 void osmo_ss7_linkset_destroy(struct osmo_ss7_linkset *lset);
195 struct osmo_ss7_linkset *
197 struct osmo_ss7_linkset *
198 osmo_ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc);
199 
200 
201 /***********************************************************************
202  * SS7 Routes
203  ***********************************************************************/
204 
207  struct llist_head list;
210 
211  struct {
213  struct osmo_ss7_linkset *linkset;
215  struct osmo_ss7_as *as;
216  } dest;
217 
218  struct {
219  /* FIXME: presence? */
220  uint32_t pc;
221  uint32_t mask;
225  uint32_t priority;
226  uint8_t qos_class;
227  } cfg;
228 };
229 
230 struct osmo_ss7_route *
231 osmo_ss7_route_find_dpc(struct osmo_ss7_route_table *rtbl, uint32_t dpc);
232 struct osmo_ss7_route *
234  uint32_t mask);
235 struct osmo_ss7_route *
236 osmo_ss7_route_lookup(struct osmo_ss7_instance *inst, uint32_t dpc);
237 struct osmo_ss7_route *
238 osmo_ss7_route_create(struct osmo_ss7_route_table *rtbl, uint32_t dpc,
239  uint32_t mask, const char *linkset_name);
240 void osmo_ss7_route_destroy(struct osmo_ss7_route *rt);
241 const char *osmo_ss7_route_print(const struct osmo_ss7_route *rt);
242 const char *osmo_ss7_route_name(struct osmo_ss7_route *rt, bool list_asps);
243 
244 
245 /***********************************************************************
246  * SS7 Application Servers
247  ***********************************************************************/
248 
250  uint32_t context;
251  uint32_t l_rk_id;
252 
253  uint32_t pc;
254  uint8_t si;
255  uint32_t ssn;
256  /* FIXME: more complex routing keys */
257 };
258 
260  OSMO_SS7_AS_TMOD_OVERRIDE = 0, /* default */
265 };
266 
267 extern struct value_string osmo_ss7_as_traffic_mode_vals[];
268 
269 static inline const char *
271 {
272  return get_value_string(osmo_ss7_as_traffic_mode_vals, mode);
273 }
274 
281 };
282 
283 extern struct value_string osmo_ss7_asp_protocol_vals[];
284 
285 static inline const char *
287 {
288  return get_value_string(osmo_ss7_asp_protocol_vals, mode);
289 }
290 
292 
294  OSMO_SS7_PATCH_NONE, /* no patching of SCCP */
295  OSMO_SS7_PATCH_BOTH, /* patch both OPC and DPC into SCCP addresses */
296 };
297 
298 struct osmo_ss7_as {
300  struct llist_head list;
302 
304  struct osmo_fsm_inst *fi;
305 
308 
311 
312  struct {
313  char *name;
314  char *description;
318  /* traffic mode was configured by VTY / config file */
320  /* traffic mode was configured by RKM (routing key management) or first ASPAC */
323  uint8_t qos_class;
324  struct {
325  uint32_t dpc;
328 
329  struct osmo_ss7_asp *asps[16];
330  uint8_t last_asp_idx_sent; /* used for load-sharing traffic mode (round robin implementation) */
331  } cfg;
332 };
333 
334 struct osmo_ss7_as *
336 struct osmo_ss7_as *
337 osmo_ss7_as_find_by_rctx(struct osmo_ss7_instance *inst, uint32_t rctx);
338 struct osmo_ss7_as *
339 osmo_ss7_as_find_by_l_rk_id(struct osmo_ss7_instance *inst, uint32_t l_rk_id);
342 struct osmo_ss7_as *
345 int osmo_ss7_as_add_asp(struct osmo_ss7_as *as, const char *asp_name);
346 int osmo_ss7_as_del_asp(struct osmo_ss7_as *as, const char *asp_name);
347 void osmo_ss7_as_destroy(struct osmo_ss7_as *as);
348 bool osmo_ss7_as_has_asp(const struct osmo_ss7_as *as,
349  const struct osmo_ss7_asp *asp);
350 bool osmo_ss7_as_active(const struct osmo_ss7_as *as);
351 bool osmo_ss7_as_tmode_compatible_xua(struct osmo_ss7_as *as, uint32_t m3ua_tmt);
352 void osmo_ss7_asp_disconnect(struct osmo_ss7_asp *asp);
353 
354 
355 /***********************************************************************
356  * SS7 Application Server Processes
357  ***********************************************************************/
358 
360  char *host[OSMO_SOCK_MAX_ADDRS];
361  size_t host_cnt;
362  uint16_t port;
363 };
364 
372 };
373 
378 };
379 
380 extern const struct value_string osmo_ss7_asp_role_names[];
381 
382 struct osmo_ss7_asp {
384  struct llist_head list;
386 
388  struct osmo_fsm_inst *fi;
389 
392  struct llist_head siblings;
393 
395  struct osmo_stream_cli *client;
396  struct osmo_stream_srv *server;
398  char *sock_name;
399 
400  /* ASP Identifier for ASP-UP + NTFY */
401  uint32_t asp_id;
403 
404  /* Layer Manager to which we talk */
405  const struct osmo_xua_layer_manager *lm;
406  void *lm_priv;
407 
410 
413 
415  struct msgb *pending_msg;
416 
417  struct {
418  char *name;
419  char *description;
422  bool is_server;
423  enum osmo_ss7_asp_role role;
425 
426  struct osmo_ss7_asp_peer local;
427  struct osmo_ss7_asp_peer remote;
428  uint8_t qos_class;
429  } cfg;
430 };
431 
432 int osmo_ss7_asp_peer_snprintf(char* buf, size_t buf_len, struct osmo_ss7_asp_peer *peer);
433 int osmo_ss7_asp_peer_set_hosts(struct osmo_ss7_asp_peer *peer, void *talloc_ctx,
434  const char* const* hosts, size_t host_cnt);
435 int osmo_ss7_asp_peer_add_host(struct osmo_ss7_asp_peer *peer, void *talloc_ctx, const char *host);
436 
437 struct osmo_ss7_asp *
439 struct osmo_ss7_asp
442 struct osmo_ss7_asp *
443 osmo_ss7_asp_find(struct osmo_ss7_instance *inst, const char *name,
444  uint16_t remote_port, uint16_t local_port,
446 struct osmo_ss7_asp *
448  uint16_t remote_port, uint16_t local_port,
450 void osmo_ss7_asp_destroy(struct osmo_ss7_asp *asp);
451 int osmo_ss7_asp_send(struct osmo_ss7_asp *asp, struct msgb *msg);
452 int osmo_ss7_asp_restart(struct osmo_ss7_asp *asp);
453 int osmo_ss7_asp_use_default_lm(struct osmo_ss7_asp *asp, int log_level);
454 bool osmo_ss7_asp_active(const struct osmo_ss7_asp *asp);
455 int osmo_ss7_asp_get_log_subsys(const struct osmo_ss7_asp *asp);
456 
464 typedef int osmo_ss7_asp_rx_unknown_cb(struct osmo_ss7_asp *asp, int ppid_mux, struct msgb *msg);
465 
467 
468 #define _LOGSS7(inst, subsys, level, fmt, args ...) \
469  LOGP(subsys, level, "%u: " fmt, inst ? (inst)->cfg.id : 0, ## args)
470 #define LOGSS7(inst, level, fmt, args ...) _LOGSS7(inst, DLSS7, level, fmt, ## args)
471 
472 #define LOGPASP(asp, subsys, level, fmt, args ...) \
473  _LOGSS7((asp)->inst, subsys, level, "asp-%s: " fmt, (asp)->cfg.name, ## args)
474 #define LOGPAS(as, subsys, level, fmt, args ...) \
475  _LOGSS7((as)->inst, subsys, level, "as-%s: " fmt, (as)->cfg.name, ## args)
476 
477 /***********************************************************************
478  * xUA Servers
479  ***********************************************************************/
480 
482  osmo_prim_cb prim_cb;
483 };
484 
486  struct llist_head list;
488 
489  /* list of ASPs established via this server */
490  struct llist_head asp_list;
491 
492  struct osmo_stream_srv_link *server;
493 
494  struct {
496  struct osmo_ss7_asp_peer local;
498  } cfg;
499 };
500 
501 struct osmo_xua_server *
503  uint16_t local_port);
504 
505 struct osmo_xua_server *
507  uint16_t local_port, const char *local_host);
508 
509 int
511 
512 int
513 osmo_ss7_xua_server_set_local_host(struct osmo_xua_server *xs, const char *local_host);
514 int
515 osmo_ss7_xua_server_set_local_hosts(struct osmo_xua_server *xs, const char **local_hosts, size_t local_host_cnt);
516 int osmo_ss7_xua_server_add_local_host(struct osmo_xua_server *xs, const char *local_host);
518 
519 struct osmo_sccp_instance *
520 osmo_sccp_simple_client(void *ctx, const char *name, uint32_t default_pc,
521  enum osmo_ss7_asp_protocol prot, int default_local_port,
522  const char *default_local_ip, int default_remote_port,
523  const char *default_remote_ip);
524 
525 struct osmo_sccp_instance *
526 osmo_sccp_simple_client_on_ss7_id(void *ctx, uint32_t ss7_id, const char *name,
527  uint32_t default_pc,
528  enum osmo_ss7_asp_protocol prot,
529  int default_local_port,
530  const char *default_local_ip,
531  int default_remote_port,
532  const char *default_remote_ip);
533 
534 struct osmo_sccp_instance *
535 osmo_sccp_simple_server(void *ctx, uint32_t pc,
536  enum osmo_ss7_asp_protocol prot, int local_port,
537  const char *local_ip);
538 
539 struct osmo_sccp_instance *
540 osmo_sccp_simple_server_on_ss7_id(void *ctx, uint32_t ss7_id, uint32_t pc,
541  enum osmo_ss7_asp_protocol prot,
542  int local_port, const char *local_ip);
543 
544 struct osmo_sccp_instance *
546  enum osmo_ss7_asp_protocol prot,
547  const char *name, uint32_t pc,
548  int local_port, int remote_port,
549  const char *remote_ip);
550 
553 
554 /* VTY related */
555 struct vty;
556 void osmo_ss7_vty_init_asp(void *ctx);
557 void osmo_ss7_vty_init_sg(void *ctx);
558 int osmo_ss7_vty_go_parent(struct vty *vty);
559 int osmo_ss7_is_config_node(struct vty *vty, int node);
osmo_ss7_user::prim_cb
osmo_prim_cb prim_cb
Definition: osmo_ss7.h:130
osmo_ss7_instance_find
struct osmo_ss7_instance * osmo_ss7_instance_find(uint32_t id)
Find a SS7 Instance with given ID.
Definition: osmo_ss7.c:342
osmo_ss7_link_destroy
void osmo_ss7_link_destroy(struct osmo_ss7_link *link)
Destryo SS7 Link.
Definition: osmo_ss7.c:610
osmo_sccp_instance
Definition: sccp_internal.h:42
osmo_ss7_instance::network_indicator
uint8_t network_indicator
Definition: osmo_ss7.h:100
osmo_sccp_simple_client
struct osmo_sccp_instance * osmo_sccp_simple_client(void *ctx, const char *name, uint32_t default_pc, enum osmo_ss7_asp_protocol prot, int default_local_port, const char *default_local_ip, int default_remote_port, const char *default_remote_ip)
request an sccp client instance
Definition: sccp_user.c:673
osmo_ss7_instances
struct llist_head osmo_ss7_instances
osmo_ss7_instance::list
struct llist_head list
member of global list of instances
Definition: osmo_ss7.h:74
osmo_ss7_linkset::links
struct osmo_ss7_link * links[16]
array of osmo_ss7_link
Definition: osmo_ss7.h:186
osmo_ss7_vty_go_parent
int osmo_ss7_vty_go_parent(struct vty *vty)
Definition: osmo_ss7_vty.c:1887
osmo_ss7_asp::proto
enum osmo_ss7_asp_protocol proto
Definition: osmo_ss7.h:420
osmo_ss7_route::as
struct osmo_ss7_as * as
pointer to Application Server
Definition: osmo_ss7.h:217
osmo_ss7_route_table::inst
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: osmo_ss7.h:49
osmo_ss7_as
Definition: osmo_ss7.h:298
osmo_ss7_asp_peer_set_hosts
int osmo_ss7_asp_peer_set_hosts(struct osmo_ss7_asp_peer *peer, void *talloc_ctx, const char *const *hosts, size_t host_cnt)
Set (copy) addresses for a given ASP peer.
Definition: osmo_ss7.c:1130
osmo_ss7_instance::cfg
struct osmo_ss7_instance::@20 cfg
osmo_ss7_as_traffic_mode
osmo_ss7_as_traffic_mode
Definition: osmo_ss7.h:259
osmo_ss7_as::simple_client_allocated
bool simple_client_allocated
Were we allocated by "simple client" support?
Definition: osmo_ss7.h:310
OSMO_SS7_ASP_PROT_IPA
@ OSMO_SS7_ASP_PROT_IPA
Definition: osmo_ss7.h:279
osmo_ss7_asp_peer::port
uint16_t port
Definition: osmo_ss7.h:364
osmo_ss7_asp_peer
Definition: osmo_ss7.h:359
osmo_ss7_as::fi
struct osmo_fsm_inst * fi
AS FSM.
Definition: osmo_ss7.h:304
osmo_ss7_xua_server_bind
int osmo_ss7_xua_server_bind(struct osmo_xua_server *xs)
Set the xUA server to bind/listen to the currently configured ip/port.
Definition: osmo_ss7.c:2098
osmo_ss7_route::list
struct llist_head list
member in osmo_ss7_route_table::routes
Definition: osmo_ss7.h:209
osmo_ss7_route::priority
uint32_t priority
lower priority is higher
Definition: osmo_ss7.h:227
osmo_ss7_routing_key::l_rk_id
uint32_t l_rk_id
Definition: osmo_ss7.h:253
OSMO_SS7_ASP_ROLE_IPSP
@ OSMO_SS7_ASP_ROLE_IPSP
Definition: osmo_ss7.h:377
osmo_ss7_route_create
struct osmo_ss7_route * osmo_ss7_route_create(struct osmo_ss7_route_table *rtbl, uint32_t dpc, uint32_t mask, const char *linkset_name)
Create a new route in the given routing table.
Definition: osmo_ss7.c:771
osmo_ss7_route_print
const char * osmo_ss7_route_print(const struct osmo_ss7_route *rt)
Definition: osmo_ss7.c:843
osmo_ss7_instance::linksets
struct llist_head linksets
list of osmo_ss7_linkset
Definition: osmo_ss7.h:76
osmo_ss7_instance_set_pc_fmt
int osmo_ss7_instance_set_pc_fmt(struct osmo_ss7_instance *inst, uint8_t c0, uint8_t c1, uint8_t c2)
Set the point code format used in given SS7 instance.
Definition: osmo_ss7.c:423
osmo_ss7_asp_admin_state
osmo_ss7_asp_admin_state
Definition: osmo_ss7.h:365
osmo_ss7_routing_key
Definition: osmo_ss7.h:249
osmo_ss7_linkset
Definition: osmo_ss7.h:179
osmo_ss7_user_unregister
int osmo_ss7_user_unregister(struct osmo_ss7_instance *inst, uint8_t service_ind, struct osmo_ss7_user *user)
Unregister a MTP user for a given service indicator.
Definition: osmo_ss7.c:485
osmo_ss7_instance::primary_pc
uint32_t primary_pc
Definition: osmo_ss7.h:97
dpc
uint32_t dpc
Definition: m3ua.h:1
osmo_ss7_asp::simple_client_allocated
bool simple_client_allocated
Were we allocated by "simple client" support?
Definition: osmo_ss7.h:412
OSMO_SS7_ASP_PROT_M3UA
@ OSMO_SS7_ASP_PROT_M3UA
Definition: osmo_ss7.h:278
osmo_ss7_pc_width
uint8_t osmo_ss7_pc_width(const struct osmo_ss7_pc_fmt *pc_fmt)
Definition: osmo_ss7.c:194
osmo_ss7_pointcode_print_buf
const char * osmo_ss7_pointcode_print_buf(char *buf, size_t buf_len, const struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:263
osmo_ss7_asp_destroy
void osmo_ss7_asp_destroy(struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:1402
osmo_ss7_pointcode_print2
const char * osmo_ss7_pointcode_print2(const struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:295
osmo_ss7_as_find_by_proto
struct osmo_ss7_as * osmo_ss7_as_find_by_proto(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto)
Find Application Server (AS) by given protocol.
Definition: osmo_ss7.c:920
osmo_xua_server::proto
enum osmo_ss7_asp_protocol proto
Definition: osmo_ss7.h:497
osmo_ss7_vty_init_sg
void osmo_ss7_vty_init_sg(void *ctx)
Definition: osmo_ss7_vty.c:2078
osmo_ss7_asp::lm_priv
void * lm_priv
Definition: osmo_ss7.h:406
osmo_ss7_as::rkm_dyn_allocated
bool rkm_dyn_allocated
Were we dynamically allocated by RKM?
Definition: osmo_ss7.h:307
osmo_ss7_xua_server_set_local_hosts
int osmo_ss7_xua_server_set_local_hosts(struct osmo_xua_server *xs, const char **local_hosts, size_t local_host_cnt)
Definition: osmo_ss7.c:2121
osmo_xua_server::server
struct osmo_stream_srv_link * server
Definition: osmo_ss7.h:492
osmo_ss7_asp_restart
int osmo_ss7_asp_restart(struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:1438
osmo_xua_server::inst
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:487
osmo_ss7_user::priv
void * priv
Definition: osmo_ss7.h:132
osmo_ss7_linkset::list
struct llist_head list
Definition: osmo_ss7.h:182
osmo_ss7_routing_key::pc
uint32_t pc
Definition: osmo_ss7.h:255
osmo_ss7_as::mode
enum osmo_ss7_as_traffic_mode mode
Definition: osmo_ss7.h:317
osmo_xua_server
Definition: osmo_ss7.h:485
osmo_ss7_asp::local
struct osmo_ss7_asp_peer local
Definition: osmo_ss7.h:426
osmo_ss7_route::linkset_name
char * linkset_name
human-specified linkset name
Definition: osmo_ss7.h:225
osmo_ss7_as_traffic_mode_vals
struct value_string osmo_ss7_as_traffic_mode_vals[]
Definition: osmo_ss7.c:69
osmo_ss7_asp_send
int osmo_ss7_asp_send(struct osmo_ss7_asp *asp, struct msgb *msg)
send a fully encoded msgb via a given ASP
Definition: osmo_ss7.c:1974
osmo_ss7_asp::adm_state
enum osmo_ss7_asp_admin_state adm_state
Definition: osmo_ss7.h:421
osmo_ss7_user_mtp_xfer_req
int osmo_ss7_user_mtp_xfer_req(struct osmo_ss7_instance *inst, struct osmo_mtp_prim *omp)
Definition: osmo_ss7_hmrt.c:284
osmo_ss7_register_rx_unknown_cb
void osmo_ss7_register_rx_unknown_cb(osmo_ss7_asp_rx_unknown_cb *cb)
Register a call-back function for unknown SCTP PPID / IPA Stream ID.
Definition: osmo_ss7.c:2282
OSMO_SS7_LS_SHUTDOWN
@ OSMO_SS7_LS_SHUTDOWN
Definition: osmo_ss7.h:152
osmo_ss7_as_add_asp
int osmo_ss7_as_add_asp(struct osmo_ss7_as *as, const char *asp_name)
Add given ASP to given AS.
Definition: osmo_ss7.c:988
osmo_ss7_asp_peer_snprintf
int osmo_ss7_asp_peer_snprintf(char *buf, size_t buf_len, struct osmo_ss7_asp_peer *peer)
Definition: osmo_ss7.c:1093
osmo_ss7_asp::inst
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:385
osmo_ss7_instance::permit_dyn_rkm_alloc
bool permit_dyn_rkm_alloc
Definition: osmo_ss7.h:102
osmo_ss7_asp_protocol
osmo_ss7_asp_protocol
Definition: osmo_ss7.h:275
osmo_ss7_as_tmode_compatible_xua
bool osmo_ss7_as_tmode_compatible_xua(struct osmo_ss7_as *as, uint32_t m3ua_tmt)
Definition: osmo_ss7.c:2223
osmo_ss7_as::cfg
struct osmo_ss7_as::@25 cfg
OSMO_SS7_ASP_ROLE_SG
@ OSMO_SS7_ASP_ROLE_SG
Definition: osmo_ss7.h:376
osmo_ss7_route_name
const char * osmo_ss7_route_name(struct osmo_ss7_route *rt, bool list_asps)
Return human readable representation of the route, in a static buffer.
Definition: osmo_ss7_hmrt.c:149
osmo_ss7_route::dest
struct osmo_ss7_route::@23 dest
osmo_ss7_xua_server_find
struct osmo_xua_server * osmo_ss7_xua_server_find(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto, uint16_t local_port)
Definition: osmo_ss7.c:2031
OSMO_SS7_PATCH_NONE
@ OSMO_SS7_PATCH_NONE
Definition: osmo_ss7.h:294
osmo_ss7_asp_role_names
const struct value_string osmo_ss7_asp_role_names[]
Definition: osmo_ss7.c:85
osmo_ss7_route_table::description
char * description
Definition: osmo_ss7.h:55
osmo_ss7_instance
Definition: osmo_ss7.h:72
osmo_sccp_simple_client_on_ss7_id
struct osmo_sccp_instance * osmo_sccp_simple_client_on_ss7_id(void *ctx, uint32_t ss7_id, const char *name, uint32_t default_pc, enum osmo_ss7_asp_protocol prot, int default_local_port, const char *default_local_ip, int default_remote_port, const char *default_remote_ip)
request an sccp client instance
Definition: sccp_user.c:485
osmo_ss7_asp::siblings
struct llist_head siblings
Definition: osmo_ss7.h:392
osmo_ss7_as::asps
struct osmo_ss7_asp * asps[16]
Definition: osmo_ss7.h:329
osmo_ss7_asp::pending_msg
struct msgb * pending_msg
Pending message for non-blocking IPA read.
Definition: osmo_ss7.h:415
osmo_ss7_linkset::name
char * name
Definition: osmo_ss7.h:189
osmo_ss7_pointcode_print
const char * osmo_ss7_pointcode_print(const struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:287
osmo_ss7_asp::client
struct osmo_stream_cli * client
osmo_stream / libosmo-netif handles
Definition: osmo_ss7.h:395
osmo_ss7_pc_fmt::delimiter
char delimiter
Definition: osmo_ss7.h:70
osmo_ss7_tmode_from_xua
enum osmo_ss7_as_traffic_mode osmo_ss7_tmode_from_xua(uint32_t in)
Definition: osmo_ss7.c:2209
osmo_sccp_simple_server
struct osmo_sccp_instance * osmo_sccp_simple_server(void *ctx, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip)
Definition: sccp_user.c:735
osmo_ss7_asp_protocol_name
static const char * osmo_ss7_asp_protocol_name(enum osmo_ss7_asp_protocol mode)
Definition: osmo_ss7.h:286
osmo_ss7_asp_find
struct osmo_ss7_asp * osmo_ss7_asp_find(struct osmo_ss7_instance *inst, const char *name, uint16_t remote_port, uint16_t local_port, enum osmo_ss7_asp_protocol proto)
Definition: osmo_ss7.c:1352
osmo_ss7_route::mask
uint32_t mask
Definition: osmo_ss7.h:223
osmo_ss7_as::mode_set_by_vty
bool mode_set_by_vty
Definition: osmo_ss7.h:319
osmo_ss7_pc_fmt::component_len
uint8_t component_len[3]
Definition: osmo_ss7.h:71
osmo_xua_server::cfg
struct osmo_xua_server::@28 cfg
osmo_ss7_asp::lm
const struct osmo_xua_layer_manager * lm
Definition: osmo_ss7.h:405
osmo_ss7_as_has_asp
bool osmo_ss7_as_has_asp(const struct osmo_ss7_as *as, const struct osmo_ss7_asp *asp)
Determine if given AS contains ASP.
Definition: osmo_ss7.c:1066
osmo_ss7_linkset_destroy
void osmo_ss7_linkset_destroy(struct osmo_ss7_linkset *lset)
Destroy a SS7 Linkset.
Definition: osmo_ss7.c:536
osmo_ss7_instance::sccp
struct osmo_sccp_instance * sccp
Definition: osmo_ss7.h:91
osmo_ss7_as_find_by_name
struct osmo_ss7_as * osmo_ss7_as_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Find Application Server by given name.
Definition: osmo_ss7.c:868
OSMO_SS7_PATCH_BOTH
@ OSMO_SS7_PATCH_BOTH
Definition: osmo_ss7.h:295
osmo_ss7_instance::pc_fmt
struct osmo_ss7_pc_fmt pc_fmt
Definition: osmo_ss7.h:101
osmo_ss7_as_find_or_create
struct osmo_ss7_as * osmo_ss7_as_find_or_create(struct osmo_ss7_instance *inst, const char *name, enum osmo_ss7_asp_protocol proto)
Find or Create Application Server.
Definition: osmo_ss7.c:955
osmo_ss7_user::inst
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:126
osmo_ss7_linkset::description
char * description
Definition: osmo_ss7.h:190
osmo_ss7_instance::name
char * name
Definition: osmo_ss7.h:95
osmo_ss7_xua_server_add_local_host
int osmo_ss7_xua_server_add_local_host(struct osmo_xua_server *xs, const char *local_host)
Definition: osmo_ss7.c:2133
osmo_ss7_asp::name
char * name
Definition: osmo_ss7.h:418
_NUM_OSMO_SS7_ASP_TMOD
@ _NUM_OSMO_SS7_ASP_TMOD
Definition: osmo_ss7.h:264
osmo_ss7_as::pc_override
struct osmo_ss7_as::@25::@26 pc_override
osmo_ss7_as::name
char * name
Definition: osmo_ss7.h:313
osmo_ss7_pointcode_parse_mask_or_len
int osmo_ss7_pointcode_parse_mask_or_len(struct osmo_ss7_instance *inst, const char *in)
Definition: osmo_ss7.c:301
osmo_ss7_link_find_or_create
struct osmo_ss7_link * osmo_ss7_link_find_or_create(struct osmo_ss7_linkset *lset, uint32_t id)
Find or create SS7 Link with given ID in given Linkset.
Definition: osmo_ss7.c:627
osmo_ss7_route_table::name
char * name
Definition: osmo_ss7.h:54
osmo_ss7_as_find_by_l_rk_id
struct osmo_ss7_as * osmo_ss7_as_find_by_l_rk_id(struct osmo_ss7_instance *inst, uint32_t l_rk_id)
Find Application Server by given local routing key ID.
Definition: osmo_ss7.c:902
osmo_ss7_pointcode_parse
int osmo_ss7_pointcode_parse(struct osmo_ss7_instance *inst, const char *str)
Definition: osmo_ss7.c:229
osmo_ss7_linkset::inst
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: osmo_ss7.h:184
osmo_ss7_as::description
char * description
Definition: osmo_ss7.h:314
osmo_ss7_as::last_asp_idx_sent
uint8_t last_asp_idx_sent
Definition: osmo_ss7.h:330
osmo_xua_layer_manager
Definition: osmo_ss7.h:481
osmo_ss7_instance::description
char * description
Definition: osmo_ss7.h:96
_NUM_OSMO_SS7_ASP_PROT
@ _NUM_OSMO_SS7_ASP_PROT
Definition: osmo_ss7.h:280
osmo_ss7_route_destroy
void osmo_ss7_route_destroy(struct osmo_ss7_route *rt)
Destroy a given SS7 route.
Definition: osmo_ss7.c:810
osmo_xua_layer_manager::prim_cb
osmo_prim_cb prim_cb
Definition: osmo_ss7.h:484
osmo_ss7_asp::role
enum osmo_ss7_asp_role role
Definition: osmo_ss7.h:423
osmo_ss7_asp_rx_unknown_cb
int osmo_ss7_asp_rx_unknown_cb(struct osmo_ss7_asp *asp, int ppid_mux, struct msgb *msg)
Weak function to handle payload for unknown/unsupported PPID or IPA StreamID.
Definition: osmo_ss7.h:464
osmo_ss7_user
Definition: osmo_ss7.h:122
osmo_ss7_xua_server_set_local_host
int osmo_ss7_xua_server_set_local_host(struct osmo_xua_server *xs, const char *local_host)
Definition: osmo_ss7.c:2115
osmo_ss7_route_table::routes
struct llist_head routes
list of osmo_ss7_route
Definition: osmo_ss7.h:51
osmo_ss7_pc_is_valid
static bool osmo_ss7_pc_is_valid(uint32_t pc)
Definition: osmo_ss7.h:34
osmo_ss7_asp::fi
struct osmo_fsm_inst * fi
ASP FSM.
Definition: osmo_ss7.h:388
OSMO_SS7_ASP_ADM_S_BLOCKED
@ OSMO_SS7_ASP_ADM_S_BLOCKED
SCP association, but reject ASP-ACTIVE.
Definition: osmo_ss7.h:369
osmo_ss7_as::sccp_mode
enum osmo_ss7_as_patch_sccp_mode sccp_mode
Definition: osmo_ss7.h:326
osmo_ss7_routing_key::si
uint8_t si
Definition: osmo_ss7.h:256
osmo_ss7_instance::asp_list
struct llist_head asp_list
list of osmo_ss7_asp
Definition: osmo_ss7.h:80
osmo_ss7_route_find_dpc
struct osmo_ss7_route * osmo_ss7_route_find_dpc(struct osmo_ss7_route_table *rtbl, uint32_t dpc)
Find a SS7 route for given destination point code in given table.
Definition: osmo_ss7.c:700
osmo_ss7_instance::rtable_system
struct osmo_ss7_route_table * rtable_system
Definition: osmo_ss7.h:89
osmo_ss7_asp::description
char * description
Definition: osmo_ss7.h:419
osmo_ss7_xua_server_destroy
void osmo_ss7_xua_server_destroy(struct osmo_xua_server *xs)
Definition: osmo_ss7.c:2143
osmo_ss7_vty_init_asp
void osmo_ss7_vty_init_asp(void *ctx)
Definition: osmo_ss7_vty.c:2072
osmo_ss7_asp_find_by_name
struct osmo_ss7_asp * osmo_ss7_asp_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7.c:1195
osmo_ss7_link_adm_state
osmo_ss7_link_adm_state
Definition: osmo_ss7.h:149
osmo_ss7_as::recovery_timeout_msec
uint32_t recovery_timeout_msec
Definition: osmo_ss7.h:322
osmo_ss7_instance::user
const struct osmo_ss7_user * user[16]
Definition: osmo_ss7.h:87
osmo_ss7_as_patch_sccp_mode
osmo_ss7_as_patch_sccp_mode
Definition: osmo_ss7.h:293
OSMO_SS7_ASP_ADM_S_ENABLED
@ OSMO_SS7_ASP_ADM_S_ENABLED
in normal operation
Definition: osmo_ss7.h:371
osmo_ss7_instance::as_list
struct llist_head as_list
list of osmo_ss7_as
Definition: osmo_ss7.h:78
osmo_ss7_asp::asp_id
uint32_t asp_id
Definition: osmo_ss7.h:401
osmo_ss7_instance_find_or_create
struct osmo_ss7_instance * osmo_ss7_instance_find_or_create(void *ctx, uint32_t id)
Find or create a SS7 Instance.
Definition: osmo_ss7.c:359
osmo_ss7_route_table_find
struct osmo_ss7_route_table * osmo_ss7_route_table_find(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7.c:657
osmo_ss7_route_lookup
struct osmo_ss7_route * osmo_ss7_route_lookup(struct osmo_ss7_instance *inst, uint32_t dpc)
Find a SS7 route for given destination point code in given SS7.
Definition: osmo_ss7.c:735
osmo_ss7_asp_peer::host_cnt
size_t host_cnt
Definition: osmo_ss7.h:363
osmo_ss7_asp::xua_server
struct osmo_xua_server * xua_server
osmo_xua_server over which we were established
Definition: osmo_ss7.h:391
osmo_ss7_linkset::cfg
struct osmo_ss7_linkset::@22 cfg
osmo_ss7_as_del_asp
int osmo_ss7_as_del_asp(struct osmo_ss7_as *as, const char *asp_name)
Delete given ASP from given AS.
Definition: osmo_ss7.c:1017
osmo_ss7_asp::is_server
bool is_server
Definition: osmo_ss7.h:422
osmo_ss7_is_config_node
int osmo_ss7_is_config_node(struct vty *vty, int node)
Definition: osmo_ss7_vty.c:1969
osmo_ss7_asp::qos_class
uint8_t qos_class
Definition: osmo_ss7.h:428
osmo_ss7_route_table_find_or_create
struct osmo_ss7_route_table * osmo_ss7_route_table_find_or_create(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7.c:669
_NUM_OSMO_SS7_LS
@ _NUM_OSMO_SS7_LS
Definition: osmo_ss7.h:155
osmo_ss7_tmode_to_xua
int osmo_ss7_tmode_to_xua(enum osmo_ss7_as_traffic_mode tmod)
Definition: osmo_ss7.c:2195
osmo_ss7_asp_peer_add_host
int osmo_ss7_asp_peer_add_host(struct osmo_ss7_asp_peer *peer, void *talloc_ctx, const char *host)
Append (copy) address to a given ASP peer.
Definition: osmo_ss7.c:1163
osmo_ss7_asp::dyn_allocated
bool dyn_allocated
Were we dynamically allocated.
Definition: osmo_ss7.h:409
osmo_xua_server::local
struct osmo_ss7_asp_peer local
Definition: osmo_ss7.h:496
osmo_ss7_user::name
const char * name
Definition: osmo_ss7.h:128
osmo_ss7_xua_server_create
struct osmo_xua_server * osmo_ss7_xua_server_create(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto, uint16_t local_port, const char *local_host)
create a new xUA server configured with given ip/port
Definition: osmo_ss7.c:2053
osmo_ss7_as::mode_set_by_peer
bool mode_set_by_peer
Definition: osmo_ss7.h:321
osmo_ss7_pc_is_local
bool osmo_ss7_pc_is_local(struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:2160
OSMO_SS7_ASP_PROT_SUA
@ OSMO_SS7_ASP_PROT_SUA
Definition: osmo_ss7.h:277
osmo_ss7_as::list
struct llist_head list
entry in 'ref osmo_ss7_instance.as_list
Definition: osmo_ss7.h:300
osmo_ss7_as::proto
enum osmo_ss7_asp_protocol proto
Definition: osmo_ss7.h:315
OSMO_SS7_AS_TMOD_LOADSHARE
@ OSMO_SS7_AS_TMOD_LOADSHARE
Definition: osmo_ss7.h:262
OSMO_SS7_AS_TMOD_BCAST
@ OSMO_SS7_AS_TMOD_BCAST
Definition: osmo_ss7.h:261
osmo_xua_server::asp_list
struct llist_head asp_list
Definition: osmo_ss7.h:490
osmo_ss7_asp_active
bool osmo_ss7_asp_active(const struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:1506
osmo_xua_server::list
struct llist_head list
Definition: osmo_ss7.h:486
osmo_ss7_asp::cfg
struct osmo_ss7_asp::@27 cfg
osmo_ss7_as::routing_key
struct osmo_ss7_routing_key routing_key
Definition: osmo_ss7.h:316
osmo_ss7_as_traffic_mode_name
static const char * osmo_ss7_as_traffic_mode_name(enum osmo_ss7_as_traffic_mode mode)
Definition: osmo_ss7.h:270
OSMO_SS7_ASP_ADM_S_SHUTDOWN
@ OSMO_SS7_ASP_ADM_S_SHUTDOWN
no SCTP association with peer
Definition: osmo_ss7.h:367
osmo_ss7_as_find_by_rctx
struct osmo_ss7_as * osmo_ss7_as_find_by_rctx(struct osmo_ss7_instance *inst, uint32_t rctx)
Find Application Server by given routing context.
Definition: osmo_ss7.c:885
osmo_ss7_route_find_dpc_mask
struct osmo_ss7_route * osmo_ss7_route_find_dpc_mask(struct osmo_ss7_route_table *rtbl, uint32_t dpc, uint32_t mask)
Find a SS7 route for given destination point code + mask in given table.
Definition: osmo_ss7.c:717
OSMO_SS7_LS_ENABLED
@ OSMO_SS7_LS_ENABLED
Definition: osmo_ss7.h:154
osmo_mtp_prim
Definition: mtp_sap.h:56
osmo_sccp_simple_server_add_clnt
struct osmo_sccp_instance * osmo_sccp_simple_server_add_clnt(struct osmo_sccp_instance *inst, enum osmo_ss7_asp_protocol prot, const char *name, uint32_t pc, int local_port, int remote_port, const char *remote_ip)
Definition: sccp_user.c:744
osmo_ss7_linkset::local_pc
uint32_t local_pc
Definition: osmo_ss7.h:192
osmo_ss7_linkset_find_by_name
struct osmo_ss7_linkset * osmo_ss7_linkset_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Find SS7 Linkset by given name.
Definition: osmo_ss7.c:566
osmo_ss7_asp_peer::host
char * host[OSMO_SOCK_MAX_ADDRS]
Definition: osmo_ss7.h:362
osmo_ss7_asp_get_log_subsys
int osmo_ss7_asp_get_log_subsys(const struct osmo_ss7_asp *asp)
Get the logging subsystem for a given ASP.
Definition: osmo_ss7.c:2269
osmo_ss7_route::rtable
struct osmo_ss7_route_table * rtable
osmo_ss7_route_table to which we belong
Definition: osmo_ss7.h:211
osmo_ss7_route::pc
uint32_t pc
Definition: osmo_ss7.h:222
osmo_xua_server::accept_dyn_reg
bool accept_dyn_reg
Definition: osmo_ss7.h:495
osmo_ss7_as_active
bool osmo_ss7_as_active(const struct osmo_ss7_as *as)
Determine if given AS is in the active state.
Definition: osmo_ss7.c:1082
OSMO_SS7_LS_INHIBITED
@ OSMO_SS7_LS_INHIBITED
Definition: osmo_ss7.h:153
osmo_ss7_ensure_sccp
struct osmo_sccp_instance * osmo_ss7_ensure_sccp(struct osmo_ss7_instance *inst)
Allocate an SCCP instance, if not present yet.
Definition: osmo_ss7.c:442
osmo_ss7_route
Definition: osmo_ss7.h:205
osmo_ss7_route_table::cfg
struct osmo_ss7_route_table::@19 cfg
osmo_ss7_routing_key::ssn
uint32_t ssn
Definition: osmo_ss7.h:257
osmo_ss7_instance_destroy
void osmo_ss7_instance_destroy(struct osmo_ss7_instance *inst)
Destroy a SS7 Instance.
Definition: osmo_ss7.c:400
osmo_ss7_find_free_rctx
int osmo_ss7_find_free_rctx(struct osmo_ss7_instance *inst)
Definition: osmo_ss7.c:104
osmo_ss7_asp::server
struct osmo_stream_srv * server
Definition: osmo_ss7.h:396
osmo_ss7_route::linkset
struct osmo_ss7_linkset * linkset
pointer to linkset (destination) of route
Definition: osmo_ss7.h:215
osmo_ss7_asp_use_default_lm
int osmo_ss7_asp_use_default_lm(struct osmo_ss7_asp *asp, int log_level)
Definition: xua_default_lm_fsm.c:367
osmo_ss7_asp::sock_name
char * sock_name
pre-formatted human readable local/remote socket name
Definition: osmo_ss7.h:398
osmo_ss7_instance::xua_servers
struct llist_head xua_servers
list of osmo_xua_servers
Definition: osmo_ss7.h:84
osmo_sccp_simple_server_on_ss7_id
struct osmo_sccp_instance * osmo_sccp_simple_server_on_ss7_id(void *ctx, uint32_t ss7_id, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip)
Definition: sccp_user.c:694
OSMO_SS7_AS_TMOD_OVERRIDE
@ OSMO_SS7_AS_TMOD_OVERRIDE
Definition: osmo_ss7.h:260
osmo_ss7_asp
Definition: osmo_ss7.h:382
osmo_ss7_instance::sccp_address_book
struct llist_head sccp_address_book
Definition: osmo_ss7.h:103
OSMO_SS7_ASP_ROLE_ASP
@ OSMO_SS7_ASP_ROLE_ASP
Definition: osmo_ss7.h:375
OSMO_SS7_ASP_PROT_NONE
@ OSMO_SS7_ASP_PROT_NONE
Definition: osmo_ss7.h:276
osmo_ss7_pc_fmt
Definition: osmo_ss7.h:67
osmo_ss7_asp::asp_id_present
bool asp_id_present
Definition: osmo_ss7.h:402
osmo_ss7_as::qos_class
uint8_t qos_class
Definition: osmo_ss7.h:323
osmo_ss7_route_table_destroy
void osmo_ss7_route_table_destroy(struct osmo_ss7_route_table *rtbl)
Definition: osmo_ss7.c:686
OSMO_SS7_AS_TMOD_ROUNDROBIN
@ OSMO_SS7_AS_TMOD_ROUNDROBIN
Definition: osmo_ss7.h:263
osmo_ss7_asp_protocol_vals
struct value_string osmo_ss7_asp_protocol_vals[]
Definition: osmo_ss7.c:77
osmo_ss7_route::cfg
struct osmo_ss7_route::@24 cfg
osmo_ss7_asp_find_or_create
struct osmo_ss7_asp * osmo_ss7_asp_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint16_t remote_port, uint16_t local_port, enum osmo_ss7_asp_protocol proto)
Definition: osmo_ss7.c:1370
osmo_ss7_routing_key::context
uint32_t context
Definition: osmo_ss7.h:252
osmo_ss7_route_table
Definition: osmo_ss7.h:43
osmo_ss7_user_register
int osmo_ss7_user_register(struct osmo_ss7_instance *inst, uint8_t service_ind, struct osmo_ss7_user *user)
Register a MTP user for a given service indicator.
Definition: osmo_ss7.c:461
osmo_ss7_mtp_to_user
int osmo_ss7_mtp_to_user(struct osmo_ss7_instance *inst, struct osmo_mtp_prim *omp)
Definition: osmo_ss7.c:505
osmo_ss7_asp_role
osmo_ss7_asp_role
Definition: osmo_ss7.h:374
osmo_ss7_route::qos_class
uint8_t qos_class
Definition: osmo_ss7.h:228
osmo_ss7_asp::role_set_by_vty
bool role_set_by_vty
Definition: osmo_ss7.h:424
osmo_ss7_as_destroy
void osmo_ss7_as_destroy(struct osmo_ss7_as *as)
Destroy given Application Server.
Definition: osmo_ss7.c:1041
osmo_ss7_asp_protocol_port
int osmo_ss7_asp_protocol_port(enum osmo_ss7_asp_protocol prot)
Definition: osmo_ss7.c:326
osmo_ss7_asp::remote
struct osmo_ss7_asp_peer remote
Definition: osmo_ss7.h:427
osmo_ss7_asp::list
struct llist_head list
entry in osmo_ss7_instance::asp_list
Definition: osmo_ss7.h:384
osmo_ss7_as::dpc
uint32_t dpc
Definition: osmo_ss7.h:325
osmo_ss7_as::inst
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:301
osmo_ss7_route_table::list
struct llist_head list
member in list of routing tables
Definition: osmo_ss7.h:47
osmo_ss7_asp_disconnect
void osmo_ss7_asp_disconnect(struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:2017
osmo_ss7_linkset::adjacent_pc
uint32_t adjacent_pc
Definition: osmo_ss7.h:191
osmo_ss7_instance::id
uint32_t id
Definition: osmo_ss7.h:94
osmo_ss7_instance::rtable_list
struct llist_head rtable_list
list of osmo_ss7_route_table
Definition: osmo_ss7.h:82
osmo_ss7_linkset_find_or_create
struct osmo_ss7_linkset * osmo_ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc)
Find or allocate SS7 Linkset.
Definition: osmo_ss7.c:583
osmo_ss7_init
int osmo_ss7_init(void)
Definition: osmo_ss7.c:2169
osmo_ss7_asp_find_by_proto
struct osmo_ss7_asp * osmo_ss7_asp_find_by_proto(struct osmo_ss7_as *as, enum osmo_ss7_asp_protocol proto)
Find an ASP that matches the given protocol.
Definition: osmo_ss7.c:1338