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-01 08:47:12 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:10 +0800
commita128d91f9881936c3c292e5c8efe84dd8d5bdb89 (patch)
tree4bb51d1fd844fdb21e548958c7a0c131893f5a61 /openbsc/tests/bsc-nat/bsc_nat_test.c
parenta0df82d48d5d79d5851a0910e237fcfb892e148f (diff)
nat: Allow to send MGCP messages from the BSC to the network
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_nat_test.c')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 217c4f41..c3b86c06 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -89,6 +89,12 @@ static const u_int8_t bssmap_release_complete[] = {
0x05, 0x01, 0x02, 0x03, 0x00, 0x00, 0x03
};
+/* MGCP wrap... */
+static const u_int8_t mgcp_msg[] = {
+ 0x00, 0x03, 0xfc,
+ 0x20, 0x20, 0x20,
+};
+
struct filter_result {
const u_int8_t *data;
const u_int16_t length;
@@ -145,6 +151,12 @@ static const struct filter_result results[] = {
.dir = DIR_BSC,
.result = 0,
},
+ {
+ .data = mgcp_msg,
+ .length = ARRAY_SIZE(mgcp_msg),
+ .dir = DIR_MSC,
+ .result = 0,
+ },
};
static void test_filter(void)