diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-15 00:14:48 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-15 18:58:35 +0800 |
commit | 27640fc25516537fce5e85a1e4fc105b68adb7af (patch) | |
tree | 988c2ed0107d324da1dd992dadef406bbb42c03b /openbsc | |
parent | 5f54075a8be6e041c8fbf56ff6281fc78a6d7929 (diff) |
nat: Improve the log message in case we have SCCP data without a connection
Describe which kind of data we have and where it was coming from
as this makes debugging a bit easier.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 6485102df..e82c1a613 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -767,7 +767,10 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg) } if (!con_msc) { - LOGP(DNAT, LOGL_ERROR, "No connection found, dropping data.\n"); + LOGP(DNAT, LOGL_ERROR, "Not forwarding data bsc_nr: %d ipa: %d type: 0x%x\n", + bsc->cfg->nr, + parsed ? parsed->ipa_proto : -1, + parsed ? parsed->sccp_type : -1); goto exit2; } |