aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-13 19:09:41 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-02 14:08:55 +0200
commit0116ab219ff76dfd5b6b9973711a5cd6d134372f (patch)
treefa8e4ceb14c4f53aeb18a3828b85a35bafe8763f
parentbb289e3b810683dadc5e2dd0b345b97cd3e8bddb (diff)
debug log: rx-unitdata
-rw-r--r--src/hnbgw_cn.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/hnbgw_cn.c b/src/hnbgw_cn.c
index eb4b21a..82081ea 100644
--- a/src/hnbgw_cn.c
+++ b/src/hnbgw_cn.c
@@ -248,6 +248,27 @@ static int handle_cn_unitdata(struct hnbgw_cnlink *cnlink,
const struct osmo_scu_unitdata_param *param,
struct osmo_prim_hdr *oph)
{
+ LOGP(DMAIN, LOGL_DEBUG, "N-UNITDATA.ind:"
+ " called_addr: { presence %x, pc %d, ssn %d }"
+ " calling_addr: { presence %x, pc %d, ssn %d }"
+ " in_sequence_control %d"
+ " return_option %d"
+ " importance %d"
+ "\n",
+ param->called_addr.presence,
+ param->called_addr.pc,
+ param->called_addr.ssn,
+ param->calling_addr.presence,
+ param->calling_addr.pc,
+ param->calling_addr.ssn,
+ param->in_sequence_control,
+ param->return_option,
+ param->importance);
+ LOGP(DMAIN, LOGL_DEBUG, "N-UNITDATA.ind: called_addr: %s\n",
+ inet_ntoa(param->called_addr.ip.v4));
+ LOGP(DMAIN, LOGL_DEBUG, "N-UNITDATA.ind: calling_addr: %s\n",
+ inet_ntoa(param->calling_addr.ip.v4));
+
if (param->called_addr.ssn != OSMO_SCCP_SSN_RANAP) {
LOGP(DMAIN, LOGL_NOTICE, "N-UNITDATA.ind for unknown SSN %u\n",
param->called_addr.ssn);