aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-25 12:43:58 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-25 17:30:48 +0100
commit7e0cc50e44d89dd2b656521f693599a1f3dc7416 (patch)
tree4eb63b7dda848a7f35d42a4b3eec3b654411f3c7 /openbsc
parent867d69bbcb593bc475fe8c28cd5c9a7f630422c0 (diff)
nat: Update the tests to make them going again
We now need to have access to a mgcp_cfg and the change to the setup number patching needs new data. We now set the number to international type.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/bsc-nat/bsc_data.c8
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_data.c b/openbsc/tests/bsc-nat/bsc_data.c
index 3cc22af7e..04755233c 100644
--- a/openbsc/tests/bsc-nat/bsc_data.c
+++ b/openbsc/tests/bsc-nat/bsc_data.c
@@ -171,11 +171,11 @@ static const uint8_t cc_setup_national[] = {
};
static const uint8_t cc_setup_national_patched[] = {
- 0x00, 0x22, 0xfd, 0x06, 0x01, 0x12,
- 0x6d, 0x00, 0x01, 0x1b, 0x01, 0x00, 0x18, 0x03,
+ 0x00, 0x21, 0xfd, 0x06, 0x01, 0x12,
+ 0x6d, 0x00, 0x01, 0x1a, 0x01, 0x00, 0x17, 0x03,
0x05, 0x04, 0x06, 0x60, 0x04, 0x02, 0x00, 0x05,
- 0x81, 0x5e, 0x08, 0x81, 0x00, 0x94, 0x71, 0x32,
- 0x33, 0x66, 0xf6, 0x15, 0x02, 0x11, 0x01
+ 0x81, 0x5e, 0x07, 0x91, 0x94, 0x71, 0x32, 0x33,
+ 0x66, 0xf6, 0x15, 0x02, 0x11, 0x01
};
static const uint8_t cc_setup_international[] = {
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 05b06e40f..c5edbfe1a 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -444,6 +444,9 @@ static void test_mgcp_ass_tracking(void)
nat->bsc_endpoints = talloc_zero_array(nat,
struct bsc_endpoint,
33);
+ nat->mgcp_cfg = mgcp_config_alloc();
+ nat->mgcp_cfg->number_endpoints = 64;
+
bsc = bsc_connection_alloc(nat);
bsc->cfg = bsc_config_alloc(nat, "foo");
bsc_config_add_lac(bsc->cfg, 2323);