diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-10-09 21:52:50 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-10-09 22:00:54 +0700 |
commit | cef2f843b4236517c6b43365de4c6a8f119a20be (patch) | |
tree | e37211fd6a3aba90bce5d9fb674bed4de9497b6d /src/pcu_vty_functions.h | |
parent | afbf189ef28a3f9fd7a95bdf88b90be8e7eb0c5b (diff) |
VTY: fix command 'show tbf all': properly filter TBFs
For a long time the VTY command to show all active TBFs was broken.
The TBF filtering (by allocation origin) logic allows one to show
TBFs allocated on CCCH, PACCH, or on both of them. In the latter
case we have been checking whether a TBF was allocated on both
logical channels at the same time.
Let's fix this by passing a flag-mask instead of boolean arguments.
To be able to use GPRS_RLCMAC_FLAG_* definitions from "tbf.h", let's
exclude them from "#ifdef __cplusplus ... #endif" block.
Change-Id: I1c9f401368af880a97d32905c4cce0da481ffc21
Diffstat (limited to 'src/pcu_vty_functions.h')
-rw-r--r-- | src/pcu_vty_functions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcu_vty_functions.h b/src/pcu_vty_functions.h index 3fef2082..6fbc366e 100644 --- a/src/pcu_vty_functions.h +++ b/src/pcu_vty_functions.h @@ -27,7 +27,7 @@ extern "C" { struct vty; struct gprs_rlcmac_bts; -int pcu_vty_show_tbf_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data, bool show_ccch, bool show_pacch); +int pcu_vty_show_tbf_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data, uint32_t flags); int pcu_vty_show_ms_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data); int pcu_vty_show_ms_by_tlli(struct vty *vty, struct gprs_rlcmac_bts *bts_data, uint32_t tlli); |