aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-07 12:06:52 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2020-12-10 18:06:06 +0100
commitc91f53ca0ae20c1a371ed94b6565acc7cc3571e5 (patch)
treef3b844be15fb3613df7d28ac849832051c7f3e0f
parent5687ae65fa1a66448365f5da0cb0017ec6161efe (diff)
gbproxy: Use "(nsei << 16) | bvci" as rate_ctr_group index
As we now have gbproxy_bvc on both the SGSN and the BSS side with the same BVCI, using the BVCI alone will no longer render unique indexes. Related: OS#4472 Change-Id: I13f3c9e69562a56ad7d3742fdeb2ba48f134fdaa
-rw-r--r--src/gbproxy/gb_proxy_peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c
index a0586fefe..ed7df3200 100644
--- a/src/gbproxy/gb_proxy_peer.c
+++ b/src/gbproxy/gb_proxy_peer.c
@@ -77,7 +77,7 @@ struct gbproxy_bvc *gbproxy_bvc_alloc(struct gbproxy_nse *nse, uint16_t bvci)
return NULL;
bvc->bvci = bvci;
- bvc->ctrg = rate_ctr_group_alloc(bvc, &bvc_ctrg_desc, bvci);
+ bvc->ctrg = rate_ctr_group_alloc(bvc, &bvc_ctrg_desc, (nse->nsei << 16) | bvci);
if (!bvc->ctrg) {
talloc_free(bvc);
return NULL;