pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/39148?usp=email )
Change subject: ipaccess: Set name on oml and rsl stream listen socket ......................................................................
ipaccess: Set name on oml and rsl stream listen socket
Change-Id: I0b96605aa5012ee3eafa405172ac06cb1c7e7c33 --- M src/input/ipaccess.c 1 file changed, 5 insertions(+), 0 deletions(-)
Approvals: daniel: Looks good to me, approved Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 5cb1123..6a7d753 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -948,6 +948,7 @@ { int ret = -ENOENT; struct ipaccess_line *il; + char conn_name[128];
if (!line->driver_data) line->driver_data = talloc_zero(line, struct ipaccess_line); @@ -971,6 +972,8 @@
oml_link = osmo_stream_srv_link_create(tall_ipa_ctx); OSMO_ASSERT(oml_link); + snprintf(conn_name, sizeof(conn_name), "ts-%u-oml", line->num); + osmo_stream_srv_link_set_name(oml_link, conn_name); osmo_stream_srv_link_set_proto(oml_link, IPPROTO_TCP); osmo_stream_srv_link_set_addr(oml_link, ipa); osmo_stream_srv_link_set_port(oml_link, IPA_TCP_PORT_OML); @@ -989,6 +992,8 @@
rsl_link = osmo_stream_srv_link_create(tall_ipa_ctx); OSMO_ASSERT(rsl_link); + snprintf(conn_name, sizeof(conn_name), "ts-%u-rsl", line->num); + osmo_stream_srv_link_set_name(rsl_link, conn_name); osmo_stream_srv_link_set_proto(rsl_link, IPPROTO_TCP); osmo_stream_srv_link_set_addr(rsl_link, ipa); osmo_stream_srv_link_set_port(rsl_link, IPA_TCP_PORT_RSL);