This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
daniel gerrit-no-reply at lists.osmocom.orgdaniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/22285 )
Change subject: gbproxy: Move helper function to a more logical place
......................................................................
gbproxy: Move helper function to a more logical place
Change-Id: I3b39991fe2441334aaa9dda6c33c0b7b4484e455
---
M src/gbproxy/gb_proxy_peer.c
1 file changed, 11 insertions(+), 11 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/85/22285/1
diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c
index 7e94331..7d6ba86 100644
--- a/src/gbproxy/gb_proxy_peer.c
+++ b/src/gbproxy/gb_proxy_peer.c
@@ -194,17 +194,6 @@
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 @@
* 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;
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/22285
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I3b39991fe2441334aaa9dda6c33c0b7b4484e455
Gerrit-Change-Number: 22285
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210118/7cf6296a/attachment.htm>