diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-05 17:58:52 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-05 17:58:52 +0200 |
commit | 07bb5094344876a85485c9ffee3247ff38fcece3 (patch) | |
tree | 66a3bad25d5ab15dfd016b5bd193e37b799c808a /openbsc/src/nat/bsc_nat.c | |
parent | 08db6ca509f8e06dc6aa686a92cad8613ccbc31e (diff) |
nat: Logging improvement for the nat.
Print some more information, e.g. when a BSC is connected
and authenticated, print the SCCP ref number.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index badbc9a53..fcf732b42 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -375,6 +375,7 @@ static void ipaccess_auth_bsc(struct tlv_parsed *tvp, struct bsc_connection *bsc bsc->authenticated = 1; bsc->lac = conf->lac; bsc_del_timer(&bsc->id_timeout); + LOGP(DNAT, LOGL_NOTICE, "Authenticated bsc %d\n", bsc->lac); break; } } @@ -570,7 +571,7 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what) return -2; } - LOGP(DNAT, LOGL_INFO, "Registered new BSC\n"); + LOGP(DNAT, LOGL_NOTICE, "Registered new BSC\n"); llist_add(&bsc->list_entry, &nat->bsc_connections); send_id_ack(bsc); send_id_req(bsc); |