diff options
Diffstat (limited to 'include/osmocom/sigtran/osmo_ss7.h')
-rw-r--r-- | include/osmocom/sigtran/osmo_ss7.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h index 9e8f2b3..12aeea4 100644 --- a/include/osmocom/sigtran/osmo_ss7.h +++ b/include/osmocom/sigtran/osmo_ss7.h @@ -8,6 +8,7 @@ #include <osmocom/core/fsm.h> #include <osmocom/core/msgb.h> #include <osmocom/core/prim.h> +#include <osmocom/core/socket.h> extern struct llist_head osmo_ss7_instances; @@ -348,7 +349,8 @@ void osmo_ss7_asp_disconnect(struct osmo_ss7_asp *asp); ***********************************************************************/ struct osmo_ss7_asp_peer { - char *host; + char *host[OSMO_SOCK_MAX_ADDRS]; + size_t host_cnt; uint16_t port; }; @@ -409,6 +411,8 @@ struct osmo_ss7_asp { } cfg; }; +int osmo_ss7_asp_peer_snprintf(char* buf, size_t buf_len, struct osmo_ss7_asp_peer *peer); + struct osmo_ss7_asp * osmo_ss7_asp_find_by_name(struct osmo_ss7_instance *inst, const char *name); struct osmo_ss7_asp @@ -480,7 +484,9 @@ osmo_ss7_xua_server_bind(struct osmo_xua_server *xs); int osmo_ss7_xua_server_set_local_host(struct osmo_xua_server *xs, const char *local_host); - +int +osmo_ss7_xua_server_set_local_hosts(struct osmo_xua_server *xs, const char **local_hosts, size_t local_host_cnt); +int osmo_ss7_xua_server_add_local_host(struct osmo_xua_server *xs, const char *local_host); void osmo_ss7_xua_server_destroy(struct osmo_xua_server *xs); struct osmo_sccp_instance * |