path: root/include
diff options
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-22 18:06:59 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-27 05:55:55 +0000
commitf33e8358cc2350e6fecb8653dc726770afa9fede (patch)
treedf66bc616e4df2800b5999c4c82b2367b1866eb1 /include
parentc94ed09f50a124b962abb1f71f11c006db30e587 (diff)
hnbgw: UE context: add handling by tmsi identification
To prepare for an upcoming commit that accepts TMSI identification upon UE Register Requests: Add tmsi arg to ue_context_alloc(). Add ue_context_by_tmsi(). This is aimed at the ip.access nano3G femto cell, as it apparently feeds whichever identification the UE sends through to HNBAP (TMSI+LAI, pTMSI+RAI), instead of an IMSI as expected. See the upcoming commit that enables accepting TMSI identities for further detail. Change-Id: I138458443319cc4cbea5ee7906cf5dd72d582130
Diffstat (limited to 'include')
1 files changed, 4 insertions, 3 deletions
diff --git a/include/osmocom/iuh/hnbgw.h b/include/osmocom/iuh/hnbgw.h
index 21a9602..bee7fb6 100644
--- a/include/osmocom/iuh/hnbgw.h
+++ b/include/osmocom/iuh/hnbgw.h
@@ -101,8 +101,7 @@ struct ue_context {
/*! Unique Context ID for this UE */
uint32_t context_id;
char imsi[16+1];
- /* TODO: track TMSI, for HNBAP UE Register Request with TMSI,
- * seen with ip.access nano3G femto cell */
+ uint32_t tmsi;
/*! UE is serviced via this HNB */
struct hnb_context *hnb;
@@ -139,7 +138,9 @@ extern void *talloc_asn1_ctx;
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_alloc(struct hnb_context *hnb, const char *imsi);
+struct ue_context *ue_context_by_tmsi(struct hnb_gw *gw, uint32_t tmsi);
+struct ue_context *ue_context_alloc(struct hnb_context *hnb, const char *imsi,
+ uint32_t tmsi);
void ue_context_free(struct ue_context *ue);
struct hnb_context *hnb_context_alloc(struct hnb_gw *gw, struct osmo_stream_srv_link *link, int new_fd);