aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r--src/pcu_vty_functions.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index b43e3e47..9783c4d2 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -23,6 +23,10 @@
#include <stdint.h>
#include <stdlib.h>
#include "pcu_vty_functions.h"
+#include "bts.h"
+#include "gprs_ms_storage.h"
+#include "gprs_ms.h"
+#include "cxx_linuxlist.h"
extern "C" {
# include <osmocom/vty/command.h>
@@ -34,3 +38,20 @@ int pcu_vty_config_write_pcu_ext(struct vty *vty)
{
return CMD_SUCCESS;
}
+
+int pcu_vty_show_ms_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data)
+{
+ BTS *bts = bts_data->bts;
+ LListHead<GprsMs> *ms_iter;
+
+ llist_for_each(ms_iter, &bts->ms_store().ms_list()) {
+ GprsMs *ms = ms_iter->entry();
+
+ vty_out(vty, "MS TLLI=%08x, TA=%d, CS-UL=%d, CS-DL=%d, IMSI=%s%s",
+ ms->tlli(),
+ ms->ta(), ms->current_cs_ul(), ms->current_cs_dl(),
+ ms->imsi(),
+ VTY_NEWLINE);
+ }
+ return CMD_SUCCESS;
+}