aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-17 08:07:19 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-17 08:07:19 +0200
commitf140348eff37a08ec40c6156941de2611673fb17 (patch)
treef19630a6de63552935a439540824ccddcacc58d7 /openbsc/src/nat/bsc_nat.c
parentb5de1b078110a0ef36f6987a81b7430822c7aa52 (diff)
nat: Print the LAC that was searched for and not found.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 9a5da0b6e..3b0f9745d 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -309,11 +309,13 @@ send_to_all:
* message and then send it to the authenticated messages...
*/
if (parsed->ipa_proto == IPAC_PROTO_SCCP && parsed->gsm_type == BSS_MAP_MSG_PAGING) {
- bsc = bsc_nat_find_bsc(nat, msg);
+ int lac;
+ bsc = bsc_nat_find_bsc(nat, msg, &lac);
if (bsc)
bsc_send_data(bsc, msg->l2h, msgb_l2len(msg), parsed->ipa_proto);
else
- LOGP(DNAT, LOGL_ERROR, "Could not determine BSC for paging.\n");
+ LOGP(DNAT, LOGL_ERROR, "Could not determine BSC for paging on lac: %d/0x%x\n",
+ lac, lac);
goto exit;
}