aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-04-03 18:51:03 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2018-08-01 09:10:44 +0200
commit991ea6705be31ceaf356799d2a09720aec395bb4 (patch)
tree5ccb371f9e3a8487fb19ab848ff0888a29a48783 /include
parenta44b97059221f62056b3608abd7cfba3d9cf214c (diff)
WIP: Collect LAC information from L3 Compl messagespmaier/lac
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/Makefile.am1
-rw-r--r--include/osmocom/msc/gsm_data.h4
-rw-r--r--include/osmocom/msc/msc_lac.h16
3 files changed, 21 insertions, 0 deletions
diff --git a/include/osmocom/msc/Makefile.am b/include/osmocom/msc/Makefile.am
index b1a4810df..7e0a2961f 100644
--- a/include/osmocom/msc/Makefile.am
+++ b/include/osmocom/msc/Makefile.am
@@ -20,6 +20,7 @@ noinst_HEADERS = \
mncc.h \
mncc_int.h \
msc_ifaces.h \
+ msc_lac.h \
msc_mgcp.h \
openbscdefines.h \
a_reset.h \
diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h
index c79adde59..d8a84d17d 100644
--- a/include/osmocom/msc/gsm_data.h
+++ b/include/osmocom/msc/gsm_data.h
@@ -347,6 +347,10 @@ struct gsm_network {
/* MSISDN to which to route MO emergency calls */
char *route_to_msisdn;
} emergency;
+
+ /* A list head to keep track on the LACs that are assoctiated with
+ * this network */
+ struct llist_head lac_contexts;
};
struct osmo_esme;
diff --git a/include/osmocom/msc/msc_lac.h b/include/osmocom/msc/msc_lac.h
new file mode 100644
index 000000000..4b825236d
--- /dev/null
+++ b/include/osmocom/msc/msc_lac.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <stdint.h>
+#include <osmocom/core/linuxlist.h>
+#include <osmocom/msc/gsm_data.h>
+
+/* A struct to keep a context information about the LACs a specific BSC is
+ * associated with */
+struct lac_context {
+ struct llist_head list;
+ uint16_t lac;
+ enum ran_type ran_type;
+ struct bsc_context *bsc_context;
+};
+
+void msc_lac_update_a(struct gsm_network *network, uint16_t lac, struct bsc_context *bsc_context);