diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-04 11:19:56 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-04 11:37:40 +0200 |
commit | a7027a04ddef288844048a405cd11f8a3e7df877 (patch) | |
tree | 52d625f07ce1d6ee07b69374f4fe04c8ce33dd8a /openbsc/include/openbsc | |
parent | d4d36f22eed10b27e515e522bf10f4e9c90fba79 (diff) |
gbproxy: Remove the global rate counter and place it in the config
Move the global data into the struct and use it. gbprox_reset will
first free data and then re-initialize the structure. This code is
used by the unit test.
Done with Jacob
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/gb_proxy.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h index 5e44e13ad..09ac83657 100644 --- a/openbsc/include/openbsc/gb_proxy.h +++ b/openbsc/include/openbsc/gb_proxy.h @@ -29,6 +29,9 @@ struct gbproxy_config { /* Linked list of all Gb peers (except SGSN) */ struct llist_head bts_peers; + /* Counter */ + struct rate_ctr_group *ctrg; + /* force mcc/mnc */ int core_mnc; int core_mcc; @@ -113,6 +116,5 @@ int gbprox_remove_stale_tllis(struct gbprox_peer *peer, time_t now); int gbprox_cleanup_peers(uint16_t nsei, uint16_t bvci); /* tmp */ -struct rate_ctr_group *get_global_ctrg(void); struct gbprox_peer *peer_by_nsei(uint16_t nsei); #endif |