diff options
author | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-12-28 17:52:11 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-29 11:00:37 +0100 |
commit | 7971d3d28199c9927ae34364ff5e35506d4dde90 (patch) | |
tree | 11ce58c62f11944e88a7e6f57d315bc77d9936a0 /openbsc/src/input | |
parent | 5fe33189a9833597df23dec7039b304cb78ad7f5 (diff) |
ipaccess input: Print BTS number that has disappeared
Diffstat (limited to 'openbsc/src/input')
-rw-r--r-- | openbsc/src/input/ipaccess.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c index c72176657..90d7cea85 100644 --- a/openbsc/src/input/ipaccess.c +++ b/openbsc/src/input/ipaccess.c @@ -311,12 +311,15 @@ static int handle_ts1_read(struct bsc_fd *bfd) msg = ipaccess_read_msg(bfd, &error); if (!msg) { if (error == 0) { - LOGP(DINP, LOGL_NOTICE, "BTS disappeared, dead socket\n"); - e1inp_event(e1i_ts, EVT_E1_TEI_DN, 0, IPAC_PROTO_RSL); - e1inp_event(e1i_ts, EVT_E1_TEI_DN, 0, IPAC_PROTO_OML); link = e1inp_lookup_sign_link(e1i_ts, IPAC_PROTO_OML, 0); - if (link) + if (link) { link->trx->bts->ip_access.flags = 0; + LOGP(DINP, LOGL_NOTICE, "BTS %u disappeared, dead socket\n", + link->trx->bts->nr); + } else + LOGP(DINP, LOGL_NOTICE, "unknown BTS disappeared, dead socket\n"); + e1inp_event(e1i_ts, EVT_E1_TEI_DN, 0, IPAC_PROTO_RSL); + e1inp_event(e1i_ts, EVT_E1_TEI_DN, 0, IPAC_PROTO_OML); bsc_unregister_fd(bfd); close(bfd->fd); bfd->fd = -1; |