diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-06 10:22:01 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:11 +0800 |
commit | 0a6f62f8e333c6e9bf02958ff0272a12e03507a9 (patch) | |
tree | 7ea0ee92795f1254d7852b9ac2cb03dd7f23e14b /openbsc/tests | |
parent | 26a43896cd7e611beb4ae0f614403fcfc96c1882 (diff) |
nat: Test forwarding Inactivity Test messages.
No change needed to the code.
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index 8ec5914ec..a859d072d 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -89,6 +89,13 @@ static const u_int8_t bssmap_release_complete[] = { 0x05, 0x01, 0x02, 0x03, 0x00, 0x00, 0x03 }; +/* both directions IT timer */ +static const u_int8_t connnection_it[] = { + 0x00, 0x0b, 0xfd, + 0x10, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03, + 0x00, 0x00, 0x00, 0x00, +}; + /* MGCP wrap... */ static const u_int8_t mgcp_msg[] = { 0x00, 0x03, 0xfc, @@ -157,6 +164,18 @@ static const struct filter_result results[] = { .dir = DIR_MSC, .result = 0, }, + { + .data = connnection_it, + .length = ARRAY_SIZE(connnection_it), + .dir = DIR_BSC, + .result = 0, + }, + { + .data = connnection_it, + .length = ARRAY_SIZE(connnection_it), + .dir = DIR_MSC, + .result = 0, + }, }; static void test_filter(void) |