aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_nat_test.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-15 23:54:04 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:20 +0800
commitf192498885fe1f6776f9056aa4ec934418f8423b (patch)
treecb79f992f81c3a7efb55eecf494dd12538566083 /openbsc/tests/bsc-nat/bsc_nat_test.c
parent87ef2f27e4c0dc1e3467293a80d306707cc0445b (diff)
[nat] Parse the PAGING RESPONSE inside a CR message as well.
Now we are parsing a CM Service Request, Location Updating Request and the Paging Response. For all other messages we claim to not support it and force a refuse.
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_nat_test.c')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 0d654876..0ccd23f6 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -119,6 +119,17 @@ static const u_int8_t bss_lu[] = {
0x12, 0x03, 0x24, 0x01, 0x95, 0x00
};
+/* paging response */
+static const uint8_t pag_resp[] = {
+ 0x00, 0x2c, 0xfd, 0x01, 0xe5, 0x68,
+ 0x14, 0x02, 0x02, 0x04, 0x02, 0x42, 0xfe, 0x0f,
+ 0x1f, 0x00, 0x1d, 0x57, 0x05, 0x08, 0x00, 0x72,
+ 0xf4, 0x80, 0x20, 0x16, 0xc3, 0x50, 0x17, 0x10,
+ 0x06, 0x27, 0x01, 0x03, 0x30, 0x18, 0x96, 0x08,
+ 0x29, 0x26, 0x30, 0x32, 0x11, 0x42, 0x01, 0x19,
+ 0x00
+};
+
struct filter_result {
const u_int8_t *data;
const u_int16_t length;
@@ -573,6 +584,11 @@ static struct cr_filter cr_filter[] = {
.result = 0,
},
{
+ .data = pag_resp,
+ .length = sizeof(pag_resp),
+ .result = 0,
+ },
+ {
/* nat deny is before blank/null BSC */
.data = bss_lu,
.length = sizeof(bss_lu),