diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-08-21 10:01:30 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-24 16:16:40 +0200 |
commit | 5f1faa3cd25663716de8cc4c2a81fac0f378ff76 (patch) | |
tree | 0c02c1de5d2dbcfd3370ec4512b5b5b3802a25ef /openbsc/include/openbsc/gb_proxy.h | |
parent | 9114bee2424fa5a5e30261054573f9f78b5c5477 (diff) |
gbproxy: Move peer definitions to gb_proxy_peer.c
This patch moves the peer related definitions from gb_proxy.c to
gb_proxy_peer.c and adjusts the prefix of each global symbol to
gbproxy_:
Peer definitions (prefix adjusted to gbproxy_):
peer_ctr_description -> gprs/gb_proxy_peer.c (static)
peer_ctrg_desc -> gprs/gb_proxy_peer.c (static)
*peer_by_* -> gprs/gb_proxy_peer.c
gbproxy_peer_alloc -> gprs/gb_proxy_peer.c
gbproxy_peer_free -> gprs/gb_proxy_peer.c
gbprox_cleanup_peers -> gprs/gb_proxy_peer.c
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gb_proxy.h')
-rw-r--r-- | openbsc/include/openbsc/gb_proxy.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h index 345a317e8..9fcffd431 100644 --- a/openbsc/include/openbsc/gb_proxy.h +++ b/openbsc/include/openbsc/gb_proxy.h @@ -12,6 +12,7 @@ struct rate_ctr_group; struct gprs_gb_parse_context; +struct tlv_parsed; enum gbproxy_patch_mode { GBPROX_PATCH_DEFAULT, @@ -167,13 +168,6 @@ int gbprox_reset_persistent_nsvcs(struct gprs_ns_inst *nsi); void gbprox_reset(struct gbproxy_config *cfg); -int gbprox_cleanup_peers(struct gbproxy_config *cfg, uint16_t nsei, uint16_t bvci); - -struct gbproxy_peer *gbprox_peer_by_nsei(struct gbproxy_config *cfg, uint16_t nsei); - -struct gbproxy_peer *gbproxy_peer_alloc(struct gbproxy_config *cfg, uint16_t bvci); -void gbproxy_peer_free(struct gbproxy_peer *peer); - /* TLLI state handling */ void gbproxy_delete_tllis(struct gbproxy_peer *peer); int gbproxy_check_tlli(struct gbproxy_peer *peer, uint32_t tlli); @@ -237,4 +231,22 @@ void gbproxy_clear_patch_filter(struct gbproxy_config *cfg); int gbproxy_check_imsi( struct gbproxy_peer *peer, const uint8_t *imsi, size_t imsi_len); +/* Peer handling */ +struct gbproxy_peer *gbproxy_peer_by_bvci( + struct gbproxy_config *cfg, uint16_t bvci) __attribute__((nonnull)); +struct gbproxy_peer *gbproxy_peer_by_nsei( + struct gbproxy_config *cfg, uint16_t nsei) __attribute__((nonnull)); +struct gbproxy_peer *gbproxy_peer_by_rai( + struct gbproxy_config *cfg, const uint8_t *ra) __attribute__((nonnull)); +struct gbproxy_peer *gbproxy_peer_by_lai( + struct gbproxy_config *cfg, const uint8_t *la) __attribute__((nonnull)); +struct gbproxy_peer *gbproxy_peer_by_bssgp_tlv( + struct gbproxy_config *cfg, struct tlv_parsed *tp) + __attribute__((nonnull)); +struct gbproxy_peer *gbproxy_peer_alloc(struct gbproxy_config *cfg, uint16_t bvci) + __attribute__((nonnull)); +void gbproxy_peer_free(struct gbproxy_peer *peer) __attribute__((nonnull)); +int gbproxy_cleanup_peers(struct gbproxy_config *cfg, uint16_t nsei, uint16_t bvci) + __attribute__((nonnull)); + #endif |