From 2afb9157581c005a583ea33afc5d739d5b3380c2 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 14 Jun 2010 17:20:04 +0800 Subject: lchan: Introduce a handoff variable... This variable can be used by higher levels to declare they were done with lchan... --- openbsc/include/openbsc/gsm_data.h | 1 + openbsc/src/vty_interface.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index e0d33707c..dcb2fe66c 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 945b571a6..63898de0b 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); } -- cgit v1.2.3