aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-14 17:20:04 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-14 17:20:04 +0800
commit2afb9157581c005a583ea33afc5d739d5b3380c2 (patch)
tree97092804c19eb3424117aee88b61edc2e7564d39
parentdbac9295e7d9fa5d2f4b2d85473627259576bd04 (diff)
lchan: Introduce a handoff variable...
This variable can be used by higher levels to declare they were done with lchan...
-rw-r--r--openbsc/include/openbsc/gsm_data.h1
-rw-r--r--openbsc/src/vty_interface.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index e0d33707..dcb2fe66 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -218,6 +218,7 @@ struct gsm_subscriber_connection {
/* use count. how many users use this channel */
unsigned int use_count;
+ int hand_off;
/* Are we part of a special "silent" call */
int silent_call;
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 945b571a..63898de0 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -781,11 +781,12 @@ static void lchan_dump_short_vty(struct vty *vty, struct gsm_lchan *lchan)
static void lchan_dump_status_vty(struct vty *vty, struct gsm_lchan *lchan)
{
- vty_out(vty, "Lchan: %u/%u/%u/%u Type: %s State: %s ref: %u Subscriber: %d "
+ vty_out(vty, "Lchan: %u/%u/%u/%u Type: %s State: %s ref: %u HO: %d Subscriber: %d "
"Time: %lu %s",
lchan->nr, lchan->ts->nr, lchan->ts->trx->nr,
lchan->ts->trx->bts->nr, gsm_lchant_name(lchan->type),
gsm_lchans_name(lchan->state), lchan->conn.use_count,
+ lchan->conn.hand_off,
lchan->conn.subscr != NULL, (unsigned long) lchan->alloc_time.tv_sec,
VTY_NEWLINE);
}