aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-03-04 22:37:59 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-03-08 05:10:48 +0100
commit39d7b5c646652d6ad075debf02f8a91a68a158be (patch)
tree7e55620cb572be6ef2bdc8a0103dde25f7e00656 /src
parentf8d5f37c206c7a89c56c3259dc0d83399044f87a (diff)
osmo-hnbgw: logging tweaks
Log about: - sending RESET messages to CN; - accepting a new hNodeB peer on HNBAP. Change-Id: I317831dbc6c463e4d4dcde9e6716431e026c4398
Diffstat (limited to 'src')
-rw-r--r--src/hnbgw_cn.c5
-rw-r--r--src/hnbgw_hnbap.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/hnbgw_cn.c b/src/hnbgw_cn.c
index ede00c8..875a0d0 100644
--- a/src/hnbgw_cn.c
+++ b/src/hnbgw_cn.c
@@ -34,6 +34,7 @@
#include <osmocom/ranap/ranap_ies_defs.h>
#include <osmocom/ranap/ranap_msg_factory.h>
#include <osmocom/iuh/context_map.h>
+#include <osmocom/hnbap/CN-DomainIndicator.h>
/***********************************************************************
* Outbound RANAP RESET to CN
@@ -50,6 +51,10 @@ static int transmit_rst(struct hnb_gw *gw, RANAP_CN_DomainIndicator_t domain,
.choice. transmissionNetwork = RANAP_CauseTransmissionNetwork_signalling_transport_resource_failure,
};
+ LOGP(DRANAP, LOGL_NOTICE, "Tx RESET to %s %s\n",
+ domain == CN_DomainIndicator_cs_domain ? "IuCS" : "IuPS",
+ osmo_sccp_inst_addr_name(gw->sccp.cnlink->sccp, remote_addr));
+
msg = ranap_new_msg_reset(domain, &cause);
return osmo_sccp_tx_unitdata_msg(gw->sccp.cnlink->sccp_user,
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c
index 1d50d4d..2d67219 100644
--- a/src/hnbgw_hnbap.c
+++ b/src/hnbgw_hnbap.c
@@ -119,6 +119,8 @@ static int hnbgw_tx_hnb_register_acc(struct hnb_context *ctx)
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBRegisterAccept, &accept_out);
+ LOGP(DHNBAP, LOGL_NOTICE, "Accepting HNB-REGISTER-REQ from %s\n", ctx->identity_info);
+
return hnbgw_hnbap_tx(ctx, msg);
}