diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2020-12-21 18:53:55 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2020-12-28 19:27:08 +0100 |
commit | b0ff672359217f3658c8d1d68162aa2b88fd81c3 (patch) | |
tree | 3cd6ad5926d5217ec494a12bdcc575a9b653f524 /include/osmocom/sgsn/gb_proxy.h | |
parent | fb07da8e4283396aba2137d818f92fed687bba18 (diff) |
gbproxy: Add SGSN pooling support
Change-Id: I58b9f55065f6bd43450e4b07cffe7ba132b1fd9b
Related: OS#4472
Diffstat (limited to 'include/osmocom/sgsn/gb_proxy.h')
-rw-r--r-- | include/osmocom/sgsn/gb_proxy.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/sgsn/gb_proxy.h b/include/osmocom/sgsn/gb_proxy.h index 46decc0ec..dd529a31a 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 */ @@ -229,5 +233,7 @@ void gbproxy_sgsn_free(struct gbproxy_sgsn *sgsn); struct gbproxy_sgsn *gbproxy_sgsn_by_nsei(struct gbproxy_config *cfg, uint16_t nsei); struct gbproxy_sgsn *gbproxy_sgsn_by_nsei_or_new(struct gbproxy_config *cfg, uint16_t nsei); struct gbproxy_sgsn *gbproxy_sgsn_by_nri(struct gbproxy_config *cfg, uint16_t nri, bool *null_nri); +struct gbproxy_sgsn *gbproxy_sgsn_by_tlli(struct gbproxy_config *cfg, struct gbproxy_sgsn *sgsn_avoid, + uint32_t tlli); #endif |