From f464ea54d14d4c591119104211b6d63603e48e45 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 6 Apr 2010 16:07:44 +0200 Subject: [PATCH] nat: Print a MSG when receiving unknown SCCP messages. --- openbsc/src/nat/bsc_nat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 2ff06d750..734606b76 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -225,6 +225,9 @@ static int forward_sccp_to_bts(struct msgb *msg) default: goto exit; } + + if (!con) + LOGP(DNAT, LOGL_ERROR, "Unknown connection for msg type: 0x%x.\n", parsed->sccp_type); } talloc_free(parsed);