aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorJan Luebbe <jluebbe@lasnet.de>2011-08-11 04:40:00 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-11 17:21:24 +0200
commit563d99d3c34861da410bb043d0379b75dfaefdf3 (patch)
treeb10cef161f231cbcc823b9221932ed2654e853c7 /openbsc
parent46f799b224744979294e5f94f225bb1a720e5063 (diff)
libbsc: Only skip lchans with state AND type set to NONE in show lchan
The function lchan_alloc only considers lchans to be available if both the type and state are NONE. So change show lchan to list all lchans that are not considered available.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/libbsc/bsc_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index e9c54faf5..8a5c7fdf2 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -942,7 +942,7 @@ static int lchan_summary(struct vty *vty, int argc, const char **argv,
for (lchan_nr = 0; lchan_nr < TS_MAX_LCHAN;
lchan_nr++) {
lchan = &ts->lchan[lchan_nr];
- if (lchan->type == GSM_LCHAN_NONE)
+ if ((lchan->type == GSM_LCHAN_NONE) && (lchan->state == LCHAN_S_NONE))
continue;
dump_cb(vty, lchan);
}