diff options
author | Jan Luebbe <jluebbe@lasnet.de> | 2011-08-11 04:40:00 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-08-11 17:21:24 +0200 |
commit | 563d99d3c34861da410bb043d0379b75dfaefdf3 (patch) | |
tree | b10cef161f231cbcc823b9221932ed2654e853c7 /openbsc/src/libbsc/bsc_vty.c | |
parent | 46f799b224744979294e5f94f225bb1a720e5063 (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/src/libbsc/bsc_vty.c')
-rw-r--r-- | openbsc/src/libbsc/bsc_vty.c | 2 |
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); } |