diff options
author | Max <msuraev@sysmocom.de> | 2016-12-30 15:10:47 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-12-31 18:41:39 +0000 |
commit | 4c4a1c2035cd884d300fc0a04cb9995b16eade62 (patch) | |
tree | 76bb612a038401ed1e0819da3df6f53add9ab558 | |
parent | efb43c012ba95fc9373704ade7b583dffb46b621 (diff) |
ipaccess_line_update(): log connection IP addresses and ports
Remove dup: call function to obtain IPA address only once. Log
explicitly IP address and ports to which IPA is bound or connected.
Change-Id: I841c40abdcba0fdd695a43231391c5d7cee20fae
-rw-r--r-- | src/input/ipaccess.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 35465e3..675f07a 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -839,11 +839,13 @@ static int ipaccess_line_update(struct e1inp_line *line) switch(line->ops->cfg.ipa.role) { case E1INP_LINE_R_BSC: { struct ipa_server_link *oml_link, *rsl_link; + const char *ipa = e1inp_ipa_get_bind_addr(); - LOGP(DLINP, LOGL_NOTICE, "enabling ipaccess BSC mode\n"); + LOGP(DLINP, LOGL_NOTICE, "enabling ipaccess BSC mode on %s " + "with OML %u and RSL %u TCP ports\n", ipa, + IPA_TCP_PORT_OML, IPA_TCP_PORT_RSL); - oml_link = ipa_server_link_create(tall_ipa_ctx, line, - e1inp_ipa_get_bind_addr(), + oml_link = ipa_server_link_create(tall_ipa_ctx, line, ipa, IPA_TCP_PORT_OML, ipaccess_bsc_oml_cb, NULL); if (oml_link == NULL) { @@ -857,8 +859,7 @@ static int ipaccess_line_update(struct e1inp_line *line) ipa_server_link_destroy(oml_link); return -EIO; } - rsl_link = ipa_server_link_create(tall_ipa_ctx, line, - e1inp_ipa_get_bind_addr(), + rsl_link = ipa_server_link_create(tall_ipa_ctx, line, ipa, IPA_TCP_PORT_RSL, ipaccess_bsc_rsl_cb, NULL); if (rsl_link == NULL) { @@ -878,7 +879,9 @@ static int ipaccess_line_update(struct e1inp_line *line) case E1INP_LINE_R_BTS: { struct ipa_client_conn *link; - LOGP(DLINP, LOGL_NOTICE, "enabling ipaccess BTS mode\n"); + LOGP(DLINP, LOGL_NOTICE, "enabling ipaccess BTS mode, " + "OML connecting to %s:%u\n", line->ops->cfg.ipa.addr, + IPA_TCP_PORT_OML); link = ipa_client_conn_create(tall_ipa_ctx, &line->ts[E1INP_SIGN_OML-1], |