From bfeea6713b4e17fcd5cfb0a5b4c042eaf526ae22 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 27 Dec 2017 22:53:36 +0100 Subject: Expand ctrl interface Add commands to get number of connected HNBs and identity string of connected HNB based on Cell ID. Change-Id: I3a2d6fa3d6d0829ccee4ecc0998d9299c97820e9 --- include/osmocom/iuh/hnbgw.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/osmocom/iuh/hnbgw.h b/include/osmocom/iuh/hnbgw.h index 971ede4..094f31f 100644 --- a/include/osmocom/iuh/hnbgw.h +++ b/include/osmocom/iuh/hnbgw.h @@ -6,7 +6,7 @@ #include #include #include - +#include #define DEBUG #include @@ -18,6 +18,10 @@ enum { DRANAP, }; +enum hnb_ctrl_node { + CTRL_NODE_HNB = _LAST_CTRL_NODE, + _LAST_CTRL_NODE_HNB +}; #define HNBGW_LOCAL_IP_DEFAULT "0.0.0.0" /* TODO: CS and PS now both connect to OsmoSTP, i.e. that's always going to be the same address. Drop the @@ -142,6 +146,9 @@ struct hnb_gw { extern void *talloc_asn1_ctx; +struct hnb_context *hnb_context_by_id(struct hnb_gw *gw, uint32_t cid); +unsigned hnb_contexts(const struct hnb_gw *gw); + struct ue_context *ue_context_by_id(struct hnb_gw *gw, uint32_t id); struct ue_context *ue_context_by_imsi(struct hnb_gw *gw, const char *imsi); struct ue_context *ue_context_by_tmsi(struct hnb_gw *gw, uint32_t tmsi); -- cgit v1.2.3