aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-01-14 15:42:07 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2016-01-14 15:42:07 +0100
commit5f8c71878650d730d5405aa7aaa057be97dff382 (patch)
tree91b30cdbabeb499fae13ed0f2b1cee6768290472
parent8592716116c5d098dc2b1f003b0d019bf71a4844 (diff)
hnbgw: Print out the hnbgw context map per HNB
-rw-r--r--src/hnbgw.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c
index a0916d3..2f2ab8c 100644
--- a/src/hnbgw.c
+++ b/src/hnbgw.c
@@ -334,10 +334,18 @@ static int daemonize = 0;
static void vty_dump_hnb_info(struct vty *vty, struct hnb_context *hnb)
{
+ struct hnbgw_context_map *map;
+
vty_out(vty, "HNB \"%s\" MCC %u MNC %u LAC %u RAC %u SAC %u CID %u%s", hnb->identity_info,
hnb->id.mcc, hnb->id.mnc, hnb->id.lac, hnb->id.rac, hnb->id.sac, hnb->id.cid,
VTY_NEWLINE);
vty_out(vty, " HNBAP ID %u RUA ID %u%s", hnb->hnbap_stream, hnb->rua_stream, VTY_NEWLINE);
+
+ llist_for_each_entry(map, &hnb->map_list, hnb_list) {
+ vty_out(vty, " Map %u->%u (RUA->SUA) cnlink=%p state=%u%s", map->rua_ctx_id, map->scu_conn_id,
+ map->cn_link, map->state, VTY_NEWLINE);
+
+ }
}
static void vty_dump_ue_info(struct vty *vty, struct ue_context *ue)