aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-09 15:44:40 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-19 05:50:13 +0000
commitc3824bca16e27051b455b4532a04b21e3ee8d2b4 (patch)
tree9d1345bbdf49f01ee51ff6c196222824240db590
parent8d0343872ecd53e9a9e31984d6588c06e076cb8e (diff)
Log ip:port for created SS7 server
-rw-r--r--src/osmo_ss7.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 73f8127..6fb8180 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
-
+#include <inttypes.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/sctp.h>
@@ -1829,6 +1829,9 @@ osmo_ss7_xua_server_create(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_pro
osmo_stream_srv_link_set_port(oxs->server, oxs->cfg.local.port);
osmo_stream_srv_link_set_proto(oxs->server, asp_proto_to_ip_proto(proto));
+ LOGP(DLSS7, LOGL_INFO, "Created %s server on %s:%" PRIu16 "\n",
+ get_value_string(osmo_ss7_asp_protocol_vals, proto), local_host, local_port);
+
oxs->inst = inst;
llist_add_tail(&oxs->list, &inst->xua_servers);