aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-11-17 18:32:29 +0100
committerHarald Welte <laforge@osmocom.org>2020-11-17 18:35:53 +0100
commit67dc8c2bd3881006842069676723398900d64840 (patch)
treec7a21c0c2d72edefd54bd74a60b77ee5b5f1eaa1
parent16357a970a93a6eafe65f17e192e7e996cb9d7c0 (diff)
gbproxy: Remove NUM_BVC_PER_NSE constant and constant-sized array
Let's use a 'record of' with indefinite length in order to be able to dynamically adjust the number of BSSGP_BVC_CT references based on how many BVCs we have configured. Change-Id: Id4aa20ff0b553cb8a1f5a67faa1e7b237fb254b8
-rw-r--r--gbproxy/GBProxy_Tests.ttcn4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index 874679d1..e6c07d75 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -187,13 +187,13 @@ modulepar {
}
};
-const integer NUM_BVC_PER_NSE := 3;
type record GbInstance {
NS_CT vc_NS,
BSSGP_CT vc_BSSGP,
- BSSGP_BVC_CT vc_BSSGP_BVC[NUM_BVC_PER_NSE],
+ BSSGP_BVC_CTs vc_BSSGP_BVC,
BssgpConfig cfg
};
+type record of BSSGP_BVC_CT BSSGP_BVC_CTs
const integer NUM_PCU := 3;
type record of GbInstance GbInstances;