aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-25 17:09:07 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-26 10:35:33 +0100
commited500e3877375bde3c0ec33825d513f9fd69c757 (patch)
treed4fb179eb8a3befc63507876f0c363f48ebeaa7a /openbsc/tests
parent7e0cc50e44d89dd2b656521f693599a1f3dc7416 (diff)
nat: Allocate the endpoint status dynamically
Allocate the status for an endpoint dynamically. We will support BSCs with different amount of multiplexes and need to have this flexibility in the future. Add the proper null checks to the current users of this code.
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index c5edbfe1a..d5b1ab193 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -479,7 +479,7 @@ static void test_mgcp_ass_tracking(void)
fprintf(stderr, "Assigned timeslot should have been 1.\n");
abort();
}
- if (con.bsc->endpoint_status[0x1b] != 1) {
+ if (con.bsc->_endpoint_status[0x1b] != 1) {
fprintf(stderr, "The status on the BSC is wrong.\n");
abort();
}
@@ -498,7 +498,7 @@ static void test_mgcp_ass_tracking(void)
bsc_mgcp_dlcx(&con);
if (con.bsc_endp != -1 || con.msc_endp != -1 ||
- con.bsc->endpoint_status[1] != 0 || con.bsc->last_endpoint != 0x1b) {
+ con.bsc->_endpoint_status[1] != 0 || con.bsc->last_endpoint != 0x1b) {
fprintf(stderr, "Clearing should remove the mapping.\n");
abort();
}