libosmo-sigtran 2.2.1.66-7174.202603301800
Osmocom SIGTRAN library
Loading...
Searching...
No Matches
ss7_xua_srv.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <unistd.h>
5#include <osmocom/core/defs.h>
6#include <osmocom/core/linuxlist.h>
7#include <osmocom/core/prim.h>
8#include <osmocom/netif/stream.h>
9
11
12/***********************************************************************
13 * xUA Servers
14 ***********************************************************************/
15
17
19 struct llist_head list;
21
22 /* list of ASPs established via this server */
23 struct llist_head asp_list;
24
25 struct osmo_stream_srv_link *server;
26
27 struct {
29 struct osmo_ss7_asp_peer local;
31 struct {
36 } sctp_init;
37
40 } cfg;
41};
42
43struct osmo_xua_server *
46 uint16_t local_port)
47 OSMO_DEPRECATED("Use ss7_xua_server_find2() instead");
48struct osmo_xua_server *
50 int trans_proto,
52 uint16_t local_port);
53
54struct osmo_xua_server *
57 uint16_t local_port, const char *local_host)
58 OSMO_DEPRECATED("Use ss7_xua_server_create2() instead");
59struct osmo_xua_server *
62 uint16_t local_port, const char *local_host);
63
64int
66
67int
68ss7_xua_server_set_local_host(struct osmo_xua_server *xs, const char *local_host);
69int
70ss7_xua_server_set_local_hosts(struct osmo_xua_server *xs, const char **local_hosts, size_t local_host_cnt);
71int ss7_xua_server_add_local_host(struct osmo_xua_server *xs, const char *local_host);
72int ss7_xua_server_del_local_host(struct osmo_xua_server *xs, const char *local_host);
74
osmo_ss7_asp_protocol
Definition osmo_ss7.h:157
int ss7_xua_server_add_local_host(struct osmo_xua_server *xs, const char *local_host)
Definition ss7_xua_srv.c:368
int ss7_xua_server_set_local_hosts(struct osmo_xua_server *xs, const char **local_hosts, size_t local_host_cnt)
Definition ss7_xua_srv.c:356
struct osmo_xua_server * ss7_xua_server_create2(struct osmo_ss7_instance *inst, int trans_proto, 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 ss7_xua_srv.c:230
int ss7_xua_server_bind(struct osmo_xua_server *xs)
Set the xUA server to bind/listen to the currently configured ip/port.
Definition ss7_xua_srv.c:326
int ss7_xua_server_del_local_host(struct osmo_xua_server *xs, const char *local_host)
Definition ss7_xua_srv.c:379
bool ss7_xua_server_set_default_local_hosts(struct osmo_xua_server *oxs)
Definition ss7_xua_srv.c:389
struct osmo_xua_server * ss7_xua_server_find(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto, uint16_t local_port) OSMO_DEPRECATED("Use ss7_xua_server_find2() instead")
find an xUA server with the given parameters
Definition ss7_xua_srv.c:458
struct osmo_xua_server * ss7_xua_server_create(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto, uint16_t local_port, const char *local_host) OSMO_DEPRECATED("Use ss7_xua_server_create2() instead")
create a new xUA server configured with given ip/port
Definition ss7_xua_srv.c:289
void ss7_xua_server_destroy(struct osmo_xua_server *xs)
Definition ss7_xua_srv.c:403
int ss7_xua_server_set_local_host(struct osmo_xua_server *xs, const char *local_host)
Definition ss7_xua_srv.c:350
struct osmo_xua_server * ss7_xua_server_find2(struct osmo_ss7_instance *inst, int trans_proto, enum osmo_ss7_asp_protocol proto, uint16_t local_port)
find an xUA server with the given parameters
Definition ss7_xua_srv.c:430
Definition ss7_asp_peer.h:11
Definition ss7_instance.h:47
Definition ss7_xua_srv.h:18
struct osmo_stream_srv_link * server
Definition ss7_xua_srv.h:25
uint16_t max_instreams_value
Definition ss7_xua_srv.h:35
enum osmo_ss7_asp_protocol proto
Definition ss7_xua_srv.h:30
bool num_ostreams_present
Definition ss7_xua_srv.h:32
struct osmo_ss7_instance * inst
Definition ss7_xua_srv.h:20
struct llist_head asp_list
Definition ss7_xua_srv.h:23
bool accept_dyn_reg
Definition ss7_xua_srv.h:28
uint16_t num_ostreams_value
Definition ss7_xua_srv.h:34
struct osmo_xua_server::@38 cfg
struct llist_head list
Definition ss7_xua_srv.h:19
bool max_instreams_present
Definition ss7_xua_srv.h:33
int trans_proto
The underlaying transport protocol (one of IPPROTO_*)
Definition ss7_xua_srv.h:39