aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2021-01-17 13:12:46 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2021-01-17 13:51:57 +0100
commitb96d5a6eadf79296672042db6146258084b494c8 (patch)
tree2f2b7fb49f788a876223cd27aa7d62e6baf93af3 /src
parent6ff8d21fed42a1a8211cc55eff5ce13fffa4d9d8 (diff)
gbproxy: Move helper function to a more logical place
Diffstat (limited to 'src')
-rw-r--r--src/gbproxy/gb_proxy_peer.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c
index 7e943319..7d6ba864 100644
--- a/src/gbproxy/gb_proxy_peer.c
+++ b/src/gbproxy/gb_proxy_peer.c
@@ -194,17 +194,6 @@ struct gbproxy_cell *gbproxy_cell_by_bvci(struct gbproxy_config *cfg, uint16_t b
return NULL;
}
-static inline struct gbproxy_tlli_cache_entry *_get_tlli_entry(struct gbproxy_config *cfg, uint32_t tlli)
-{
- struct gbproxy_tlli_cache_entry *cache_entry;
-
- hash_for_each_possible(cfg->tlli_cache.entries, cache_entry, list, tlli) {
- if (cache_entry->tlli == tlli)
- return cache_entry;
- }
- return NULL;
-}
-
struct gbproxy_cell *gbproxy_cell_by_bvci_or_new(struct gbproxy_config *cfg, uint16_t bvci)
{
struct gbproxy_cell *cell;
@@ -263,6 +252,17 @@ bool gbproxy_cell_add_sgsn_bvc(struct gbproxy_cell *cell, struct gbproxy_bvc *bv
* TLLI cache
***********************************************************************/
+static inline struct gbproxy_tlli_cache_entry *_get_tlli_entry(struct gbproxy_config *cfg, uint32_t tlli)
+{
+ struct gbproxy_tlli_cache_entry *cache_entry;
+
+ hash_for_each_possible(cfg->tlli_cache.entries, cache_entry, list, tlli) {
+ if (cache_entry->tlli == tlli)
+ return cache_entry;
+ }
+ return NULL;
+}
+
void gbproxy_tlli_cache_update(struct gbproxy_nse *nse, uint32_t tlli)
{
struct gbproxy_config *cfg = nse->cfg;