From b96d5a6eadf79296672042db6146258084b494c8 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Sun, 17 Jan 2021 13:12:46 +0100 Subject: gbproxy: Move helper function to a more logical place Change-Id: I3b39991fe2441334aaa9dda6c33c0b7b4484e455 --- src/gbproxy/gb_proxy_peer.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c index 7e9433196..7d6ba864a 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; -- cgit v1.2.3