aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_nat_test.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 11:06:11 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:11 +0800
commitd2dd6e878c5125810fbb34c697ee337e84d21a47 (patch)
tree458e24e85e61bef1cab65d695fa8224592aeb57c /openbsc/tests/bsc-nat/bsc_nat_test.c
parent530c4b1aad9ebf6a2c51d34d8dac569a3ad15cfa (diff)
Revert "nat: Remember where the BTS is listening for things."
Remove the code to parse port as we need to discover the BTS behind the nat and most likely it will have a different port than the one advertised by the BTS. This reverts commit c6a1fe773d16eb20d4cb1d3097761419436f4537.
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_nat_test.c')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index a859d072..59396329 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -505,19 +505,6 @@ static void test_mgcp_parse(void)
}
}
-static void test_mgcp_parse_port(void)
-{
- int port;
-
- fprintf(stderr, "Test MGCP port parsing.\n");
-
- port = bsc_mgcp_extract_port(mdcx_resp);
- if (port != 4002) {
- fprintf(stderr, "Could not parse port. Got: %d\n", port);
- abort();
- }
-}
-
int main(int argc, char **argv)
{
struct debug_target *stderr_target;
@@ -533,7 +520,6 @@ int main(int argc, char **argv)
test_mgcp_find();
test_mgcp_rewrite();
test_mgcp_parse();
- test_mgcp_parse_port();
return 0;
}