aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-12-27 18:14:39 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2021-01-04 18:33:52 +0100
commit3844da98f8aaad34f325307080ef106f36e2062d (patch)
treef719f69f098da105d451573e9a0dd1152d953c72 /include/osmocom
parentdee0bcc8e9c010a8643c71ac251f0a9560ac22ac (diff)
gbproxy: Add VTY command to override the node selection function
This is mainly useful when testing SGSN pooling Change-Id: I2894320413dbd0b9aec9a9bc9b88ce7cdeed206b Related: SYS#5115, OS#4472
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sgsn/gb_proxy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/sgsn/gb_proxy.h b/include/osmocom/sgsn/gb_proxy.h
index dd45c2f89..ad5bb27f3 100644
--- a/include/osmocom/sgsn/gb_proxy.h
+++ b/include/osmocom/sgsn/gb_proxy.h
@@ -60,6 +60,10 @@ struct gbproxy_config {
/* NRI bitlen and usable NULL-NRI ranges */
uint8_t nri_bitlen;
struct osmo_nri_ranges *null_nri_ranges;
+
+ /* Used for testing: If not NULL then this SGSN is returned by
+ * gbproxy_sgsn_by_tlli() */
+ struct gbproxy_sgsn *nsf_override;
} pool;
/* hash table of all BSS side Gb peers */