aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-04-16 20:01:47 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-19 07:26:28 +0000
commit6c548dc615543a8b33306185f111329ffb31d6d0 (patch)
treecf72070afb02899c4d75bc799aee7c33bfc4532a /include
parentbad82d31a9aa4016c37e25be3022442e541004f6 (diff)
vty: Add option to enable osmux towards MSC
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/Makefile.am1
-rw-r--r--include/osmocom/bsc/bsc_msc_data.h4
-rw-r--r--include/osmocom/bsc/osmux.h7
3 files changed, 12 insertions, 0 deletions
diff --git a/include/osmocom/bsc/Makefile.am b/include/osmocom/bsc/Makefile.am
index 89323c0f2..f44e7fc86 100644
--- a/include/osmocom/bsc/Makefile.am
+++ b/include/osmocom/bsc/Makefile.am
@@ -41,6 +41,7 @@ noinst_HEADERS = \
osmo_bsc_rf.h \
osmo_bsc_sigtran.h \
bsc_msc_data.h \
+ osmux.h \
paging.h \
pcu_if.h \
pcuif_proto.h \
diff --git a/include/osmocom/bsc/bsc_msc_data.h b/include/osmocom/bsc/bsc_msc_data.h
index debd24087..271bdd4b7 100644
--- a/include/osmocom/bsc/bsc_msc_data.h
+++ b/include/osmocom/bsc/bsc_msc_data.h
@@ -30,6 +30,7 @@
#include "debug.h"
#include "osmo_bsc_lcls.h"
+#include "osmux.h"
#include <osmocom/core/timer.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
@@ -129,6 +130,9 @@ struct bsc_msc_data {
uint32_t x_osmo_ign;
bool x_osmo_ign_configured;
+
+ /* Whether we want to use Osmux against this MSC. Controlled via VTY */
+ enum osmux_usage use_osmux;
};
/*
diff --git a/include/osmocom/bsc/osmux.h b/include/osmocom/bsc/osmux.h
new file mode 100644
index 000000000..aa3d1ab85
--- /dev/null
+++ b/include/osmocom/bsc/osmux.h
@@ -0,0 +1,7 @@
+#pragma once
+
+enum osmux_usage {
+ OSMUX_USAGE_OFF = 0,
+ OSMUX_USAGE_ON = 1,
+ OSMUX_USAGE_ONLY = 2,
+};