diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-12-29 01:02:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-12-30 00:32:13 +0100 |
commit | 660116fb9d7b382808377274ae4aed7c45e980e3 (patch) | |
tree | 8924653d6c8dd69e0c93966c31152a9840fea357 /src/common/vty.c | |
parent | b15d2c9d2f8ebe56672ab2191a4dc39d22fa0ab8 (diff) |
CBCH: Implement CBCH block segmentation and RSL_MT_SMS_BC_CMD
* CBCH load indications are not yet sent
* The queue length is not yet limited!
Diffstat (limited to 'src/common/vty.c')
-rw-r--r-- | src/common/vty.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/common/vty.c b/src/common/vty.c index 6b57b0b6..d81a8980 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -1,6 +1,6 @@ /* OsmoBTS VTY interface */ -/* (C) 2011 by Harald Welte <laforge@gnumonks.org> +/* (C) 2011-2014 by Harald Welte <laforge@gnumonks.org> * * All Rights Reserved * @@ -473,6 +473,17 @@ static void net_dump_nmstate(struct vty *vty, struct gsm_nm_state *nms) abis_nm_avail_name(nms->availability), VTY_NEWLINE); } +static unsigned int llist_length(struct llist_head *list) +{ + unsigned int len = 0; + struct llist_head *pos; + + llist_for_each(pos, list) + len++; + + return len; +} + static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) { struct gsm_bts_role_bts *btsb = bts->role; @@ -503,6 +514,8 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) btsb->agch_queue_rejected_msgs, btsb->agch_queue_agch_msgs, btsb->agch_queue_pch_msgs, VTY_NEWLINE); + vty_out(vty, " CBCH backlog queue length: %u%s", + llist_length(&btsb->smscb_state.queue), VTY_NEWLINE); #if 0 vty_out(vty, " Paging: %u pending requests, %u free slots%s", paging_pending_requests_nr(bts), |